|
|
Adding a Marquee The marquee tag allows you to scroll some text of your choice across the screen, and it doesn't need a JavaScript to make it work. The only problem with using it is that the marquee tag only works in Internet Explorer. Netscape will just show the text you wanted to scroll as plain text on the screen. If you are using IE, here is the code to get a marquee to work: <MARQUEE LOOP="infinite">Your choice of text here</MARQUEE> The LOOP="infinite" tells the text to scroll for as long as the page is open in the browser. More on that, plus some other options, in a moment. For now, let's look at an example. The code below creates our example marquee: <MARQUEE LOOP="infinite"> This code will give you the scrolling text below. It makes the page have quite an interesting effect: What else can you do? Well, there are several attributes you can add to the marquee tag to make the scrolling text more entertaining: LOOP=" " BGCOLOR=" " <MARQUEE LOOP="infinite" BGCOLOR="yellow"> And the result would be the scrolling text over a yellow background! WIDTH=" " <MARQUEE LOOP="infinite" BGCOLOR="yellow" WIDTH="300"> |

