PDA

View Full Version : Can't make it stop on mouseover



CyBeRaY
12-15-2011, 05:52 PM
1) Script Title: Crawler

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex2/crawler/index.htm

3) Describe problem: I want the marquee effect stop on mouseover but as instructed I set the "mouse" value to "pause" but it doesn't work. The other values work well, though.

See the problem here: http://weightlossbeforeandaftera.com/

jscheuer1
12-15-2011, 06:26 PM
Here:


marqueeInit({
uniqueid: 'photos',
style: {
'padding': '2px',
'width': '100%',
'height': '310px'
},
inc: 2, //speed - pixel increment for each iteration of this marquee's movement
mouse: 'pavse', //mouseover behavior ('pause' 'cursor driven' or false)
moveatleast: 2,
neutral: 10,
savedirection: true,
random: true
});

There's a typo. It should be 'pause'. But that's the default, so you can delete that line. Also savedirection, moveatleast and neutral are only for cursor driven, and width 100% is default, so you can get rid of them as well. So you end up with:


marqueeInit({
uniqueid: 'photos',
style: {
'padding': '2px',
'height': '310px'
},
inc: 2, //speed - pixel increment for each iteration of this marquee's movement
random: true
});

CyBeRaY
12-16-2011, 06:39 PM
Oh god it was because of the fancy font I use and v and u look just the same. Sorry and thanks for further info. I'll edit the code asap. Thanks a lot!

redcannibal
03-25-2013, 02:37 AM
I want to change how its crawling. Whenever I move my cursor to the right, the crawler starts crawling to the left. But I want it to stop crawling, no matter where my cursor is. Can you help me?

jscheuer1
03-25-2013, 03:10 AM
Please start a new thread for your question.