ROLLING TEXT EFFECT
xml compliantThis script has been tested on and shown to work with the following browsers:
  • Internet Explorer version 5 and above
  • Google Chrome version 1 and above
  • Mozilla Firefox version 1 and above
  • Apple Safari version 3 and above
  • Opera version 7 and above (including Opera mobile)
  • Android Browser version 2 and above
17-Sep-2014: First release.
STEP 1: Copy and paste the code below so that it sits between the <head> and </head> tags at the top of your web-page:



CLICK HERE to select the above script ready to paste it into your clipboard
STEP 2: Edit the array called 'text' at the start of the script to contain the words which you want to appear. Enter links without the 'http://' but with the 'www.' and if you want text after a link, make sure there is a space after it.
STEP 3: Place a <div> element with 'id="rolling"' on your web-page containing some text which will show in case the script doesn't run (i.e. for people without JavaScript enabled). For example:

THAT'S IT When your page loads, the text you placed in the array at the start of the script will begin to smoothly scroll like some lost bus destination indicator.

Copyright notice: All scripts are © copyright mf2fm.com. You can use them wherever and whenever you wish, however the copyright notice at the start of the script should remain intact and a link back to this page would be appreciated. The address for this page is: http://www.mf2fm.com/rv/dhtmlrolltext.php.

This page has been viewed 325 times. It was last viewed on Mon 30 Dec, 2024 at 14:56