2016/2/26 <marquee></marquee> implements a variety of scrolling effects

Source: Internet
Author: User

The automatic pageScrolling Effect, you canimplemented by JavaScript,
Buthave an HTML tag-<marquee></marquee> can achieve a variety of scrolling effects, without JS control。
Use marquee tags not only to move text, but also to move pictures, tables, and so on.
Syntax:<marquee>...</marquee>; Description: Add the content you want to scroll between the tags.
Important attributes:
1. Scrolling directiondirection(includes 4 values: Up, down, left, and right)
Syntax: <marquee direction= "scrolling direction" >...</marquee>
2. Scrolling modeBehavior(Scroll: cyclic scrolling, default effect; slide: Stop once only scrolling once; alternate: Scrolls back and forth alternately)
Syntax: <marquee behavior= "scrolling mode" >...</marquee>
3. Scrolling speedScrollAmount(scrolling speed is the length, in pixels, that is set to move each time you scroll)
Syntax: <marquee scrollamount= "5" >...</marquee>
4. Rolling delayScrolldelay(Sets the time interval for scrolling, in milliseconds)
Syntax: <marquee scrolldelay= ">...</marquee>"
5. Scrolling cycleLoop(The default value is-1, the scroll will continue to loop)
Syntax: <marquee loop= "2" >...</marquee>
6. Scrolling Rangewidth, height
7. Scrolling background colorbgcolor
8. Blank Spacehspace, Vspace
code example:

1 <!DOCTYPE HTML Public "-//W3C//DTD XHTML 1.0 transitional//en" "http://www.w3.org/TR/xhtml1/DTD/ Xhtml1-transitional.dtd "><HTMLxmlns= "http://www.w3.org/1999/xhtml"><Head><Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8" /><title>Untitled Document</title></Head>2 <Body><Div><Marqueedirection= "Up"Behavior= "Scroll"ScrollAmount= "1"Scrolldelay= "0"Loop= "-1"width= "+"Height= " the"bgcolor= "#0099FF"hspace= "Ten"vspace= "Ten">3Refers to the whole marquee alignment method; (2) Behavior: Set the way of scrolling: Scroll: Indicates that scrolling from one end to the other is repeated, and defects are not seamlessly scrolled. Slide: Represents a scroll from one end to the other, and does not repeat ...</Marquee></Div></Body></HTML>

2016/2/26 <marquee></marquee> implement a variety of scrolling effects

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.