Tricky Tricks ›› Programming Tricks ›› Javascript Tricks ›› Rotating Banner One Url Linking To Several Different Banners

Rotating Banner One Url Linking To Several Different Banners

Javascript Tricks

Rotating Banner-One URL linking to several different banners:

<SCRIPT>

<!-- The link you want the banner to link tolnk="http://www.sponsors-url.com/";<!-- the alt text for the imagealtt="click now to go here";<!-- Banners this is for the banners you want to rotategfx0="http://www.your-domain.com/image1.jpg";gfx1="http://www.your-domain.com/image2.jpg";gfx2="http://www.your-domain.com/image3.jpg";gfx3="http://www.your-domain.com/image4.jpg";<!-- Text that goes under the banner. Note, this text is linkedtxt0="insert text for under the banner1";txt1="insert text for under the banner2";txt2="insert text for under the banner3";txt3="insert text for under the banner4";<!-- This is equal to the number of bannerslen=4; <!-- No need to change anything down heretoday=new Date();today=today.getTime()/10;rnd=today%len;document.writeln('<A HREF="'+eval("lnk")+'"><IMG SRC="'+eval("gfx"+rnd)+'" ALT="'+eval("altt")+'"><BR>'+eval("txt"+rnd)+'</A>');//-->

</SCRIPT>


Partners