Marquee effect is implemented through simple html scripts. The marquee effect will allow you to move your text, links and images from one end to another end. Marquee effects are quite often used in most of the sites, reason that this simple script allows you to enhance the style of your site and also allowing you to make your readers to peek on. So before studying the different methods of marquee, will first learn the attributes that is related to marquee.
Marquee Attributes
behavior="alternate" --> The attribute alternate allows you to move your text, link or images back and forth.
direction="left" --> This attribute defines the movement of your object from right to left.
Now we have learned the attributes of marquee, and now let us see some samples of these atttributes when implemented.
Example 1 on Marquee
<marquee>www.ellameytamil.com</marquee>
This example is tested working using no attributes, but then it still moves from right to left using its default direction and behavior attribute.
Example 2 on Marquee
<marquee direction="left" scrollamount="5" width="100%">www.ellameytamil.com</marquee>
This script work as the same effect applied to marquee example 1, defining its attributes. And also remember that this marquee effect can be changed from its direction, its scrollamount speed and etc.
Example 3 on Marquee
<marquee direction="right" scrollamount="3" width="100%" behavior="alternate">www.ellameytamil.com</marquee>
Here in this example we have used one of the behavior attributes making the text to move back and forth.
Example 4 on Marquee
<marquee align="center" direction="up" scrollamount="3" scrolldelay="100" width="100%" height="100px" bgcolor="#ffffcc" behavior="scroll">www.ellameytamil.com</marquee>
This script allows you to align your marquee your objects in the middle, allowing your direction from bottom to up, having a background color with its behavior changed to scroll.
Example 5 on Marquee
<marquee align="center" direction="up" scrollamount="3" scrolldelay="100" width="100%" height="100px">
<a href="www.ellameytamil.com">Bloggers University<br/>
<a href="www.google.com">Google</a><br/>
<a href="www.blogger.com">Blogger</a></marquee>
This script will allow you to make a marquee link list scrolling from bottom to up.
Example 6 on Marquee
<marquee align="center" direction="up" scrollamount="3" scrolldelay="100" width="100%" height="100px" bgcolor="#ffffcc">
<a href="http://www.ellameytamil.com/"><font color="green">Bloggers University</font></a><br/>
<a href="http://www.google.com/"><font color="red">Google</font></a><br/>
<a href="http://www.blogger.com/"><font color="brown">Blogger</font></a></marquee>
In this part of the code your able to add marquee of links with a background color and also color to your fonts.
Example 7 on Marquee
<marquee onmouseover="this.stop()" onmouseout="this.start()"
scrollamount="2" direction="down" width="100%" height="200"> www.ellameytamil.com</marquee>
In this piece of code your adding two functions one is to stop on mouse over to the marquee object and another function to start the marquee effect again on mouse out of your marquee object.
Example 8 on Marquee
<marquee align="center" direction="up" onmouseover="this.stop()" onmouseout="this.start()" scrollamount="3" width="100%" height="100px"><a href="www.www.ellameytamil.com"><img src="http://i75.photobucket.com/albums/i315/teddygross/Buttons/blogger_logo.gif" alt="how to add marquee effect"><a><br/>
<a href="www.google.com"><img src="http://www.tutorial5.com/tutorials/google-adsense-allowed-sites/google.png" alt="how to add marquee effect on images"></a><br/>
<a href="www.feedburner.com"><img src="http://feedburner.google.com/fb/lib/images/icons/feed-icon-12x12-orange.gif" alt="images marquee effect"></a></marquee>
Here in our final example marquee effect has been made on images instead of text or link, and also followed by link.








0 Comments:
Post a Comment