Page 1 of 1

Bar Title Animated BBCode

Posted: 06 Mar 2010, 13:11
by BBCode Bot
Bar Title Animated BBCode

Author: Chico Gois
Description: With the Bar Title Animated BBCode you will get Bar Title Animated - Work IE7 & FF

BBCode:

Code: Select all

[animated]{SIMPLETEXT}[/animated]
HTML:

Code: Select all

<script type="text/javascript">
 // *******************************************************************
 // script by drevil_nz, Michael Dillon, Christchurch New Zealand. 
 // Permission granted to use this script provided this credit        
 // remains intact. Visit my homepage www.chc.quik.co.nz/juggler/mikey.html
 // Script written for Internet Explorer 4.0+.
 // ******************************************************************* 
 
 var message="{SIMPLETEXT}"     //specifys the title
 var message=message+"          " //gives a pause at the end,1 space=1 speed unit, here I used 10 spaces@150 each = 1.5seconds. 
 i="0"                                 //declares the variable and sets it to start at 0
 var temptitle=""                 //declares the variable and sets it to have no value yet.
 var speed="150"                  //the delay in milliseconds between letters
 
 function titler(){
 if (!document.all&&!document.getElementById)
 return
 document.title=temptitle+message.charAt(i)  //sets the initial title
 temptitle=temptitle+message.charAt(i)       //increases the title by one letter
 i++                                            //increments the counter
 if(i==message.length)                            //determines the end of the message
 {
 i="0"                                            //resets the counter at the end of the message
 temptitle=""                                    //resets the title to a blank value
 }
 setTimeout("titler()",speed)                    //Restarts. Remove line for no-repeat.
 }
 
 window.onload=titler
 </script>
Helpline:

Code: Select all

[animated]Your Text[/animated]
Example:

Code: Select all

[animated]Thanks Chico Gois[/animated]
Demo:
[animated]Thanks Chico Gois[/animated] Look at the Browser Bar and see the animating title.

Re: Bar Title Animated BBCode

Posted: 24 Jun 2010, 06:23
by billoo
can we make a mod in our forum index so that the main title shows up like this >>>
?

Re: Bar Title Animated BBCode

Posted: 24 Jun 2010, 15:26
by cisco007
add the html or javascript to the overall_header.html of your style right before the </head> tag!

Re: Bar Title Animated BBCode

Posted: 24 Jun 2010, 22:43
by billoo
nothing happend the titlle has became biger some odd script is in it and nothing motion like thing there

Re: Bar Title Animated BBCode

Posted: 24 Jun 2010, 22:53
by cisco007
you must not be doing something right, take a look here i had to make this just for you!

http://ciscoasite.zapto.org/dchat/index.php?style=19