•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 428,638 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,000 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 1133 | Replies: 0
![]() |
•
•
Join Date: Jan 2008
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
Hi everyone
I need to have rotating banners on my under-development websites with the conditions:
I have got the script but it can only display banners for a fixed amount of time (All types). I want to make sure it loads banners randomly as well but dont know how to do it.
The script takes banner as an object. How could it be possible to make sure it can take up random objects using JavaScript?
The code on the page is this:
Thanx
I need to have rotating banners on my under-development websites with the conditions:
- All types should be displayed i.e. JPG, SWF, GIFs etc
On refreshing the page a new banner should load.
Banners should load with a random start
I have got the script but it can only display banners for a fixed amount of time (All types). I want to make sure it loads banners randomly as well but dont know how to do it.
The script takes banner as an object. How could it be possible to make sure it can take up random objects using JavaScript?
The code on the page is this:
<script language="javascript">
banner1 = new Banner('banner1');
banner1.add("IMAGE", "espebanner/thunder.jpg", 1, 60, 468,"");
banner1.add("IMAGE", "espebanner/esp.jpg", 1, 60, 468,"espebanner.html");
banner1.add("FLASH", "espebanner/fun.swf", 1, 60, 468,"espebanner.html");
document.write(banner1);
banner1.start();
Thanx
Last edited by esslic : Feb 11th, 2008 at 6:44 am.
![]() |
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
ajax asp cross-browser javascript menu with few lines of code developer development firefox home html internet javascript javascript smooth scrolling scroll smoothly window document position javascript tab menu with rounded corners generator microsoft msdn office prevent javascript menu from getting hidden under flash movies site software sql vista web
- Previous Thread: YUI Library Examples
- Next Thread: HTML+JS help


Linear Mode