Repeater control + marquee label for text Scroll display

Source: Internet
Author: User

Implementation of announcement information modules on various information websites, BBS and other websites

Drag a repeater control and bind it to the information to be displayed in the database.

In repeater's

<ItemTemplate>... </ItemTemplate>

Add the marquee tag. The attributes of the marquee tag are set as follows:

<Marquee width = "100%" height = "150" behavior = "scroll" direction = "up" scrollamount = "1" onmousemove = "this. stop () "onmouseout =" this. start () "> displayed content </marquee>

Behavior
Set the scroll mode:
Alternate: Indicates rolling back and forth between the two ends.
Scroll: indicates that the scroll from one end to the other will be repeated.
Slide: Scroll from one end to the other end without repeating.

Direction

Set the scroll direction of the subtitles.

Up: up

Down: down

Left: left

Right: right

Scrollamount

Sets the rolling speed of subtitle activity, in pixels.

 

 

 

* For your personal opinions, please advise me if you have any good methods.

Related Article

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.