Home > Common Problem > body text

What are the marquee parameters?

zbt
Release: 2023-10-18 10:10:34
Original
748 people have browsed it

marquee parameters include direction, behavior, speed, scrolldelay, width, height, bgcolor, cursor, id, align, noresize, nohover, loopcount, bgcolorcolor, scrollamount and vspa.

What are the marquee parameters?

Marquee is an HTML tag used to create a scrolling text or image. It has many parameters that can be used to control the direction, speed, number of cycles, etc. of scrolling. Below is marquee Common parameters of tags and their usage:

1, direction

direction parameter is used to specify the direction of scrolling. It has three optional values: left, right and up. The default value is left, which means the text scrolls from left to right; set to right When set to up, the text scrolls from right to left; when set to up, the text scrolls from bottom to top.

2. behavior

behavior parameter is used to specify the behavior of scrolling. It has two optional values: scroll and loop. The default value is scroll, which means the text will continue to scroll; set to loop , the text will stop after scrolling to the bottom of the page, then return to the top of the page and start scrolling again.

3. speed

The speed parameter is used to specify the scrolling rate. It is a numerical value that represents the speed of scrolling. The larger the value, the faster the scrolling speed. For example, set speed to 10 means the text will scroll at a slower speed; setting speed to 20 means the text will scroll at a faster speed.

4. scrolldelay

scrolldelay parameter is used to specify the scroll delay time. It is a numeric value that indicates how long each scroll pause is. The larger the value, the slower the scrolling speed. For example, set scrolldelay to 100 means each scroll pauses for 100 milliseconds; setting scrolldelay to 200 means each scroll pauses for 200 milliseconds.

5. width

The width parameter is used to specify the width of the scroll area. It is a numeric value that represents the width of the scroll area. For example, setting width to 300 means that the scroll area width is 300 pixels.

6. height

The height parameter is used to specify the height of the scroll area. It is a numerical value that represents the height of the scroll area. For example, setting height to 100 means that the scroll area height is 100 pixels.

7, bgcolor

The bgcolor parameter is used to specify the background color of the scroll area. It is a color value that represents the background color of the scroll area. For example, set bgcolor to red means that the background color of the scroll area is red.

8, cursor

The cursor parameter is used to specify the cursor style when the mouse is hovering over the scroll area. It has three optional values: default, wait and none. The default value is default means that the cursor is an arrow when the mouse is hovering; when set to wait, the cursor is a wait icon when the mouse is hovering; when set to none, the cursor is nothing when the mouse is hovering.

9, id

The id parameter is used to specify the ID of the marquee element. It is a string representing the ID of the marquee element. For example, setting the id to my-marquee means The marquee element has the ID my-marquee.

10. align

The align parameter is used to specify the alignment of scrolling text in the scrolling area. It has three optional values: left, center and right. The default value is left, means the text is aligned on the left edge of the scrolling area; when set to center, the text is aligned in the middle of the scrolling area; when set to right, the text is aligned on the right edge of the scrolling area.

11. noresize

The noresize parameter is used to specify whether the scroll area is resized as the browser window size changes. It has two optional values: true and false. The default value is false, indicating that the scrolling area will be resized as the browser window size changes; when set to true, the scrolling area will not be resized as the browser window size changes.

12. nohover

The nohover parameter is used to specify whether mouse hovering affects scrolling. It has two optional values: true and false. The default value is false, which means scrolling will pause on mouseover; set to When true, mouseover will not affect scrolling.

13. loopcount

The loopcount parameter is used to specify the number of scrolling loops. It is a numeric value that represents the number of scroll cycles. For example, setting loopcount to 5 means the text will scroll 5 times.

14, bgcolorcolor

bgcolorcolor parameter is used to specify the color of the scrolling background color. It is a color value that represents the color of the scroll background color. For example, set bgcolorcolor to red means that the scrolling background color is red.

15. scrollamount

The scrollamount parameter is used to specify the distance the text moves each time it is scrolled. It is a numeric value that represents how far the text moves each time it is scrolled. For example, set scrollamount to 10 means the text moves 10 pixels each time you scroll.

16, vspace

The vspace parameter is used to specify the vertical spacing between scrolling text. It is a numeric value that represents the vertical spacing between scrolling text. For example, set vspace to 10, indicating the vertical spacing between scrolling text.

The above is the detailed content of What are the marquee parameters?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!