Sunday 24 June 2012

text scrolling


<MARQUEE ...>

Attributes:
  • WIDTH: how wide the marquee is
  • HEIGHT: how tall the marquee is
  • DIRECTION: which direction the marquee should scroll
  • BEHAVIOR: what type of scrolling
  • SCROLLDELAY: how long to delay between each jump
  • SCROLLAMOUNT: how far to scroll
  • LOOP: how many times to loop (default=infinite)
  • BGCOLOR: background color
  • HSPACE: horizontal space around the marquee
  • VSPACE: vertical space around the marquee
The Marquee tag creates a scrolling effect and can be tailored to include any HTML content. Like the much hated <blink> tag, the <marquee> tag is often regarded as one of the "evil" tags, so many people shy away from using it. There are some places where it can work well, such as in RSS scrollers, squeezing some products into a page for page monetization as per our tee shirt example (see the sidebar on the right), and for accents on a page.
The marquee tag has often been overused by beginning coders who like to show off their HTML prowess by overusing every kind of fancy tag they can conjure up and in the early days of the web, the marquee tag was overused almost as much as the <blink> tag to the irritation of many. Microsoft even stopped supporting the <blink> tag, so that the simple HTML for blinking text now does not work in IE! (There is a way to do it with javascript that works in all browsers if you really must!)
The basic use of <MARQUEE ...> is simple. Put almost any kind of markup between <MARQUEE> and </MARQUEE>.
A basic marquee is coded like this:
Code:<marquee>Scrolling text</marquee>
Display:Scrolling text















Enter Text Below:



No comments:

Post a Comment