Make A Module To Swap Ads Randomly From Folder Named Ads On The Root?

Jul 12, 2009

i want to make a module to swap ads randomly from folder named �ads� on the root like,, the advertising are either .swf, or .gif all that i need is to play the swf (when one is finished it starts the other one.. till the display of all swf's)..

[URL]

The folder �ads� is supposed to have 5 ads, when it finished number 1... it start randomly until it finish displaying all the advertising swf... i dont want to display only one of the five ... but display all in a random way..may be i have to know the length of the swf (in seconds ) and when it is finished i want to display the second and third .... etc

View 1 Replies


ADVERTISEMENT

Tree Folder Icon Swap

Aug 8, 2005

I have written a couple of functions to open and close <ul> like a forlder tree which is working great. I have a tiny little problem. When you open and close folders the icons are not properly swapping to indicate their state. Code:

View 3 Replies View Related

JQuery :: Make An Effect On A Module Of Page?

Jan 18, 2011

I'm kinda stuck with jQuery. I generally write code in PHP and do simple stuff with Javascript. But I need to make an effect on a module of my page.

[Code]...

Is this even possible? I don't want/can't preload random content and have it hidden. I could probably do this the simple way with js. Emptying the old content and replacing it with the new random content but I need the animation. I'll keep "decoding" the documentation while waiting for a response.

View 3 Replies View Related

Make The Module For Users Online In Website?

Jun 27, 2011

i'm trying to make the module for users online in my website i've used ajax to call database and update the persons table with the status of the users when he enters or leaves the page here is my code in the <body> tag :

<body onload="javascript:UpdateUserStatus(<?php if(isset($_SESSION['user_id'])) echo $_SESSION['user_id']?>,1)" onunload="UpdateUserStatus(<?php if(isset($_SESSION['user_id'])) echo $_SESSION['user_id']?>,0);">

[Code]...

View 7 Replies View Related

Make Songs Play From A Button Randomly?

Feb 6, 2011

Basically, I want to make it so there is a button, and when you click it, it plays a random song from a list of songs that would be in the code. I am not completely sure if this is possible or not.

I know how to make the button, that is simple.

View 2 Replies View Related

How Do I Make <div>s Appear At OnMouseOver And Randomly Float Around The Screen?

Nov 9, 2005

I'm trying to make a load of words that will appear and start floating randomly around the screen when the pointer is moved over a link, and stop moving when the link is clicked. The following is all I have so far - the ?s indicate that I have no idea what to put in that place!

View 5 Replies View Related

JQuery :: Make A Slideshow That Draws Its Images From A Specific Folder On The Server?

May 24, 2011

I am looking to build a slideshow (basic, with next/previous options, e.g jquery cycle) but I would like it to get the images from a specific folder. So, whenever I want the slideshow updated, I would simply drop the files in a folder and that would do it.

Would this require a php script? If yes, direct me to somewhere to find out more...Or if there are other ways.

View 4 Replies View Related

Ajax :: Browse For A Folder And Get *.xml Files In The Given Folder Path?

Sep 15, 2009

using ajax/javascrtipt, how to browse for a folder and get *.xml files in the given folder path.??

View 2 Replies View Related

"C:folder" (assuming The User Typed "folder" And Such A Folder Existed)?

Jul 13, 2010

Originally I had the following code. What it does is for a user to type the folder name of their choice and then after clicking submit a window will pop open and they will be taken to "C:folder" (assuming the user typed "folder" and such a folder existed). Here is the code in case I wasn't clear.

<html>
<head>
<script type="text/javascript">

[code]....

View 2 Replies View Related

Get Both Of The(for The Thumbnail To Main Img Swap And The Navigational Arrow Swap) To Work?

May 8, 2010

i have been tryin for a long time to get both of the javascripts(for the thumbnail to main img swap and the navigational arrow swap) to work in synchit needs to be so that after clicking on a thumbnail then on an arrow, the correct image in the correct order appears. as of now they are running separately and one has no influence on the other. forgive me if im not being clear. i keep trying to replace the id that one script is looking for with the same id from the other but this will not work..why?

View 9 Replies View Related

JQuery :: Few Improvements To Autocomplete Module

Sep 9, 2009

I have done a few improvements to the autocomplete module, to fix problems and improve functionality:

Added selectOnly option to autoselect a result if there's only one. This may save you a click. Moved the loading indicator to the left side, in case the field is rtl. Requires a small plugin I made, attached here. A css entry is being added to this effect. The included css file has this, but as opposed to the main autocomplete.css, colors are given as names.

Added substrings, and substringsSeparators. As opposed to multiple, which deals with a list of elements separated by a fixed string, substringSeparators is a string made of chars, that each and any of them provide a separator between autocompletable strings. It supports editing a program with a closed list of keywords, and operators and spaces as separators.

Added extraFields, a list of names or ids (if prefixed with #) of other fields to provide as fieldname=value params to the ajax query. In case names are provided, they are expected to be inputs in the same form as the input itself. More complex relationship may be found by adding suitable callbacks to extraParams, which I'd only ask to receive the $input and the key name as parameters.

View 1 Replies View Related

Javascript Square Root

Dec 12, 2006

I cannot manage to do a square root operation. I am using the coding:

var a = Math.sqrt(b);

View 3 Replies View Related

JQuery :: Changing Class On Specific Module?

Sep 24, 2010

I've got a list of modules, and when I click on one of them it expands displaying the content. When you expand them, a little image on the right changes from a down arrow (v) to an up arrow (^), but it's changing on all of the modules rather than just the one.

Here is the website: [URL]

It's pretty obvious what my question is; how do I get it so the image only changes on the module that you expand?

Here's the code for the moduleToggle function:

function moduleToggle() {
$('.content').hide();
$('.title').click(function() {

[Code]....

View 3 Replies View Related

JQuery :: Using :checked Selector To Control Another Module?

Sep 19, 2011

I have a question for using checked selector does not work well.Here is my code:

$("input").click(
function(event) {
var id = $(":checked").val();

[code]....

View 1 Replies View Related

Rockstories Module - Image In Slideshow Does Not Load

May 3, 2011

I am using rockstories module in joomla for slide show. When I browse site with www, it works fine. But when I browse site without www, the image in slide show doesn't loads and I get a javascript error :
Security error" code: "1000
[Break On This Error] var MooTools={version:"1.2.5",build:"0...")[1]);
b.set("title","");}});}});})();
I am using mootools upgrade js.

