Log in

View Full Version : I'm looking for a mouseover script that will cycle more than just 2 images



transistor
01-29-2008, 01:13 AM
I'd like a script that cycles about 4-5 images with a 2 second delay between each. Unfortunately my images aren't named consecutively like image1.jpg, image2.jpg, image3.jpg, but rather image2.jpg, image8.jpg, image4.jpg..

Does anyone know where I can find a script like this? I've looked all over without luck :(

BLiZZaRD
01-29-2008, 03:42 AM
And you want this to only cycle during a mouse over? Or when it loads?

transistor
01-29-2008, 04:49 AM
And you want this to only cycle during a mouse over? Or when it loads?

only to cycle on mouseover

transistor
02-01-2008, 12:21 AM
anyone know where i can find this?

Nile
02-01-2008, 12:25 AM
So you wanna make it so when you mouseover it goes then when you take your mouseoff it stops on that image you were on?

transistor
02-01-2008, 01:14 PM
So you wanna make it so when you mouseover it goes then when you take your mouseoff it stops on that image you were on?

actually, i want it so it starts cycling when the mouse is over it, but reverts back to the first image when the mouse moves off

Nile
02-01-2008, 01:26 PM
Try this, your gonna need to do the rest, all you need to do is make a link, and an onmouseon(i think) to do it and get rid of the body onload:

<body onLoad="frame_upload_1();">
<script type="text/javascript">
function frame_upload_1(){
document.getElementById('div_for_up').innerHTML='<img src="http://forums.tizag.com/images/custom/tizagSugar.jpg" />'; //Get the element by its id
setTimeout('frame_upload_2()', 2000); //After 2000 miliseconds do the function frame_upload_2()
}
function frame_upload_2(){
document.getElementById('div_for_up').innerHTML='<img src="http://www.movenext.nl/page/images/thumb/w248h220_php-logo.jpg" />'; //Get the element by its id
setTimeout('frame_upload_3()', 2000); //After 2000 miliseconds do the function frame_upload_3()
}
function frame_upload_3(){
document.getElementById('div_for_up').innerHTML='<img src="http://blogs.zdnet.com/open-source/images/mysql.gif" />'; //Get the element by its id
setTimeout('frame_upload_1()', 2000); //After 2000 miliseconds do the function frame_upload_1()
}
</script>
<div id="div_for_up">Loading....</div>
</body>

transistor
02-02-2008, 04:58 PM
wow, thank you very much!