How To Make Animated Browser Title On Wordpress(Wordpress trick)

You can Make your Wordpress browser title animated to amaze your readers. You can do this on Wordpress. You might have already seen the animated browser title animated. Follow the instruction ho to make animated browser title on wordpress







Go to Dashboard → Appearance → Editor

Go to header.php file and paste the following code at the end of the header.php file

Now update the file and see



<script language="javascript">
var titletext="Your Browser Title"
var repeat=true;    // SET TO true TO REPEAT, false TO "TYPE" OUT TITLE ONLY ONCE.
set=setTimeout;
var index=0;
function scrolltitle(){
if(index<=titletext.length){
document.title=titletext.substring(0,index);
index++;
set('scrolltitle()', 200);
}else{
index=0;
if(repeat)set('scrolltitle()',1000);
}}
window.onload=function(){
if(!document.layers)set('scrolltitle()',1000);
}
</script>  
 
 Before editing in theme always backup your theme



Remember this will work in Joomla and Punbb and other CMS platforms



If you like please comment here. We need your appreciation
 
 
 
 
 
Share this article :
 

Post a Comment

 

Copyright © 2011. Tricks Duniya - All Rights Reserved