View 2 Replies View Related

How To Find Website Root Path

Jul 23, 2005

I have a problem with an application i'm working on (Asp.net using
vb.net for developing). I'm normally used to doing middle tier
development, so my javascript skills are not up to par. Here is my problem:

I have a javascript file called 'PMP/Scripts/Popups.js' (pmp is the root
of the website). In that file is the following function:

function OpenTutorial(sTutID)
{
var sURL = '../support/tutorials.aspx?tutid=' = sTutID;
var sProperties = 'center:yes;etc..'
window.showModalDialog(sURL, self, sProperties);
}

where ../support is acutally pmp/support.

Most of the website pages are located in sub folders from the root of
the website. When editing is to be done on a record, a popup window is
called from the main page. the popup pages are in another sub folder
(i.e. pmp/review would be where review.aspx resides and the edit page
would be located at pmp/review/popups). We give the user a tutorial
icon to click on which calls the OpenTutorial function on a button click
event.

The problem is the tutorial popup page won't load properly when called
from another popup page. I've tried variations of location.href,
location.pathname, location.hostname etc.. but can't seem to get the
pages to open correctly. The most common error i get is that the url is
not correct. here is a sample of the urls being called by the function:

View 1 Replies View Related

How To Get The Root Domain And Implement It Into The Script

Oct 5, 2007

I code with javascript in ruby on rails. So I need to switch between localhost and my website. So the domain changes every time. What can I do, so that javascript grabs the root domain, so, lets say: Code:

View 2 Replies View Related

Javascript Document Root Or Parent ?

May 21, 2007

I have an html that has a form for example

<form method=post action=blah.html>
<input type=hidde name=myHiddenVar value=''>

blah blah blah

<iframe name=myiFrame frameborder=0 scrolling=no src="anypage.php">currently loading</iframe>

</form>

now in iFrame page (anypage.php) I want a button to control or SET the value of the main FORM (html page) and its variable myHiddenVar, for example here is what I tried and it didnt work...

in anypage.php I hade a button
<input type=button value=change onClick="javascript:parent.myHiddenVar=100">

