BounceFish 

Website Solutions
Search
      home solutions clients resources faqs contact us  
  See our portfolio under the solutions section.

Resources - For Developers

Back to Resources For Developers Homepage

================COPY CODE BELOW INTO BODY===========================
<SCRIPT language="JavaScript">
<!--
var sentenceArray = new makeArray('We are the number one retail in the SouthEast.', 'We will match any competitors prices, guaranteed.', 'Your satisfaction is our top priority', '100% Satisfaction Guaranteed!');
function makeArray(){
this.length = makeArray.arguments.length
for (var i = 0; i < this.length; i++)
this[i + 1] = makeArray.arguments[i]
}
function randNum (num) {
var now = new Date();
var rand = Math.round(num * Math.cos(now.getTime()));
if (rand < 0) rand = - rand; if (rand == 0) rand++;
return rand;
}
// -->
</SCRIPT>

<SCRIPT>
document.write (sentenceArray[randNum(sentenceArray.length)])
</SCRIPT>

================COPY CODE ABOVE INTO BODY===========================

    INSTRUCTIONS
  • Paste code inside body <BODY></BODY> of HTML page

    DESCRIPTION
  • Lets you have random text appear every time the page loads.

 

Copyright © 2003-2012. BounceFish Web Design. All rights reserved.