Rotating banners of all types with random startup?

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Jan 2008
Posts: 1
Reputation: esslic is an unknown quantity at this point 
Solved Threads: 0
esslic esslic is offline Offline
Newbie Poster

Rotating banners of all types with random startup?

 
0
  #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:

JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1.  
  2. <script language="javascript">
  3. banner1 = new Banner('banner1');
  4. banner1.add("IMAGE", "espebanner/thunder.jpg", 1, 60, 468,"");
  5. banner1.add("IMAGE", "espebanner/esp.jpg", 1, 60, 468,"espebanner.html");
  6. banner1.add("FLASH", "espebanner/fun.swf", 1, 60, 468,"espebanner.html");
  7.  
  8. document.write(banner1);
  9. banner1.start();





Thanx
Last edited by esslic; Feb 11th, 2008 at 7:44 am.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the JavaScript / DHTML / AJAX Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC