Another way to attract the visitors is adding some decoration to the site like scrolling text,etc.But,don't decorate it too much,particularly if your site contains too much text as it irritates and spoils the concentration of the reader.You can add scroll bars to tell your visitors what will be your next updates,popular posts,advertisements,etc.
So,how to add the scrolling text in your blog,let me explain it:
Adding simple scrolling text:
Here is the code to add a simple scrolling text from right to left side:-
code:- <marquee>code to simple scrolling text</marquee>
The output will be like:
Example 1:
If you want some more attraction,then try these,
Add a background color to the text:
code:- <marquee bgcolor="#99CCFF">code to simple scrolling text</marquee>
You can choose your background colour by replacing the hexadecimal code(#99ccff).
Click here to see the codes of the different colors.
Here are some mode attributes to learn:
Add a background color to the text:
code:- <marquee bgcolor="#99CCFF">code to simple scrolling text</marquee>
You can choose your background colour by replacing the hexadecimal code(#99ccff).
Click here to see the codes of the different colors.
Here are some mode attributes to learn:
| direction="left" direction="right" direction="up" direction="down" |
The above attributes tells the text which direction to scroll.
Example 3:
To scroll in the 'right' direction:
code:- <marquee direction="right" bgcolor="#99CCFF">code to simple scrolling text</marquee>
Example 4:
To scroll in the 'up' direction:
Example 5:
Down: ( I changed the hexa decimal codes for different colours )
few more attributes:
You can add this attribute to alternate the text
You can add this attribute to alternate the text
behavior="alternate"
Here is the code to do this:
<marquee behavior="alternate" bgcolor="#33FFCC">code to simple scrolling text</marquee>
Example 6:
You can also set the speed of the text with this simple attribute:
code:-simple attribute:
The lower the scrollamount value, the less the speed it moves,
the html code for this:
the html code for this:
code:- <marquee behavior="alternate" direction="left" bgcolor="#9999CC" scrollamount="2">code to simple scrolling text</marquee>
example 7:(for scrollamout =2)
Example 8:(for scrollamount=5)
Pausing the text when mouse is over the text:It is very useful when the reader wants to read the text,and the scrollamount is big, so that he will put the mouse over the text to pause the text and read the matter:
Here is the code to do this:-
Example 8:(for scrollamount=5)
Pausing the text when mouse is over the text:It is very useful when the reader wants to read the text,and the scrollamount is big, so that he will put the mouse over the text to pause the text and read the matter:
Here is the code to do this:-
<marquee behavior="alternate" direction="left" bgcolor="#CCCCCC" onmouseover="this.stop()" onmouseout="this.start()" scrollamount="2" scrolldelay="50"> code to simple scrolling text</marquee>
Example 9:
(place the mouse over the text to test it)
Changing the text colour:
Here is the code to change the text colour:(Add it before and after the marquee tags)
(place the mouse over the text to test it)
Changing the text colour:
Here is the code to change the text colour:(Add it before and after the marquee tags)
code:- <font color="#ff0000">XXXXXXXXX</font>
So, the code looks like this:-
<font color="#ff0000"><marquee onmouseover="this.stop()" onmouseout="this.start()" scrollamount="4" bgcolor="#cccccc">Code to simple scrolling text</marquee></font>
Example 10:
Adding hyperlinks:
You can also add the hyperlinks in text.
Here is the sample code:<marquee behavior="scroll" align="middle" direction="left" bgcolor="#99FFFF" scrollamount="4" onmouseover="this.stop()" onmouseout="this.start()"><a href="http://faverblog.blogspot.com/2009/02/remove-navbar-from-your-blog.html">Remove Navbar</a> # <a href="http://faverblog.blogspot.com/">Internet tips</a> # <a href="http://faverblog.blogspot.com/2009/02/how-to-add-blogger-read-more-expandable.html">Add Read More tag in Blog</a></marquee>
You can also add the hyperlinks in text.
Here is the sample code:<marquee behavior="scroll" align="middle" direction="left" bgcolor="#99FFFF" scrollamount="4" onmouseover="this.stop()" onmouseout="this.start()"><a href="http://faverblog.blogspot.com/2009/02/remove-navbar-from-your-blog.html">Remove Navbar</a> # <a href="http://faverblog.blogspot.com/">Internet tips</a> # <a href="http://faverblog.blogspot.com/2009/02/how-to-add-blogger-read-more-expandable.html">Add Read More tag in Blog</a></marquee>
The output will look like this:
That's it!Now you can add this to your blogger sidebar,in the blog post,where ever you want.
If you have any doubts, ask your questions via your comments.
That's it!Now you can add this to your blogger sidebar,in the blog post,where ever you want.
If you have any doubts, ask your questions via your comments.