The following must be placed in your body tag onLoad="timerONE=window.setTimeout('scrollit_r2l(50)',100);" So your body tag will look something like this: Please note that there could be other items in your body tag so if you wish to copy and paste the above be sure your body tag has nothing else in it, if it is an empty tag it should look like Now between the and tags you put the following code, keeping in mind that you can change the variables in the script, such as var m1="This is the first line of your script "; you can change what is between quotes. If you do not use all m1-m4 remove the lines from the script that you will not use, then change var msg=m1+m2+m3+m4; to include only the lines you use.