Text to be moved (MARQUEE)

Source: Internet
Author: User
Tags format time interval
The marquee tag is used to scroll the text in the available browsing area. This tag only applies to IE3 later versions of the browser.
Format:
<marquee align= "..."
Behavior= "..."
Bgcolor= "..."
Direction= "..."
Height= "..."
Width= "..."
Hspace= "..."
Vspace= "..."
Loop= "..."
Scrollamount= "..."
Scrolldelay= "..."
"..."
</MARQUEE>

Property:
ALIGN: Used to align scrolling text by a set value. The values that align can set are: Left,center,right,top,bottom. This property is not necessarily used.
Cases:
<marquee align= "Top" > This scrolling text is set to align up </MARQUEE>

Effect:

This scrolling text is set to align up

BEHAVIOR: When text appears on the page, let the browser process the text in the way it is set. If you set the method to slide, the text is moved to the document and stays on the margins. If set to alternate, the text moves from one side to the other. If set to scroll, the text will scroll repeatedly on the page. This property is not necessarily used. The values that can be set are: Silide,alternate,scroll.
Cases:
<marquee behavior= "Alternate" > Text moves from one side to the other </MARQUEE>

Effect:

Text moves from one side to the other

bgcolor: The background color used to set captions. The background color can be set with RGB, 16-in-value format or color name.
Cases:
<marquee bgcolor= "Red" > Use color name to set scrolling text background color to red </MARQUEE>
<marquee bgcolor= "#FF0000" > Set scrolling text background color to red </MARQUEE> with 16 values
<marquee Bgcolor=rgb (100%,0%,0%) > Use RGB to set scrolling text background color to red </MARQUEE>

Effect:

Set the scrolling text background color to red with the color name

DIRECTION: Used to set the direction of text scrolling, you can set the values are: Left,right. This property is not necessarily used.
Cases:
<marquee direction= "Left" > Text scrolling to the Ieft </MARQUEE>
<marquee direction= "Right" > Text scrolling to the left </MARQUEE>

Effect:

Text scrolls to the left

Text scrolls to the right

Height: Used to set scrolling marquee heights, which can be expressed as a percentage of pixels or a visible page. This property is not necessarily used.
Cases:
The height of the <marquee height= "10%" > Scrolling marquee is the 10%</marquee> of the visual page
<marquee height= > Scrolling caption height is 12 pixels </MARQUEE>

Effect:

The height of the scrolling marquee is 12 pixels

Width: Used to set the length of the marquee, which can be expressed as a percentage of pixels or a visible page. This property is not necessarily used.
Cases:
The width of the <marquee width= "90%" > Scrolling marquee is the 90%</marquee> of the viewable page
<marquee width= > Scrolling marquee width is 200 pixels </MARQUEE>

Effect:

The width of the scrolling marquee is 90% of the viewable page

The width of the scrolling marquee is 200 pixels

Hspace: Used to set the blank space around the scrolling marquee, the blank space is expressed in pixels. This property is not necessarily used.
Cases:
<marquee hspace= > scrolling subtitles left and right blank space is 15 pixels </MARQUEE>

Effect:

Scrolling marquee left and right blank space is 15 pixels

Vspace: Used to set up the blank space on the top and bottom of the scrolling marquee, the blank space is expressed in pixels. This property is not necessarily used.
Cases:
<marquee vspace= "2" > Scrolling marquee up and down blank space is 2 pixels </MARQUEE>

Effect:

The blank space up and down of the scrolling marquee is 2 pixels

LOOP: The number of times to set the scrolling caption. When the value of the loop is "INFINITE" or "-1", the text is scrolled indefinitely. This property is not necessarily used.
Cases:
<marquee loop= "-1" > Text scrolling countless times </MARQUEE>
<marquee loop= "5" > Text scrolling 5 times </MARQUEE>

Effect:

Text scrolling countless times

ScrollAmount: is used to set the interval that follows each successive scrolling text, expressed in pixels. This property is not necessarily used.
Cases:
<marquee scrollamount= "A" > the interval after this text is 10 pixels </MARQUEE>

Effect:

The interval after this text is 10 pixels

Scrolldelay: Used to set the time between two scrolling operations, in milliseconds. This property is not necessarily used.
Cases:
<marquee scrolldelay= "5" > This text two times the interval between scrolling is 5 milliseconds </MARQUEE>

Effect:

This text has a time interval of 5 milliseconds between two times of scrolling

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.