golfDoctor
asked on
Shuffle banners
How can i shuffles client banners on my site?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
neerja- No, I meant shuffle, one per page. Thanks.
ASKER
Thanks, that works well.
You can do it at client end only without refreshing ur page..
==========================
<SCRIPT Language="Javascript">
counter = 0
imgArr = new Array("img0.gif","img1.gif
setInterval("changeImage()
function changeImage()
{
document.all.banner.src=im
counter++;
if (counter > imgArr.length)
{
counter = 0
}
}
</SCRIPT>
<p><img border="0" src="img1.gif" id="banner"></p>
==========================
check this for more details
https://www.experts-exchange.com/questions/21056453/Randomise-Banners.html
neeraj523