In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article will explain in detail how HTML realizes the effect of moving text back and forth. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
The content of this article is the HTML text moving back and forth, has a certain reference value, now share it with you, friends in need can refer to it.
The HTML marquee element () is used to insert a scrolling piece of text. You can use its properties to control what happens when the text reaches the edge of the container.
Behavior:
Sets how the text scrolls within the marquee element. Available values are scroll (continuous scrolling), slide (sliding once), and alternate (round-trip scrolling). If no value is specified, the default value is scroll.
Bgcolor:
Sets the background color by color name or hexadecimal value.
Direction:
Sets the direction in which text scrolls within the marquee. Available values include left, right, and up and down. If no value is specified, the default value is left.
Loop:
Sets the number of times the marquee scrolls. If no value is specified, the default value is − 1, indicating that marquee will scroll continuously.
Scrollamount:
Sets the length, in pixels, of movement each time you scroll. The default value is 6.
Scrolldelay:
Sets the time interval in milliseconds for each scroll. The default value is 85. Note that unless you specify a truespeed value, any values less than 60 are ignored and 60 is used instead.
Truespeed:
By default, scrolldelay values less than 60 are ignored. If truespeed exists, those values are not ignored.
Vspace,hspace:
Represents the horizontal and vertical distance of the boundary of the moving area, and sets the vertical margin in pixels or percentage values.
Width,height:
Represents the width and height of the moving area, which is set in pixels or percentage values.
Align:
Indicates the vertical alignment of the element. The value can be top,middle,bottom. The default is middle.
Onmouseover=this.stop () onmouseout=this.start () means that scrolling stops when the mouse is above the area and continues to scroll when the mouse is moved away.
Code:
Add scrolling content
This is the end of this article on "how to achieve the effect of moving text back and forth in HTML". I hope the above content can be helpful to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.