Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 41 - CoreGPT(Podar)_Flipbook_C8
P. 41

    The <MARQUEE> tag  is a container  tag.  It takes the text  or  image between  the  opening
                     <MARQUEE> and the closing </MARQUEE> tags.

                            <MARQUEE> Hello! I am a moving text </MARQUEE>
                     Similarly, the image can also be added to this moving part or section.

                            <MARQUEE> <IMG SRC="smiley.gif"> </MARQUEE>
                     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 object
                            reaches the end point, the object stops moving and no movement is seen afterwards. You
                            need to press F5 key or refresh the web page to see the output again.
                         •   <MARQUEE BEHAVIOR=”SCROLL”> will make the object move from start point to the
                            end and then emerges out again from the start point. 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 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 SCROLLAMOUNT=10>: The medium speed of the moving text.
                         •  <MARQUEE SCROLLAMOUNT=20>: The fastest speed of the moving text.

                     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>

                                                                   Working with Lists, Images and Tables in HTML         39

| 36 37 38 39 40 41 42 43 44 45 46 |