


Skillfully use the marquee attribute in HTML to realize dancing text
Syntax:
Using the mobile attribute marquee, you can not only dance your text, but also apply it to pictures, tables, etc.
direction=left, indicating the direction. The above text effect is "Welcome to Kexun Youth Learning Channel!" Move from right to left! In addition, the directions include right, up, and down.
In addition to direction, we can also add other restrictive elements:
Movement method:
Loop movement: loop=n (n, indicating the number of times) Moving in circles: behavior=scroll Only move once: behavior=slide Move back and forth: behavior=alternate
Appearance, font size : (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 number)
Others: Speed: scrollamount=n (n, variable) Delay: scrolldelay ==n(n, variable)
Use marquee code to implement text scrolling and image scrolling
I saw the setting of scrolling text in TAP today! It seems that it was not supported before! I haven’t used it before! Let me show you the effect!
The following code explanation comes from the up and down scrolling text bulletin board known by TAP
marquee parameters:
BGColor: the background color of the scrolling text box. >Direction: Scroll direction setting, you can choose Left, Right, up and down.
Scrolldelay: The delay time between each round of scrolling, the larger it is, the slower it is.
Scrollamount: The total time of one scroll, the smaller the number. The slower the scrolling.
Behaviour: scrolling mode setting, three values: Scroll (cyclic scrolling), Alternate (back and forth scrolling): Optional text alignment setting. Middle (centered), Bottom (centered) or Top (centered)
Width: The width of the scrolling text box, enter a value and select in Pixels (by pixels) or in Percent (
Height: The height of the scrolling text box, enter a value and select in Pixels (by pixels) or in Percent (by percentage). Default number. For infinite
hspace, vspace: blank lines before and after, top and bottom.
The following demo is my bulletin board demo: you can see the effect in the lower right corner! If you like it, copy the code and insert it into the above code explanation. It works!
Effect 1: Text scrolls up
Effect 2: Text scrolls to the left

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



The article discusses the HTML <progress> element, its purpose, styling, and differences from the <meter> element. The main focus is on using <progress> for task completion and <meter> for stati

The article discusses the HTML <datalist> element, which enhances forms by providing autocomplete suggestions, improving user experience and reducing errors.Character count: 159

Article discusses best practices for ensuring HTML5 cross-browser compatibility, focusing on feature detection, progressive enhancement, and testing methods.

The article discusses the HTML <meter> element, used for displaying scalar or fractional values within a range, and its common applications in web development. It differentiates <meter> from <progress> and ex

This article explains the HTML5 <time> element for semantic date/time representation. It emphasizes the importance of the datetime attribute for machine readability (ISO 8601 format) alongside human-readable text, boosting accessibilit

The article discusses using HTML5 form validation attributes like required, pattern, min, max, and length limits to validate user input directly in the browser.

The article discusses the viewport meta tag, essential for responsive web design on mobile devices. It explains how proper use ensures optimal content scaling and user interaction, while misuse can lead to design and accessibility issues.

The article discusses the <iframe> tag's purpose in embedding external content into webpages, its common uses, security risks, and alternatives like object tags and APIs.
