"Go" marquee label introduction

Source: Internet
Author: User

This article transferred from: http://www.360doc.com/content/12/0818/16/8351655_230872993.shtml

Marquee syntax
<marquee></marquee>

Instance One
<marquee>hello, world</marquee>

Two events commonly used by marquee:
Onmouseout= "This.start ()" When the mouse moves out of the area
Onmouseover= "This.stop ()" When the mouse is moved into the area

Example Two
<marquee onmouseout= "This.start ()" onmouseover= "This.stop ()" >marquee two events commonly used </marquee>

Let's start by talking about the properties supported by marquee

Behavior Set the way to scroll:
Alternate: Scroll back and forth.
Scroll: Repeat scrolling.
Slide: Do not repeat scrolling.

The code is as follows:

<marquee behavior= "Alternate" > scroll back and forth. </marquee>

<marquee Beha vior= "Scroll" > Repeat scrolling. </marquee>

<marquee Beha vior= "Slide" > Do not repeat scrolling. </marquee>

bgcolor sets the background color of the active caption.

The code is as follows:

<marquee bgcolor= "#006699" > Set the background color of active subtitles </marquee>

<marquee bgcolor= "RGB (10%,50%,100%,)" > Set background color for active subtitles </marquee>

<marquee bgcolor= "Red" > Set the background color of active subtitles </marquee>

Direction setting the scrolling direction of active captions

The code is as follows:

<marquee direction= "Down" > Set the scrolling direction of active captions down </marquee>

<marquee direction= "Left" > Set the scrolling direction of the active caption to </marquee>

<marquee direction= "Right" > Set the scrolling direction of the active caption to the left </marquee>

<marquee direction= "Up" > Set the scrolling direction of active captions up </marquee>

Height sets the altitude of the active caption

The code is as follows:

<marquee height= "direction=" "Down" bgcolor= "#CCCCCC" > Set the height of active subtitles </marquee>

Width set the length of the active caption

The code is as follows:

<marquee width= "$" bgcolor= "#CCCCCC" > Set the width of the active caption </marquee>

Loop sets the number of scrolling times, and when loop=-1 means scrolling down, the default is-1

The code is as follows:

<marquee loop= "-1" bgcolor= "#CCCCCC" > I'm going to keep going. </marquee>

<marquee loop= "2" bgcolor= "#CCCCCC" > I only go two times Oh </marquee>

ScrollAmount set the scrolling speed of the active caption, unit pixels

The code is as follows:

<marquee scrollamount= "Ten" >scrollamount= "ten" </marquee>

<marquee scrollamount= ">scrollamount=" </marquee>

<marquee scrollamount= ">scrollamount=" </marquee>

Scrolldelay set the delay time between active caption scrolling two times, unit millisecond (MS)

When the value is large, there will be a pause in the effect.

The code is as follows:

<marquee scrolldelay= "Ten" >scrolldelay= "ten" </marquee>

<marquee scrolldelay= "> scrolldelay=" </marquee>

<marquee scrolldelay= ">scrolldelay=" </marquee>

"Go" marquee label introduction

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.