Page 125 - iPlus_Ver_2.0_class_7
P. 125
The <MARQUEE> tag has the following attributes:
• BEHAVIOR: It can have three values, which are: SLIDE, SCROLL, and ALTERNATE.
◦ <MARQUEE BEHAVIOR=”SLIDE”> will make the object move only once; that is, when the
object reaches the end point, the object stops moving and no movement is seen afterwards.
You need to press the F5 key or refresh the web page to see the output again.
◦ <MARQUEE BEHAVIOR=”SCROLL”> will make the object move from the start point to the
end and then emerge from the start point again. It seems that the object is coming out of
the start point and going inside the end point and continues to do the same thing. It follows
the same loop again and again.
◦ <MARQUEE BEHAVIOR=”ALTERNATE”> will make the object move from the start to the
end and then bounce back from the end to the start. It seems that the object is bouncing
between the start and the end point.
• DIRECTION: It allows you to set the direction in which the object will move. It can have four
values, which are: Up, Down, Right and Left.
◦ <MARQUEE DIRECTION=”UP”> will move the object in the upward direction, that is, from
bottom to top.
◦ <MARQUEE DIRECTION=”DOWN”> will move the object in the downward direction, that
is, from top to bottom.
◦ <MARQUEE DIRECTION=”RIGHT”> will move the object in the rightward direction, that is,
from left to right.
◦ <MARQUEE DIRECTION=”LEFT”> will move the object in the leftward direction, that is,
from right to left.
• SCROLLAMOUNT: It indicates the speed of the moving object.
The Scrollamount = 1 means the slowest moving object.
◦ <MARQUEE SCROLLAMOUNT=1> The slowest speed of the moving text
</MARQUEE>
◦ <MARQUEE SCROLLAMOUNT=10> The medium speed of the moving text
</MARQUEE>
◦ <MARQUEE SCROLLAMOUNT=20> The fastest speed of the moving text
</MARQUEE>
Other attributes include ALIGN, BGCOLOR, and WIDTH which work in the same way as done with
the other HTML tags.
Let us use the <MARQUEE> tag to move text and an image on the web page in the following
way:
<HTML>
<HEAD>
123
More on HTML

