Javascripts > Misc Javascripts > Uphill-Downhill Text Script
Script Title: Uphill-Downhill Text Script
Description: This script makes your message do a sort of roller coaster thing. It makes the font size get larger and smaller to give it a sort of up and down effect.
Example: Available
Copy the following code between the <BODY></BODY> tags of your html page.<!--Change message to your own--> <script> /* Roller Coaster Script- By Website Abstraction (www.wsabstract.com) and Java-scripts.net (www.java-scripts.net) */ 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("Life is like a roller coaster ride. Hang on tight!") </script>
Enter your name and email address to have this script sent right to your Inbox for later viewing. First Name Last Name Email