sourpickles Posted November 24, 2009 Posted November 24, 2009 I'd like to have one of my banners that we have on the right column change every few seconds. How would I do this? It's static right now..... obviously. We use the banner to take you to a collection for what ever we want for that week. We'd like to be able to make say....5 of these banners and have them rotate and link to those correct pages. If not at least link to the page we're using now. Any Ideas? I found a script that I plugged into my DreamWeaver back home that's HTML coded. I'm learning as I go with PHP. Script I use for that is below.... Would this work the same? If so how or where would I plug it in? Thanks! ------- <script language="JavaScript"> // Advanced Random Images Start // Copyright 2001-2006 All rights reserved, by Paul Davis - www.kaosweaver.com var j,d="",l="",m="",p="",q="",z="",KW_ARI= new Array() // KW_rs[5000] KW_ARI[KW_ARI.length]='/Images/rotation1.png'; KW_ARI[KW_ARI.length]='/Images/rotation2.png'; KW_ARI[KW_ARI.length]='/Images/rotation3.png'; KW_ARI[KW_ARI.length]='/Images/rotation4.png'; KW_ARI[KW_ARI.length]='/Images/rotation5.png'; KW_ARI[KW_ARI.length]='/Images/rotation6.png'; KW_ARI[KW_ARI.length]='/Images/rotation7.png'; KW_ARI[KW_ARI.length]='/Images/rotation8.png'; KW_ARI[KW_ARI.length]='/Images/rotation9.png'; KW_ARI[KW_ARI.length]='/Images/rotation10.png'; KW_ARI[KW_ARI.length]='/Images/rotation11.png'; KW_ARI[KW_ARI.length]='/Images/rotation12.png'; j=parseInt(Math.random()*KW_ARI.length); j=(isNaN(j))?0:j; document.write("<img name='randomSlideShow' src='"+KW_ARI[j]+"'>"); function rndSlideShow(t,l) { // Random Slideshow by Kaosweaver x=document.randomSlideShow; j=l; while (l==j) { j=parseInt(Math.random()*KW_ARI.length); j=(isNaN(j))?0:j; } x.src=KW_ARI[j]; setTimeout("rndSlideShow("+t+","+j+")",t); } rndSlideShow(5000,0) // Advanced Random Images End </script> <!-- KW ARI Image -->
Guest Posted November 25, 2009 Posted November 25, 2009 Hi Jason, You may be able to borrow some of the code from this contribution to help you with the rotation: http://addons.oscommerce.com/info/5719 Chris
Recommended Posts
Archived
This topic is now archived and is closed to further replies.