How would I cause text to scroll either vertically or horizontally? (And be able to change the speed of the scroll). Any help to get me started would be appreciated...al
A:
Straight out of basic HTML 1.0:
<div align="center">
<font color="#FFF" size="2">
<marquee bgcolor="#000080" direction="right" loop="20" width="75%">
<strong>This is cool!</strong>
</marquee>
</font>
</div>
or vertical
<div align="center">
<marquee bgcolor="#000080" scrollamount="2" direction="up" loop="true" width="35%">
<center>
<font color="#ffffff" size="+1">
<strong> THIS IS A COOL WAY<br>
TO MAKE YOUR TEXT<br>
SCROLL UPWARDS<br><br>
IT IS EASY AND FAST LOADING
</strong>
</font>
</center>
</marquee>
</div>
Don't sweat the comments man.
Greg
2010-01-09 15:53:51
Maybe you should hint that this is a non-standard HTML tag and that one cannot assume that this support by all browsers: http://en.wikipedia.org/wiki/Marquee_element
Felix Kling
2010-01-09 15:58:46
The comments are perfectly appropriate. The question doesn't have nearly enough information to arrive at an answer without guessing.
Bill the Lizard
2010-01-09 18:03:16
+3
A:
If you are talking about web development and do not want to use the non-standards <marquee>
element, you should implement it in JavaScript. A nice solution, a plugin for jQuery library - here: http://remysharp.com/2008/09/10/the-silky-smooth-marquee/
naivists
2010-01-09 15:56:56
I really appreciate your answer. I thought that I posted this question in the 'Android' tag. The programming lang. I'm referring to is Android Java. Anyone know how to scroll text in Java?
Allan
2010-01-11 20:13:29