Page 21 - PortGPT_V2.1_C8_Flipbook
P. 21

<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" WIDTH = "400" HEIGHT = "400">
                 </MARQUEE>

                 </BODY>
                 </HTML>




                                                                                 Images, Links, Audio, Video in HTML  19
   16   17   18   19   20   21   22   23   24   25   26