| Random Javascript |
| Written by Administrator | |
| Saturday, 09 December 2006 | |
|
Javascript Random Saying: Create a random saying each time the page is loaded! This is an easy way to create dynamic content without having to program a PHP or ASP script for your page. The actual random part is done on the user's machine. The downside of using a Javascript for this is that the search engines do not look at the Javascript.
Javascript Random Saying: Create a random saying each time the page is loaded! This is an easy way to create dynamic content without having to program a PHP or ASP script for your page. The actual random part is done on the user's machine. The downside of using a Javascript for this is that the search engines do not look at the Javascript. Cut and paste the following code to the top of your html page: <script language="Javascript">
Place this portion at the point in the HTML where you want the script to read. <script language="JavaScript"> Feel free to use this script in it's any way you would like as long as you like. Make sure that all quotes inside the random tagline ARE single quotes. This is what this code looks like RANDOM TEXT PAGE To create a tagline with a <a href> tag use the following modifications: tbstagline[0] = "<a href='http://www.websitename1.com'>Place statement one here</a>"; Having trouble with cut and paste? Download a .zip file of the Random Sayings Java Script.Javascript Random Images: Create a random images each time the page is loaded! Cut and paste the following code to the top of your html <script language="Javascript">
Place this portion at the point in the HTML where you want the images displayed. <script language="JavaScript"> Feel free to use this script in it's any way you would like as long as you like. Be sure to use whatever ALT tags you would like but make sure that all quotes inside the random tagline ARE single quotes. This is what this code looks like RANDOM IMAGES PAGE To create a tagline with a <a href> tag to link to different pages use the following modifications: tbstagline[0] = "<a href='http://www.websitename1.com'><img src='img1.jpg' alt='' width='wdth' height='hght'></a>"; Having trouble with cut and paste? Download a .zip file of the Random Images Java Script. You may donate to Two Brothers Software to help support Random Images! |
|
| Last Updated ( Saturday, 09 December 2006 ) |