Wednesday, 27 June 2012

Stop & Start Marquee with Cursor

<html>
<head></head>
<body>
<marquee behavior="scroll" bgcolor="pink" scrolldelay="10" hspace="10%" vspace="10" scrollamount="5" loop="52" direction="right" onmouseover="this.stop();"
onmouseout="this.start();">Go on... STOP ME!
<img src="Desert.jpg" height="60px" width="80px">
<img src="Jellyfish.jpg" height="60px" width="80px">

</marquee>
<p><a  style="font-size:11px;color:#999;"
 href="http://www.htmlcodes.me/marquees/stop-marquee.cfm">Pause marquee</a></p>
</body>
</html>

Marquee Attributes

The <marquee> tag accepts a number of attributes (some of which are included in the above examples). Feel free to experiment with these settings to see the effect they have on your scrolling text. The full list of attributes are:
widthSets the width of the marqueescrollamountHow far to jump as it moves
heightSets the height of the marqueeloopHow many times it should loop
directionSets the direction of the marqueebgcolorSets the background color of the marquee
behaviorWhether to slide, bounce, or scrollhspaceSets the amount of horizontal space around the marquee
scrolldelayHow long the marquee should wait before each jumpvspaceSets the amount of vertical space around the marquee

No comments:

Post a Comment