Monday, August 17, 2009

MARQUEE TAG

<MARQUEE> … </MARQUEE>

This element will animate the enclosed text or any other object.




















































Attributes of <MARQUEE> … </MARQUEE>

BEHAVIOR

There is three behavior scroll, slide, and alternate. Scroll is by default behavior, slide will take enclosed object or text form right to left, alternate will take  enclosed object at next horizon and move back to the opposite horizon.

DIRECTION

Using this attribute you can set the direction of marquee values can be left, right, up , down .

LOOP

Using this element you can set the number of time marquee will work. If value is -1 than infinite marquee.

Scrollamount

You can set speed of marquee using this attribute. You have to give no. of pixel you want to move for each scroll time.

Scrolldelay

You can set a time for each move of marquee you have to give time in millisecond form, if value is small than marquee move speedy else vice-a-versa.

BGCOLOR

 you can give the background color for marquee

Align

This attribute will set alignment of text or object inside marquee, value can be top, bottom, middle.

Height

The height of marquee’s area you can set using this attribute value can be given in pixels.

Width

The width of marquee’s area you can set using this attribure value can be given in pixels.

Hspace

To set the horizontal space inside the marquee.

Vspace

To set the vertical space inside the marquee.


For example:

<marquee behavior="alternate" height="200" width="200" align="bottom" hspace="20" vspace="20" bgcolor="#009999" scrollamount="20" scrolldelay="100" direction=’up’> HELLO WORLD  </marquee>

<marquee behavior="alternate" height="200" width="200" align="bottom" hspace="20" vspace="20" bgcolor="#009999" scrollamount="20" scrolldelay="100" direction=’down’> HELLO WORLD  </marquee>

1 comment:

Unknown said...

It was a great information for all beginners visit: http://www.dreamdestinations.in/