but the aboue didnt work, is there anything like docuemtroot ?

View 1 Replies View Related

Ajax :: Site Navigation Module Not Loading Correctly

Jul 7, 2009

I had posted this issue previously regarding my Ajax site navigation module not loading correctly. It would load on certain parts of the site and not others. After some research I have discovered that I need to redirect from "www.mydomain.com" and make a call to "mydomain.com" instead. I thought a 301 .htaccess redirect would work but according to the site that sold me the template the script in my configure.php file must be changed. This is what configure.php looks like now.

<?php
define('HTTP_SERVER', '[URL]');
define('HTTPS_SERVER', '[URL]');
define('ENABLE_SSL', 'TRUE');
define('HTTP_COOKIE_DOMAIN', 'mydomain.com')
define('HTTPS_COOKIE_DOMAIN', 'mydomain.sslpowered.com/mydomain.com/');
define('HTTP_COOKIE_PATH', '/mydomain.com/mysite/catalog/'); .....

I am wondering what has to be changed in the script so it will make the call the the correct domain so the ajax script will load on all parts of the site.

View 1 Replies View Related

JQuery :: Using Closest() Method - Root 2 Don't Get Selected

Jun 16, 2011

I have the following script using the closet method. It works fine for the inner most li tags however the outer li tags don't get seen? So both Root 1 and Root 2 don't get selected but the Sub Cat 1 and Sub Cat 2 get selected fine. I'm sure I'm missing some code to make this work.

[Code]...

View 3 Replies View Related

Calculating Root Values Beyond Math.sqrt

Dec 14, 2007

Well, it's been a while since I last visited CF, but I'm finally back and, for the life of me, am drawing a total blank on something that seems like it should be fairly easy to handle.

The Math.sqrt() function works just fine if all a person needs is the Square Root of a number, but what about needing the Cube Root or even a 4th Root of a number?

My first instinct was to use the Math.pow(x,y) function with a negative value for "y." For instance;

var z=Math.pow(27,-3)

This should return a value of 3. Unfortunately, this doesnt seem to work when I tested it through the W3 reference pages, so I am looking for a clue as to how I might go about finding such values, or if it is even possible through Javascript.

View 2 Replies View Related

JQuery :: Ignoring The Root Element When Passed Through Context?

Feb 4, 2011

jQuery is ignoring the root element when passed through context. Am not sure if this is intended behavior.[URL]

View 7 Replies View Related

Dhtml Content Not Working In Iframe (IE) But Works In Root Document?

Mar 3, 2010

I am using a dhtml "Image Slideshow", and I was really happy with I customized its layout to my needs, and it runs perfectly on FF and on IE (wich is very important for me, since in my country most of people still use IE). Check it hereHowever, when I insert the slideshow in my design, it stops working on IE (working in perfection on FF):I am using the original slideshow file in an iframe.(before I tryed to paste the code directly into the page, but it didn't worked, so I thought using an iframe would work, because the code of the original document would be intact)

View 5 Replies View Related

Embedd An Address Navigation Bar On Top Of Pages Visited From Root Site?

Sep 2, 2010

I have what some would identify as a Kiosk machine running a browser in full screen(true full screen, no address bar visible). It serves as an internet cafe machine, with unique users and a login system.

What I'm looking to do is when the user leaves the root site (via clicking a button), to embed a frame at the top of the page with an address navigation bar, so I can track the time the user spent browsing. I'm exclusively using firefox, and I'm not concerned with support for such functionality in other browsers.

I assume I can achieve this with javascript, jquery, or ajax, I'm just not sure which to start with and how to begin planning the execution.

View 2 Replies View Related

Swap URL On Image Swap

Mar 28, 2011

I am a complete novice with Javascript, but am trying to work out how I can get a button to swap to another image when clicked, and each image have a different URL attached. I want to use this to toggle the bgcolor of my page using this script:

Code:
<script type="text/javascript">
<!--
function createCookie(name,value,days) {
if (days) {
var date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
var expires = "; expires="+date.toGMTString();
[Code]...

View 1 Replies View Related

How Do I Randomly Select File To RUN

Oct 15, 2009

I have the following code but it simply writes the path to the webpage.I actually want it to randomly select the .js code in that path and run it.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved