Random text onload using javascript

Posted by Rob CornishPostMarch 24, 2008Date

Use the random.js javascript file in the body of your document.

<script language="Javascript" type="text/javascript" src="random.js"></script>

This will load a random line of text within the random.js file each time you visit/refresh the page.


3 Comments »

  1. Thank you! This is elegant code. Very useful.

    Comment by Jesse — September 2, 2009 @ 8:59 pm

  2. Thanks so much for this code!

    Comment by Jeff — April 19, 2010 @ 8:58 am

  3. Thanks. I've been looking for a simpler way of doing this. great.

    Comment by Jake — July 9, 2010 @ 2:57 pm

RSS feed for comments on this post. TrackBack URL

Leave a comment

Tags
Flickr
SelfDSC_0207DSC_0206DSC_0205
© 2008 dlnqnt - Admin - Login