| You are here: DEVPPL ‹ Forum ‹ Programming ‹ HTML Forum ‹ Script-archive |
NOTIFICATIONS
|
|
|||||||||||||||
Login |
HTML, Scrolling Text Without JavaScript
1 post
• Page 1 of 1
0
HTML, Scrolling Text Without JavaScript
Here is how you make text scroll with no javascript and only HTML.
This is a basic example:
The <marquee> tag can also scroll in different directions.
To scroll right, left, up, and down
The marquee tag can also bounce back and forth with the behavior attribute
The Scroll speed can also be adjusted with the attributes scrollamount and scrolldelay
feel free to ask any questions if any of it doesnt make any sense
This is a basic example:
- Code: Select all
<marquee>Hello World</marquee>
The <marquee> tag can also scroll in different directions.
To scroll right, left, up, and down
- Code: Select all
<marquee direction='right'>Hello World</marquee>
<marquee direction='left'>Hello World</marquee>
<marquee direction='up'>Hello World</marquee>
<marquee direction='down'>Hello World</marquee>
The marquee tag can also bounce back and forth with the behavior attribute
- Code: Select all
<marquee behavior='alternate'>Hello World</marquee>
The Scroll speed can also be adjusted with the attributes scrollamount and scrolldelay
- Code: Select all
//scroll amount in px, and scroll delay in ms
<marquee scrollamount=200 scrolldelay=10>Zoom Zoom!</marquee>
feel free to ask any questions if any of it doesnt make any sense
- HotNoob
- Reputation: 0
- Posts: 169
- Joined: Sun May 02, 2010 2:38 am
- Highscores: 0
- Arcade winning challenges: 0
HTML, Scrolling Text Without JavaScript - Sponsored results
- Sponsored results
|
|