2b2gbi
12-13-2007, 02:13 AM
I mean like have a button to restart, stop, and play.
Is this possible?
djr33
12-13-2007, 04:10 AM
The answer is a yes and no. Marquee doesn't, as far as I know, allow any control. In fact, it's not a very good option, because it's outdated and not supported by all browsers.
However, you can achieve scrolling text using a number of Javascript methods. Then, yes, you could pause, restart, stop, etc.
I suggest just taking a look through the scripts in the DD library, and seeing if one of the existing scrolling scripts might work, with some adjustments.
The one thing you could manage with marquee and javascript would be to simply replace the <marquee> element with <div>, <p>, etc., then back again.
However, this would be a SIMPLE switch, in which it would just be either animated or not, and when it switches to not, it would jump to the "start", and then when it starts again, it would (i'd think) start at the beginning again. But the stop wouldn't keep it at a certain point.
Anyway, there are a number of scrollers that should work for you.
Kenny
12-13-2007, 04:18 AM
Yep
<marquee scrollamount=1>scrollamount=1</marquee>
<marquee scrollamount=2 id="q2">scrollamount=2</marquee>
<button onclick="document.getElementById('q2').scrollAmount=1">slow</button>
djr33
12-13-2007, 05:11 AM
Hmm... what do you know.
First result on google:
http://www.sxlist.com/techref/language/html/ib/Block_Level_Elements/marquee.htm
See near the bottom.
Anyway, marquee is still outdated, and I'd recommend another Javascript solution instead.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.