NEW LISTINGS  HOT LISTINGS  TOP RATED  EDITOR PICK  ADD A LISTING  UPDATE A LISTING  GET RATED  UPGRADE A LISTING
  HOME     MY ACCOUNT     POWER SEARCH     REGISTER     MEMBER LIST     SUGGEST CATEGORY  

Average Visitor Rating: 0.00 (out of 5)
Number of ratings: 0 Votes

Visitor Rating

Random Strings
13922 Random Strings http://www.raingod.com/raingod/resources/Programming/JavaScript/Software/RandomStrings/index.html Interpolate a random string into a page when it is displayed. This technique could be used as an alternative to server-side includes for those who don't have them or don't want to overload the server. The disadvantage, of course, is that all the alternatives have to be downloaded, so you're loading a lot of unnecessary information just to display one string.

In a real example, the 'cannot be displayed' message (which you will see if you don't have a Java-capable/enabled browser, or if you're running Navigator 2.0) should usually be replaced by a default string.
JavaScript > Scripts and Programs > Randomizing > Random Text Oct 12, 2006

Write a Review   Add to My Favorite   Refer it to Friend   Report Broken Link  



Other links at JavaScript > Scripts and Programs > Randomizing > Random Text
Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Apple-s). The script is yours!!!
Category:

This page written with Java Script selects a random image from a set of images. If you want, you can specify a URL to go with it. If you use it, I would appreciate (but not require) a link back to my home page. Thanks!

The function(s):
Category:

Interpolate a random string into a page when it is displayed. This technique could be used as an alternative to server-side includes for those who don't have them or don't want to overload the server. The disadvantage, of course, is that all the alternatives have to be downloaded, so you're loading a lot of unnecessary information just to display one string.

In a real example, the 'cannot be displayed' message (which you will see if you don't have a Java-capable/enabled browser, or if you're running Navigator 2.0) should usually be replaced by a default string.
Category:

This script loads a different page into an iframe daily, depending on the day of the month (1-31). Use it to serve up daily, changing content, such as a "tip of the day." See also "Daily Iframe Content 1", which has a shorter range of weekly (Mon-Sun). The script now offers optional code to auto resize iframe based on height of content within. New!
Category:

This script randomly selects from a group of URLs and displays one of them inside an iframe. Since it's an iframe, the content can be anything and everything. Some ideas for using this script are:
Category:




Main Category
178
2033
792
284
174
1802
1113
905
1157
7350
70
898
59
2185
172

Join Mailing List
Joining mailing list will entitle you to receive occasional emails informing you of news and updates to the site and any special offers that may be of interest to you.



Top 10
Directory Statistics

Links: 19151
Categories: 1275
Registered Users: 686
Mailing List Subscribers: 2039
Unique Outgoing Hits: 218993

Pagerank Statistics
PR 10
2 site(s)
PR 9
9 site(s)
PR 8
36 site(s)
PR 7
288 site(s)
PR 6
828 site(s)
PR 5
2005 site(s)

PHP News