H I O X INDIA
FREE ADVANCE HTML Tutorial
 HOME  ||  Scripts  ||  Purchase  ||  Tutorials  ||  Images  ||  Tools  ||  Templates 
  :-)  Send Page   :-)   Feedback   :-)   Register   :-)   Links   :-)   Support   :-)
Español Français 中文 Deutsch Portuguese Japanese தமிழ்
 Forums   Hosting   Internet Stats   Easy Calculation   FUN Games 

HTML Basic
Introduction
How To
HTML Tags
html, head, body
Text Manipulation
IMAGES
Special Effects
Using Tables
Forms
Other Topics



ADVANCED HTML
Introduction
Media
Meta Tag
Frame tags
Fieldset
Tooltip
DTD
Image tags
Subscript & Superscript
Bullet styles
Canvas
Other tags
Ask Your Doubts
More about HTML
Feedback





Special Effects - Marquee Tag


Topic

How to set the marquee scrolling speed?
Marquee behavior!
Make scrolling image?



Explanation

Attribute: behavior
This sets the background color for marquee path.
It takes values SCROLL or SLIDE or ALTERNATE
Example Code:
<marquee bgcolor=orange width=200 height=20 direction=right behavior=alternate> Moving Text</marquee>
Result:
Moving Text

Attribute: scrollamount
This controls the amount of movement (in pixels) between the successive displays that give the impression of animation.
Example Code:
<marquee bgcolor=orange width=200 height=20 direction=right behavior=alternate scrollamount=5> Moving Text Tag </marquee>
Result with scrollamount as 5:
Moving Text Tag
Result with scrollamount as 50:
Moving Text Tag

Attribute: srolldelay
This controls the delay (in milliseconds) between the successive displays that give the impression of animation.
Example Code:
<marquee bgcolor=orange width=200 height=20 direction=right behavior=alternate scrolldelay=5> Scrolling Text Tag </marquee>
Result with scroll delay as 5:
Scrolling Text Tag
Result with scroll delay as 500:
Scrolling Text Tag

Moving Image
Similarly image can be moved. Instead of text in between marquee tags give an image. It will scroll/move
Example Code:
<marquee width=100 height=20> <img src="./test.jpg"> </marquee>
Result: Scrolling Images




privacy policy     license     sitemap
© 2004-2010 HIOX INDIA

Other Links