Detailed description of HTML marquee labels

Source: Internet
Author: User

In the forum's default editing status, we can use the move and fly statements in the UBB syntax to move objects. However, the function is simple, but it only moves in parallel. The Marquee Statement of HTML can produce more moving effects: Left, right, up, and down. The nested use of the marquee statement is more effective.

Basic Syntax of Marquee: <marquee>... </marquee>

Note: Like most HTML syntax elements, the modified object is placed between the start and end characters. See the following example:

<Marquee> La la! </Marquee>

La la!

Look, is it easy? However, the above example only uses the default usage of Marquee. When we add the corresponding parameters, the moving method is different.

Parameter 1: direction. Direction indicates the direction. This parameter has four values: Left, right, up, and down ).

Example: <marquee direction = up> move up </marquee>

Move up

Parameter 2: behavior. Mobile mode. Value: Scroll, slide, and alternate ).

Example: <marquee direction = left behavior = alternate> Haha, let's go back and forth! </Marquee>

Haha, I will go back and forth!

<Marquee direction = left behavior = slide> tired! I only go once! </Marquee>

Tired! I only go once!

Parameter 3: loop. Loop. If not specified, the loop is not limited to (infinite), and the value is a numerical value. Example:

<Marquee loop = 3> I only walk three times </marquee>

I only walked three times.

Parameter 4: scrollamount. Movement speed. Returns a positive integer. The greater the value, the faster the speed. Example:

<Marquee scrollamount = 25> How fast can I go! </Marquee>

Look, how fast I am going!

Parameter 5: scrolldelay

Latency. Value. Example:

<Marquee scrolldelay = 1000> I just walked and stopped. </marquee>

I just walked and stopped.

Parameter 6: bgcolor

Background color. Example:

<Marquee bgcolor = pink> can you see it? Background color! </Marquee>

See it? Background color!

Parameter 7: width and height. Is the width and height of the movement. Example:

<Marquee width = 200 Height = 200 bgcolor = pink ction = down> this area is not enough for me to move! </Marquee>

This area is not enough for me to move!

Other parameters: blank (margins)

In the example given in this section, all objects moved by marquee are text. In fact, all visual objects can be moved as long as there are enough areas.

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.