Marquees were developed by Internet Explorer and may not work in other browsers. They can have images, text or both. They can go in different directions. Marquees are created with html code. Other effects can be obtained with Javascripts.
These Marquees have been tested in both Internet Explorer and Firefox. They may not work properly in other browsers. If they are not working right, try them in Internet Explorer or Firefox before giving up. It may just be a browser glitch.
Basic Marquee
Code:
<marquee> Your Words</marquee>
Changing Direction
Code:
<marquee direction="right"> Make the marquee scroll to the right. This is helpful when images are used. </marquee>
Back and Forth
Code:
<div align="center"> <marquee behavior="alternate" width="60%"> Which way do I go? </marquee> </div>
Note: The images for the train are reversed to compensate for the scroll going backwards.
Vertical Scrolling Marquee
Code:
<marquee scrolldelay="250" behavior="scroll" direction="up">This Marquee is browser sensitive and may not work properly in all browsers. It is created using html only. The scroll is jerky. This can be avoided by using a javascript rather than html. The lower the scrolldelay, the faster it moves. You may also want to put marquee inside a table to control the width thereby reducing the effect of the blank space at the end of the message.
</marquee>
Mouse Over Stop
Code:
<marquee behavior= "scroll" direction= "up" height="150" scrollamount= "2" scrolldelay= "70" onmouseover='this.stop()' onmouseout='this.start()'>This smooth flowing marquee has some javascript code in it. The user can stop the scroll at any time simply by putting the mouse over it. This makes it great for adding links.</marquee>