|
-
java scripts
Can you help?
Question one.
I have issues with some script my friend is running. I know html but JS eludes me for the most part. My friend has a script that rotates linked banners when the page is refreshed. It works now that I fixed it's original problem, however, I'd like to adapt it to another function that needs to be timed... for 10 seconds (more or less) before it changes the linked banner rather than waiting for a page load.
The rest of the script works like I want it to. (By the way, this script is not random - it loads banners sequentially from a list.)
This part of the script.... what can I do to make the banners rotate without refreshing? (I know that it's teh var sec = but.... I'm I've never done this before so I'm not sure what numbers to put in - I'm sure it's not as simple as typing in a 10).
var how_many_ads = X
var now = new Date()
var sec = now.getSeconds()
var ad = sec % how_many_ads;
ad +=1;
Similar Threads
-
Replies: 9
Last Post: 09-19-2007, 05:58 AM
-
Replies: 1
Last Post: 05-13-2005, 06:46 AM
-
By Ewa in forum Architecture and Design
Replies: 1
Last Post: 03-02-2002, 12:13 PM
-
By JJ in forum Enterprise
Replies: 1
Last Post: 07-06-2000, 04:50 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks