Revision: 17621
Updated Code
at September 10, 2009 16:40 by powerserve
Updated Code
Add this in your <head> <script language="javascript" type="text/javascript" src="/js/refresh/refresh.js"></script> Add this in your <body> <script language="javascript" type="text/javascript"> showText();//Shows Random Text on refresh </script> // JavaScript Document // Set up the text files to be used. var theText = new Array() // do not change this theText[0] = 'Test 1'; theText[1] = '"Test 2"'; theText[2] = '<a href="#" title="test 3">Test 3</a>'; // do not edit anything below this line var j = 0 var p = theText.length; var preBuffer = new Array() for (i = 0; i < p; i++){ preBuffer[i] = new Array() preBuffer[i].src = theText[i] } var whichText = Math.round(Math.random()*(p-1)); function showText(){ //This a wrapper for the text array it can be changed if need document.write('<p class="thetext">'+theText[whichText]+'</p>'); }
Revision: 17620
Updated Code
at September 10, 2009 16:38 by powerserve
Updated Code
Add this in your <head> <script language="javascript" type="text/javascript" src="/js/refresh/refresh.js"></script> Add this in your <body> <script language="javascript" type="text/javascript"> showText();//Shows Random Text on refresh </script> // JavaScript Document // Set up the text files to be used. var theText = new Array() // do not change this theText[0] = 'Test 1'; theText[1] = '"Test 2"'; theText[2] = '<a href="#" title="test 3">Test 3</a>'; // do not edit anything below this line var j = 0 var p = theText.length; var preBuffer = new Array() for (i = 0; i < p; i++){ preBuffer[i] = new Array() preBuffer[i].src = theText[i] } var whichText = Math.round(Math.random()*(p-1)); function showText(){ document.write('<p class="thetext">'+theText[whichText]+'</p>'); }
Revision: 17619
Updated Code
at September 10, 2009 16:31 by powerserve
Updated Code
Add this in your <head> <script language="javascript" type="text/javascript" src="/js/refresh/refresh.js"></script> Add this to your <body> <script language="javascript" type="text/javascript"> showText();//Shows Random Text on refresh </script> // JavaScript Document // Set up the text files to be used. var theText = new Array() // do not change this theText[0] = 'Test 1'; theText[1] = '"Test 2"'; theText[2] = '<a href="#" title="test 3">Test 3</a>'; // do not edit anything below this line var j = 0 var p = theText.length; var preBuffer = new Array() for (i = 0; i < p; i++){ preBuffer[i] = new Array() preBuffer[i].src = theText[i] } var whichText = Math.round(Math.random()*(p-1)); function showText(){ document.write('<p class="thetext">'+theText[whichText]+'</p>'); }
Revision: 17618
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at September 10, 2009 16:23 by powerserve
Initial Code
// JavaScript Document // Set up the text files to be used. var theText = new Array() // do not change this theText[0] = 'Test 1'; theText[1] = '"Test 2"'; theText[2] = '<a href="#" title="test 3">Test 3</a>'; // do not edit anything below this line var j = 0 var p = theText.length; var preBuffer = new Array() for (i = 0; i < p; i++){ preBuffer[i] = new Array() preBuffer[i].src = theText[i] } var whichText = Math.round(Math.random()*(p-1)); function showText(){ document.write('<p class="thetext">'+theText[whichText]+'</p>'); }
Initial URL
http://www.brendadansby.com/
Initial Description
Initial Title
Text Change on Refresh
Initial Tags
text
Initial Language
JavaScript