Page 80 - TechPluse_C8_Flipbook
P. 80
• <MARQUEE BEHAVIOR=”ALTERNATE”> will make the object move from start to the end
and then bounce back from end to 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”>: It moves the object in the upward direction, that is,
from bottom to top.
• <MARQUEE DIRECTION=”DOWN”>: It moves the object in the downward direction, that
is, from top to bottom.
• <MARQUEE DIRECTION=”RIGHT”>: It moves the object in the rightward direction, that
is, from left to right.
• <MARQUEE DIRECTION=”LEFT”>: It moves 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 a text and an image on the web page in the following
way:
<HTML>
<HEAD>
<TITLE> Moving Objects </TITLE>
</HEAD>
<BODY BGCOLOR = "lightgreen">
<H1> Moving Text Using Marquee </H1>
<FONT FACE = "MS Sans Serif" COLOR = "Red" Size = "7">
<MARQUEE DIRECTION = "Right" BEHAVIOR="SLIDE" SCROLLAMOUNT=10>
Touchpad
</MARQUEE>
</FONT>
<MARQUEE DIRECTION = "Left" BEHAVIOR="ALTERNATE" SCROLLAMOUNT=10>
<IMG SRC = "plane.png">
78 Premium Edition-VIII

