Fandom

HTML Wiki

Marquee

69pages on
this wiki
Add New Page
Talk2 Share
Smallwikipedialogo.png This page uses content from Wikipedia. The original article was at http://en.wikipedia.org/w/index.php?title=Marquee_element&oldid=349665038. The list of authors can be seen in the page history. As with HTML Wiki, the text of Wikipedia is available under the GNU Free Documentation License.
  1. REDIRECT Template:TagInfobox

The marquee tag is a non-standard HTML element which causes text to scroll up, down, left or right automatically. The tag was first introduced in early versions of Internet Explorer, and was compared to Netscape Netscape's blink element, as a proprietary non-standard extension to the HTML standard with usability problems. It is deprecated by the W3C, and they advise against using it in HTML.

Uses the same syntax as the img element.

Allows the user to set the behavior of the marquee to one of three different types:
  • Scroll (default) – Scrolls the text from right-to-left, and restarts at the right side of the marquee when it has reached the left side. Text disappears when looping finishes.
  • Slide – When used in absence of the 'Behavior' attribute, contents to be scrolled will slide the entire length of marquee but stops the moment it hits the end, so that the contents will be displayed. But if it is used with attribute 'Behavior' then the attribute 'Slide' will be ignored.
Behavior

Loops are counted by each time it reaches each end of the marquee; a loop of 1 is different from 'Slide' attribute. when item is being scrolled with 'Slide' attribute, item will stop permanently at the end of lengh of the marquee, displaying the entire item. However, when an item is being scrolled without a 'Loop' attribute, the number of scrolls will be repeated according to what number 'Loop' is equal to. If 'Loop=1' then item will scroll only once and will exit the length of marquee completely, while the item being scrolled will stop would be the same as 'Slide'. By default, 'Loop=infinite' so it is not needed to code the attribute 'Loop' is you want a non-stop scroll. Note: 'Loop' will be ignored if attribute 'Behavior' is coded. Also, if 'Behavior=Alternate' and 'Loop=2' then item will go from beginning of the Marquee to the end and back to the beginning, counting a round trip as 2 loops.

Bgcolor
Sets the background color of the marquee.
Direction
Sets the direction of the marquee box to either left-to-right, right-to-left, up-to-down and down-to-up.
Width
This sets how wide the marquee should be.
Loop
This sets how many times the marquee should 'Loop' its text. Each trip counts as one loop.::This sets the amount of time, in milliseconds, between 'frames'. Much like watching a replay of a video where every frame of the video would be paused for x number of miliseconds. So, 'Scrolldelay=1000' means a slow motion where every frame lasts one thousand miliseconds or one second.
This is how many pixels the text moves between 'frames'. So scrollamount=1 gives you the slowest scroll speed.
Scrolldelay
This sets how many times the marquee should 'Loop' its text. Each trip counts as one loop.::This sets the amount of time, in milliseconds, between 'frames'. Much like watching a replay of a video where every frame of the video would be paused for x number of miliseconds. So, 'Scrolldelay=1000' means a slow motion where every frame lasts one thousand miliseconds or one second.

(Note: Marquee can have not just text but just about any package of item(s) such as one or more images or movie clips or animated GIFs.)

[edit] ComplianceEdit

The marquee element was first invented for Microsoft's Internet Explorer and is still supported. The Mozilla Firefox, Opera, Chrome and Safari web browsers support it for legacy page compatibility. The element is not compliant HTML. Cascading Style Sheets properties to achieve the same effect are specified in the Marquee Module Level 3, which is in the call for implementations stage.[3] Similar effects can also be achieved through the use of JavaScript on servers which allow for its use.

[edit] See alsoEdit

[edit] NotesEdit

  1. ^ "Glossary » marquee". Usability First. Foraker. http://www.usabilityfirst.com/glossary/marquee/. Retrieved 2010-03-14.
  2. ^ Tim Louis Macaluso (2009-05-27). "ADVERTISING: Study shows that eyes will forsake words for movement". Rochester City Newspaper. http://www.rochestercitynewspaper.com/news/articles/2009/05/ADVERTISING-Study-shows-that-eyes-will-forsake-words-for-movement/. Retrieved 2010-03-14.
  3. ^ CSS Marquee Module Level 3

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.