html marquee
The <marquee> tag is a useful tag for creating a simple scrolling effect like in the example shown here. It could be used as a simple ticker with hyperlinks to other pages on your site or news stories.
The code below is that used to create the scrolling example.
Marquee Code:
<MARQUEE width="90%" style="COLOR: #002d7e; FONT-FAMILY: Verdana; FONT-VARIANT: small-caps" scrollAmount=5 width=230 bgColor=#ffffff height=20 align="middle"><A href="index.html" target=_BLANK>Index Page.... </A> <A href="basic-html.html" target=_BLANK>Basic HTML...</A> <A href="meta-tags.html " target=_BLANK>Meta Tags....</A> <A href="html-redirect.html" target=_BLANK>HTML Redirect.... </A></MARQUEE>
Available parameters for <marquee>:
- WIDTH: how wide the marquee is
- HEIGHT: how tall the marquee is
- DIRECTION: which direction the marquee will scroll: DIRECTION=LEFT or DIRECTION=RIGHT
- BEHAVIOR: what type of scrolling: BEHAVIOR=SCROLL, BEHAVIOR=SLIDE or BEHAVIOR=ALTERNATE
- SCROLLDELAY: how long to delay between each jump: SCROLLDELAY=n i.e. if n=1000 the delay would be 1 second
- SCROLLAMOUNT: how far to jump: SCROLLAMOUNT=n n=the disance to move each time
- LOOP: how many times to loop
- BGCOLOR: background color
- HSPACE: horizontal space around the marquee
- VSPACE: vertical space around the marquee
You can also incorporate style elements into your <marquee> tags as in this example or use a style sheet if you wish
<marquee> is now supported by Netscape, 7 and above. Earlier versions of Netscape don't support the tag.
|