Page 1 of 1

Roller Coaster BBCode

Posted: 06 Mar 2010, 11:39
by BBCode Bot
Roller Coaster BBCode

Author: Stoker
Description: The Roller Coaster BBCode will allow You to put some rolling text in the topics.
Only one line allowed and speciel chars breaks the script.

BBCode:

Code: Select all

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

Code: Select all

<div>
<script type="text/javascript">

/*
Roller Coaster Script-
By JavaScript Kit
Over 200+ free scripts here!
*/

var fs=1
var direction="right"
function rollertext(whichone){
var thetext=whichone
for (i=0;i<thetext.length;i++){
document.write(thetext.charAt(i).fontsize(fs))

if (fs<7&&direction=="right")
fs++
else if (fs==7){
direction="left"
fs--
}
else if (fs==1){
direction="right"
fs++
}
else if (fs>1&&direction=="left")
fs--

}
}
//Change below text to your won
rollertext("{SIMPLETEXT}")
</script>
</div>
Helpline:

Code: Select all

Rolling Coaster: [rc]Text here[/rc]
Example:

Code: Select all

[rc]What should we do with a drunken beggers[/rc]
Demo:
[rc]What should we do with a drunken beggers[/rc]