Update again! MSClass (Class Of Marquee Scroll General uninterrupted rolling JS encapsulation Class Ver 1.6)/* MSClass (Class Of Marquee Scroll generic uninterruptible rolling JS encapsulation Class) Ver 1.6 *\Production Time: (Ver 0.5)Release date: (Ver 0.8)Last Updated: (Ver 1.6)Update Description: + added features * corrected and improved1.6.070131+ Disable mouse control to pause or continue (set the 9th
Marquee>Label, it is a label that appears in pairs, the first labelMarquee>and tail labelMarquee>The content between is scrolling content.Marquee>The properties of the tag are behavior, bgcolor, direction, width, height, hspace, vspace, Loop, scrollamount, scrolldelay, etc., which are optional. The parameter value of the Behavior property Behavior property is one of alternate, scroll, and slide, indicating
The marquee tag is used to scroll the text in the available browsing area. This tag only applies to IE3 later versions of the browser.
Format:
Behavior= "..."
Bgcolor= "..."
Direction= "..."
Height= "..."
Width= "..."
Hspace= "..."
Vspace= "..."
Loop= "..."
Scrollamount= "..."
Scrolldelay= "..."
"..."
Property:
ALIGN: Used to align scrolling text by a set value. The values that align can set are: Left,cent
, right, up, and down.Behavior: Used to set the mode of scrolling, mainly from three ways: behavior= "Scroll" means from one end to the other end of the scroll;behavior= "Slide": Represents a quick slide from one end to the other and is no longer repeated; behavior= "alternate" means scrolling back and forth between the ends.Height: Used to set the height of the scrolli
The marquee tag is used to scroll the text in the available browsing area. This tag only applies to IE3 later versions of the browser.
Format:
Behavior= "..."
Bgcolor= "..."
Direction= "..."
Height= "..."
Width= "..."
Hspace= "..."
Vspace= "..."
Loop= "..."
Scrollamount= "..."
Scrolldelay= "..."
Onmouseout=this.start ()
Onmouseover=this.stop ()
"..."
Property:
ALIGN: Used to align scrolling text by
, right, up, and down.Behavior: The way to set up scrolling is mainly in three ways: behavior= "Scroll" means scrolling from one end to the other, behavior= "slide": a quick slide from one end to the other, and no repetition; behavior= " Alternate "means to scroll back and forth between the ends.Height: Used to set the height of the scrolling marquee.Width: Sets
is left, right, up, and down.
Behavior: The way to set up scrolling is mainly in three ways: behavior= "Scroll" means scrolling from one end to the other, behavior= "slide": a quick slide from one end to the other, and no repetition; behavior= " Alternate "means to scroll back and forth between the ends.
Height: Used to set the height of the scrolling
Web|web Standard
Jeanjean20 mentioned marquee How to modify to meet the standard . I looked at a few friends of the thread feel very good, moderator Greengnn specified marquee is not compliant with the standard has been abandoned by the consortium. Have a friend big dozen uneven say feel to go to have no reason, originally quite good effect now become gone. Also have a friend said to go good, look at the an
caption is left, right, up, and down.
Behavior: The way to set up scrolling is mainly in three ways: behavior= "Scroll" means scrolling from one end to the other, behavior= "slide": a quick slide from one end to the other, and no repetition; behavior= " Alternate "means to scroll back and forth between the ends.
Height: Used to set the height of the scrolling
The automatic scrolling effect of the page, which can be implemented by JavaScript,But there is 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
The marquee tag is used to scroll text in the Available browsing area. This tag only applies to IE3 later versions of the browser.
Format:
Behavior= "..."
Bgcolor= "..."
Direction= "..."
Height= "..."
Width= "..."
Hspace= "..."
Vspace= "..."
Loop= "..."
Scrollamount= "..."
Scrolldelay= "..."
Onmouseout=this.start ()
Onmouseover=this.stop ()
A..
Property:
ALIGN: Used to align
Implement a seamless rolling plug-in for marquee Based on jQuery, jquerymarquee
JQuery-based plug-ins that implement seamless marquee scrolling have been released to git.oschina.net to demonstrate later updates (updated to the http://git.oschina.net/mqycn/jQueryMarquee ).
The Code is as follows:
/*** Class library name: jQuery.
DemandThe project needs to use a marquee to display only one message, the appropriate length does not scroll, too long the cycle of scrolling.Although I did not write, but looked at the code, is in a uiview inside put two Uilabel,At the end of the previous one, the other shows. However, click Processing is indeed a UIView click event.However, see, such as Subway, bus inside the marquee is divided into a lot
Onmouseout Continues Rolling when the mouse leaves
Use the marquee code to implement text scrolling and image scrolling
Today, you can see the scroll text settings on the TAP! It seems that it is not supported before. Maybe I have never used it! Let's take a look at the results!The following code is used to explain the upstream and downstream
Marquee
Imitate IE below the marquee effect, the mouse moves up pauses. The main principle of forming a ring is that each picture once determines the outer display window to be added to the tail, using append and prepend to simulate the push () and shift () of the array.
The code is as follows:
Html
Css
@charset "Utf-8";
/* CSS Document */
body{
margin:0 0;
padding:0 0;
height:100%
Moving text (Marquee)
The Marquee tag is used to scroll text in the available browsing area. This tag is only applicable to browsers later than ie3.
Format:
BEHAVIOR = "... "
BGCOLOR = "... "
DIRECTION = "... "
HEIGHT = "... "
WIDTH = "... "
HSPACE = "... "
VSPACE = "... "
LOOP = "... "
SCROLLAMOUNT = "... "
SCROLLDELAY = "... "
ONMOUSEOUT = this. start ()
ONMOUSEOVER = this. stop ()
>
To make text in TextView scroll, you must meet the following factors:
1,textview text width over textview width2,android:ellipsize= "Marquee"3, scrolling only occurs when TextView gets the focus. So add Android:focusableintouchmode= "true" android:focusable= "true"The easiest thing to ignore is the third one.
Scrolling repeat number setting:
android:marqueerep
TextView provides the following key points for text scrolling:1. The text length is longer than the display range: android: singleLine = "true"2. Set to be rolled to or display style: android: ellipsize = "marquee"3. TextView only scrolls to display hidden text after obtaining the focus. Therefore, you need to create a new class in the package to inherit TextView. Override the isFocused method. The default
Marquee was abandoned by W3C. This sentence is actually incorrect. Why? Because Marquee has never been regarded as a formal tag by W3C. In the forum, I saw the netizen jeanjean20 mentioned how to modify Marquee to meet the standards. I read my friends' posts and thought it was quite good. The moderator greengnn indicated that
The main reason is that the Marquee in IE is not universal and cannot work normally in other browsers. Therefore, JavaScript is used to rewrite its functions to support multiple browsers! The function has been encapsulated in Marquee. js and supports uninterrupted scrolling (default). If the content length and width in the subtitle area are smaller than the lengt
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.