how do u stop marquee on mouseover??
how do u stop marquee on mouseover??
Please be more descriptive. Do you mean the <marquee> tag of IE, or a custom DHTML marquee? If the later, what's the URL to it?
ok i have this code:
and it moves from right to left and loops, i want it to stop on mouseover and then start back up when you take your mouse away from it.<MARQUEE>
my text here
</MARQUEE>
i want to make it stop when you hover over it.
Some simple javascript events are required (which requires that the client's browser is javascript enabled):
The marquee tag was originally IE specific. It is now supported in limited fashion in some other browsers. FireFox will behave the same as IE for the above example. Opera will reset the marquee to the beginning. Many browsers will do nothing at all, some will not even scroll the marquee to begin with.HTML Code:<marquee onmouseover="this.setAttribute('scrollamount', 0, 0);" onmouseout="this.setAttribute('scrollamount', 6, 0);"> my text here </marquee>
If you want more consistent cross browser support and control over a marquee type effect, use a purely javascript marquee.
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
I didn't know Firefox now supports the marquee tag too.
IllustriousLyts, you may also want to see this page for a list of marquee properties and methods, in IE at least.
That link is interesting dd - it says that you can do this:
Which works well in IE and FF. Still no go in Opera but, at least it does nothing, instead of resetting the marquee position to the beginning point which, is what my previous version does in Opera.Code:<marquee onmouseover="this.stop();" onmouseout="this.start();"> my text here </marquee>
Still, just about anyone would be better off using a javascript marquee like:
http://home.comcast.net/~jscheuer1/side/marqueeh.htm
for example. There are many others.
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
The downfall of your javascript is that if javascript is disabled the contents are not displayed. But with the marque tag if the browser does not support it it will probably just display it like normal. The best solution would be a script that found div or spans with a certain idenifier(like a class name or ID) and would scroll them.
There's always the <noscript> tag for alternate content in situations like these.
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
hello to all friends
I'm from iran
you can use of this
it's better than of them<marquee onmouseover="stop()" onmouseout="start()">
my text here 2
</marquee>
have a good time
Last edited by jscheuer1; 12-26-2010 at 03:24 AM. Reason: remove unauthorized sig
Bookmarks