The new attributes, events, and methods
First off, as mentioned, the new marquee now supports rich
HTML contents and
CSS, able to interpret and render other tags contained inside
text. Big scrolling text.</marquee>
<marquee><img src="1.gif"> <img
<marquee><style=background-color:yellow;border:1px solid black">Big
scrolling text. Big scrolling text.</style></marquee>
-The new attributes
A host of new attributes have been introduced that make
everything from changing the marquee's dimensions, scroll direction, and
even speed, possible. Here they are, in full force:
Attributes of the <marquee> tag of IE
||Specifies how the marquee should scroll. Valid values
are: "scroll", "alternate",
or "slide." The default value
||Specifies the direction the marquee should scroll. Valid
values are: "left", "right", "up",
and "down." The default value
||Specifies the width of the marquee, in px or % units.
||Specifies the height of the marquee, in px or % units.
||Specifies the amount in pixels the marquee should scroll
each time it's redrawn (see scrollDelay). The default value is "6".
||Specifies the amount in milliseconds between times the
marquee is redrawn. Default value is "85".
||Specifies whether the marquee should catch up with any
skipped cycles. The default value is "false."
||Specifies the number of times the marquee should repeat
itself when it reaches the end of the message. The default value is "infinite."
Define any one of these attributes directly inside the
<marquee> tag itself (as with any regular HTML attributes). I think the
descriptions above pretty much speak for themselves, so let's move on.
-The new events
a good number of events:
Events of the <marquee> tag of IE
||Fires just when the marquee is about to
||Fires as soon as the marquee has completed
||Fires when the marquee has reached it's
end and begins to reverse directions. Applicable only if
attribute is set to alternate.
||Fires when the mouse moves over the
||Fires when the mouse moves out.
||Fires when a click is detected on the
Clear enough...lastly, let's show the new methods of
Methods of the <marquee> tag of IE
||Starts the scrolling of the marquee (after
it has been stopped)
||Stops the marquee.
You may want to print this page, as it serves as a
quick reference to all that's new in the <marquee> tag of IE.