You are here: DEVPPL Forum Programming HTML Forum Script-archive
NOTIFICATIONS
54.086
MEMBERS
15.684
TOPICS
62.255
POSTS
  562
FLASH GAMES
7.740
TUTORIALS
 

Login

E-mail:
Password:

HTML, Scrolling Text Without JavaScript

Share your completed scripts.
0

Loading

HTML, Scrolling Text Without JavaScript

Postby HotNoob » Wed Sep 22, 2010 4:09 am

Here is how you make text scroll with no javascript and only HTML.

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

Login to get rid of ads

 

^ Back to Top