User Name Password Register
DaniWeb IT Discussion Community
All
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
Reply
Join Date: Jan 2008
Posts: 1
Reputation: esslic is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
esslic esslic is offline Offline
Newbie Poster

Help Rotating banners of all types with random startup?

  #1  
Feb 11th, 2008
Hi everyone

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.
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JavaScript / DHTML / AJAX Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 1:05 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC