Code Daquan of rolling subtitle marquee

Source: Internet
Author: User

 

Code Daquan of rolling subtitle marquee

Basic syntax
-------------------------------------------
<Marquee> scroll text </marquee>

Text movement attribute settings

Direction

<Direction =#>#= left, right, up, down <marquee direction = left> shift from right to left! </Marquee>

Method

<Bihavior =###= scroll, slide, alternate <marquee behavior = scroll> go around in a circle! </Marquee>

<Marquee behavior = slide> just one stop! </Marquee>
<Marquee behavior = alternate> back and forth </marquee>

Loop

<Loop =#># = number of times; if not specified, the loop is not limited to (infinite) <marquee loop = 3 width = 50% behavior = scroll> 3 </marquee> <p>
<Marquee loop = 3 width = 50% behavior = slide> only take 3 </marquee>
<Marquee loop = 3 width = 50% behavior = alternate> only 3 trips! </Marquee>

Speed

<Scrollamount = #> <marquee scrollamount = 20> La la! </Marquee>

Latency

<Scrolldelay = #> <marquee scrolldelay = 500 scrollamount = 100> La la! Let's take a step and stop it! </Marquee>

Layout settings

Align)

<Align =#>#= top, middle, bottom <font size = 6>
<Marquee align = # width = 400> La la, I will move it! </Marquee>
</Font>

Background Color

<Bgcolor = #>#= rrggbb hexadecimal digital, or the following predefined colors:
Black, Olive, teal, red, blue, maroon, navy, gray, lime,
Fuchsia, white, green, purple, silver, yellow, Aqua <marquee bgcolor = aaaaee> color! </Marquee>

Area

<Height = # width =#> <marquee Height = 40 width = 50% bgcolor = aaeeaa> area! </Marquee>

Blank

(Margins) <Marquee hspace = 20 vspace = 20 width = 150 bgcolor = ffaaaa align = middle> area! </Marquee>

Mouse response: that is, the mouse points to stop, and then leaves to continue.

Onmouseover = "this. Stop ()" onmouseout = "This. Start ()">

Example: <marquee direction = up scrollamount = 2 onmouseover = "this. stop (); "onmouseout =" this. start (); "width = 100 Height = 100> People's Republic of China <br> www. cnzz. welcome to CC China webmaster <br> I learned it, hahaha </marquee>

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.