PDA

View Full Version : Pause on Mouse Over



Dimi
06-27-2005, 09:44 PM
Anyone know of a way to pause this script either with a mouse over or a button. Anything?

Thanx.

http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm

bubba.daniel
07-04-2005, 06:11 PM
You are in the wrong place....

but, try this code



//Pause slideshow onMousever (0=no. 1=yes)?
var pauseit=1


var slideshow_width='140px' //SET IMAGE WIDTH
var slideshow_height='225px' //SET IMAGE HEIGHT
var pause=3000 //SET PAUSE BETWEEN SLIDE (3000=3 seconds)
insert here

bubba.daniel
07-04-2005, 06:21 PM
tested and it does work

Dimi
07-24-2005, 09:57 PM
Pretty confused here. So after I set the variable....where and what do I place for the mouseover code.

bubba.daniel
07-24-2005, 10:21 PM
Pretty confused here. So after I set the variable....where and what do I place for the mouseover code.

This is what you need.



var slideshow_width='140px' //SET IMAGE WIDTH
var slideshow_height='225px' //SET IMAGE HEIGHT
var pause=3000 //SET PAUSE BETWEEN SLIDE (3000=3 seconds)
//Pause slideshow onMousever (0=no. 1=yes)?
var pauseit=1

As i originally posted it.. i tested it in IE6 FX and Mozilla and it works.

If you have problems just post them lol.. :D

Dimi
07-24-2005, 10:43 PM
Let me get this straight...if I create a variable call pauseit and set it to 1...that will pause the slideshow? :confused:
Wouldn't I need to add additional code to the script?

bubba.daniel
07-25-2005, 03:10 AM
I don't think so.. but i could be wrong, i added that what i put to a test page and it worked fine for me.