Basic Scroller
The basic scroller has pre-defined speed and size. It moves from right to left and doesn't slow down in between. This is what it looks like:
This is given by the code:
Changing Direction
You can make your marquee scroll left, right, top or bottom, whatever you think wll best fit your page.
Just fit left, right, top or bottom as your starting point and it will start to scroll to the opposite direction.
And this is made by
Sizes and Colors
Speaking of backgrounds, marquees can look quite nice with a background. This is usually used for when you wish to highlight your scroller or when your scroller needs to match a certain layout.
This can be achieved using
You could make up some physics questions based on this =P
The basic code is:
<marquee behavior="scroll" direction="left" scrollamount="#">Scrolling Text Here</marquee>
Where # in scrollamount="#" is replaced with any number between 1 and 50 (with 50 being the fastest).
STOP!
This isn't HTML, it's javascript, but a lot of people want to use it, and it's very handy for affiliates lists and such.
This is given by the code:
<marquee behavior="scroll" direction="left" onmouseover='this.stop()' onmouseout='this.start()'>Hover over this scrolling space</marquee>
Other Functions
You can combine your marquee with positioning tags like centering it. You can have anything in your marquee, even textareas! The basic marquee is the width of your page (which resizes along with the page if you maximise or minimise your window).