Do you want to make your text "moving" in your site?
Just using <marquee> HTML code, for example,
<marquee> Your text here </marquee>
The output is:
Next, put a limit to its width by modifying this code to
<marquee width="100px"> Your text here </marquee>
then the output will be:
Not clear? Let's put a blue as its back ground color modifying this code to
<marquee width="100px" bgcolor = "blue"> Your text here </marquee>
Want to change its direction? No problem, just modifying this code to
<marquee width="100px" bgcolor = "blue" direction = "right"> Your text here </marquee>
How about control its speed??Adding scrollamount="speed" to your code, the higher the number of speed, the faster the text move.
<marquee bgcolor="blue" direction="right" scrollamount="1" width="100px"> Your text here </marquee>
Last but not least, change the text to hyperlink will be very useful for master to save their space. Just modifying this code to
<marquee behavior="scroll" bgcolor="yellow" direction="right" onmouseout="this.start()" onmouseover="this.stop()" scrollamount="10" width="100px"> <a href="http://xaivierchia.blogspot.com/">XaivierBlog</a> </marquee>
Written by: Xaivier Chia
|
1 comment:
Nice HTML tip! Do you have any suggestions for tutorials on starting to learn HTML coding from scratch? I am very interested but so far it seems really daunting.
Post a Comment