Computers |
|
| | #1 (permalink) |
| Newb Techie Join Date: Aug 2005
Posts: 26
| Is there any way that I could combine these options THAT HAVE TO DO WITH BANNER AD's Automatically refresh image or gif animation New image or gif animation with every page load as similar shown on this site generator http://www.htmlbasix.com/banner.shtml |
| | |
| | #3 (permalink) |
| Newb Techie Join Date: Aug 2005
Posts: 26
| The Banner Rotater Only Gives You The "Same First Image" Every Page Load But, "Refresh's To The Next Image". The Banner Randomizer Gives You A "Different Image" Every Page Load However, "Does Not Rotate To The Next Image". This is what I mean't by combining "both" features. What I'm Saying Is I Want A "Image That Randomizes @ Every Page Load" + "Timed Rotates To Next Available Image". |
| | |
| | #5 (permalink) |
| True Techie Join Date: Jul 2005
Posts: 122
| Ok sorry about that i was pretty confused though lol anyway i've got what you're looking for. but first let me just tell you im not a script writer i found this code on a webpage (http://www.cgiscript.net/cgi-script/....1230395883322) and have tampered with it to make the code shorter and remove the hyperlinks and the bits that aren't needed so if there are problems well i cant really help. <SCRIPT LANGUAGE="Javascript"><!-- // *********************************************** // AUTHOR: WWW.CGISCRIPT.NET, LLC // URL: http://www.cgiscript.net // Use the script, just leave this message intact. // Download your FREE CGI/Perl Scripts today! // ( http://www.cgiscript.net/scripts.htm ) // *********************************************** function banner() { }; banner = new banner(); number = 0; // bannerArray banner[number++] = "[img]Image url here[/img]" banner[number++] = "[img]Image url here[/img]" banner[number++] = "[img]Image url here[/img]" banner[number++] = "[img]Image url here[/img]" banner[number++] = "[img]Image url here[/img]" // keep adding items here... increment = Math.floor(Math.random() * number); document.write(banner[increment]);
__________________ ![]() |
| | |