This article mainly introduces the properties of HTML marquee tags and the picture scrolling usages of marquee tags, you can experiment more, so the effect will be better. Let's see this article together
To set up picture scrolling, let's look at the properties of several HTML mar
This article mainly introduces two usages of HTML marquee tags. One is to let the text in the marquee tag scroll up and down, and the other is to make the text in the marquee tag scroll faster or slower. You can also use two of them together. Now let's see this article together.
Let's first recognize this HTML marquee
Because the marquee label is now used less and more, so scrolling effect is mostly to use JavaScript to achieve, as for do not understand why not directly with the marquee tag friends, may wish to read this article first.
The first approach: simulate marquee with JavaScript.
Source: NetEase Game
[Ctrl + A
Div+css+javascript to achieve seamless scrolling, marquee seamless scrolling, seamless scrolling, compatible with Firefox
Using marquee to achieve the end-end connected cycle scrolling effect (ie only):
Copy Code code as f
Compatible text line height for each browser
Copy Code code as follows:
(function ($) {
$.fn.extend ({
Rolltitle:function (Opt,callback) {
if (!opt) var opt={};
var _this = this;
_this.timer = null;
_this.lineh = _this.find ("Li:first"). Height ();
_this.line=opt.line?parseint (opt.line,15):p Arseint (_this.height ()/_this.lineh,10);
_this.speed=opt.speed?parseint (opt.speed,10): 3000,//scrolling speed, the larger the number, the
text to slide horizontally TextView You can also set the scrolling times for the marquee effect, as follows: XML code settings: android:marqueerepeatlimit= "1". 1 represents 1 times, and 1 represents an infinite loop. Java Code settings: Mtvtext.setmarqueerepeatlimit (-1);Summary of the results of the implementation of the marquee, online more popular there are
Original: HTML tag marquee for scrolling effectPage Auto-scrolling effect, can be implemented by JavaScript, but today inadvertently found an HTML tag-Use marquee tags not only to move text, but also to move pictures, tables, and so on.Syntax:Important attributes:1. Scrolling
Android:textview automatic scrolling (marquee)TextView implementation of text scrolling requires the following points: 1. Text length is longer than can be displayed range: Android:singleline= "true" 2. Set scroll to, or display style: android:ellipsize= "marquee" 3. TextView The hidden text is only scrolled when the f
HTML tags- can achieve a variety of scrolling effects, without JS control. Use the marquee tag not only to move text, but also to move pictures, tables, and so on. Just enter the content you want to scroll inside First, label properties1. Scrolling direction Direction(including 4 values: Up, down, left, and right)Syntax: 2.
Page Auto-scrolling effect, can be implemented by JavaScript, but today inadvertently found an HTML tag-Use marquee tags not only to move text, but also to move pictures, tables, and so on.Syntax:Important attributes:1. Scrolling direction direction (including 4 values: Up, down, left, and right)Syntax: 2. Scrolling mo
Page Auto-scrolling effect, can be implemented by JavaScript, but today inadvertently found an HTML tag-Use marquee tags not only to move text, but also to move pictures, tables, and so on.Syntax:Important attributes:1. Scrolling direction direction (including 4 values: Up, down, left, and right)Syntax: 2. Scrolling mo
Here are some explanations:
Align: is to set the position of the active caption, in addition to the left, center, the right three positions, but also to increase the upper (top) and bottom (bottom) two positions.
bgcolor: Used to set the background color of the active caption, you can use the English word can also be a hexadecimal number.
Direction: The scrolling direction used to set the active marquee is
Marquee Parameters:BGColor: Scrolls the background color of the text box.Direction: Scrolling direction setting, selectable left (right to Ieft), Rightup (bottom to top), anddown (top to bottom)Scrolldelay: The lag time between each round of scrolling, the larger the number, the slower the scrolling.ScrollAmount: The total amount of time to scroll, the smaller th
First, prefaceLimited space to show unlimited content, this is the most common place to scroll. According to the information scrolling effect we can have a lot of implementations, but the HTML comes with the marquee tag is one of the simpler implementation. The following records are available for later inspection.Second, the basic knowledge of marquee tagsExample
Page Auto-scrolling effect, can be implemented by JavaScript, but today inadvertently found an HTML tag-Use marquee tags not only to move text, but also to move pictures, tables, and so on.Syntax:Important attributes:1. Scrolling direction direction (including 4 values: Up, down, left, and right)Syntax: 2. Scrolling mo
marquee| various text scrolling codes (for Announcements) 1. Create the first scrolling caption. Code:Effects such as: I clock the Web tree2. Detailed Parameters:A)scrollamount. It represents speed, and the greater the value, the faster. If it is not, the default is 6, which is better.b) Width and height, which indicates the size of the
Page Auto-scrolling effect, can be implemented by JavaScript, but today inadvertently found an HTML tag-Use marquee tags not only to move text, but also to move pictures, tables, and so on.Syntax:Important attributes:1. Scrolling direction direction (including 4 values: Up, down, left, and right)Syntax: 2. Scrolling mo
Page Auto-scrolling effect, can be implemented by JavaScript, but today inadvertently found an HTML tag-Use marquee tags not only to move text, but also to move pictures, tables, and so on.Syntax:Important attributes:1. Scrolling direction direction (including 4 values: Up, down, left, and right)Syntax: 2. Scrolling mo
Page Auto-scrolling effect, can be implemented by JavaScript, but today inadvertently found an HTML tag-Use marquee tags not only to move text, but also to move pictures, tables, and so on.Syntax:Important attributes:1. Scrolling direction direction (including 4 values: Up, down, left, and right)Syntax: 2. Scrolling mo
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.