Syntax: <marquee> …</marquee>
Using the mobile attribute marquee, you can not only dance your text, but also apply it to pictures, tables, and more.
<marquee direction=left>Welcome to Kexun Youth Learning Channel! </marquee>
direction=left, indicates direction. The above text effect is to welcome to Kexun Youth Learning Channel! Move from right to left! In addition, the directions are right, up, and down.
In addition to direction, we can also add other restricted elements:
How to move:
Loop movement: loop=n(n, indicating the number of times) Move around the circle: behavior=scroll Only once: behavior=slide Move back and forth: behavior=alternate
Appearance:
Font size: <font size=n>(n, variable) Alignment: align=top/middle/bottom Background color: bgcolor=Blue (predefined colors, such as: Black, Olive, Teal, Red, Blue, Maroon, Navy, Gray, Lime, Fuchsia, White, Green, Purple, Silver, Yellow, Aqua or hexadecimal digital)
other:
Speed: scrolllamount=n(n, variable) Delay: scrolldelay==n(n, variable)
<marquee direction=To what direction to move height=Move area height width=Move area width scrollamount=Move speed onmouseover=this.stop() onmouseout=this.start()>
onmouseover Sets the mouse to pause movement when it is placed in the moving area
onmouseout Continue to scroll when the mouse leaves
Use marquee code to realize text scrolling and picture scrollingToday I found the settings for scrolling text in TAP! It seems that it was not supported before. Maybe I haven't used it! Haha, let’s show you the effect!
The following code explanation from the up and down scrolling text bulletin board known by TAP
marquee parameters:
BGColor: The background color of the scroll text box.
Direction: Scroll direction settings, you can choose Left, Right, up and down.
scrolldelay: The delay time between each round of scrolling, the larger the slower the.
scrollamount: The total amount of time for a scroll, the smaller the number, the slower the scrolling.
Behaviour: Set the scrolling method, three values: Scroll (loop scroll) lide (single scroll), and Alternate (round and back).
Align: Text alignment settings. You can choose Middle (center), Bottom (lower) or Top (higher).
Width: Scroll the width of the text box, enter a value and select in Pixels or in Percent from the radio box behind.
Height: Scroll the height of the text box, enter a value and select in Pixels or in Percent from the radio box below.
loop: the number of scrolling times. Default is infinite
hspace, vspace: blank lines before, after, up and down.
The following demonstration is my bulletin board demonstration: you can look at the lower right corner of the effect! If you like it! Copy the code and use the above code explanation to see the effect!
Effect 1: Scroll upwards
Copy the code