• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

The <MARQUEE> Element

The <MARQUEE> element is a popular one among Internet Explorer programmers. This element enables you to display scrolling text in an easy way. Here’s an example putting a few marquees to work:

(Listing 11-01.html on the web site)

<HTML> 
    <HEAD> 
        <TITLE> 
            Using the &lt;MARQUEE&gt; element 
        </TITLE> 
    </HEAD> 

    <BODY> 

        <MARQUEE ALIGN="TOP" LOOP="INFINITE" BEHAVIOR="BOUNCE" 
            BGCOLOR="#00FF00" DIRECTION="RIGHT"> 
            <H2> 
                Marquee number 1 
            </H2> 
        </MARQUEE> 

        <H1>Using Marquees</H1> 

        <MARQUEE ALIGN="LEFT" LOOP="INFINITE" BEHAVIOR="SCROLL" 
            BGCOLOR="#FF0000" HEIGHT=40 WIDTH=300 DIRECTION="DOWN"> 
            <H2> 
                Marquee number 2 
            </H2> 
        </MARQUEE> 

        <MARQUEE ALIGN="TOP" LOOP="INFINITE” BEHAVIOR="SLIDE" 
            BGCOLOR="#00FFFF" WIDTH=100% DIRECTION="RIGHT"> 
            <H2> 
                Marquee number 3 
            </H2> 
        </MARQUEE> 
    </BODY> 
</HTML> 

					  


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint