<SCRIPT>
// create the Ideas Array
var ideas = new Array(4);
// fill each Ideas Array element with their
appropriate tip
ideas[0] = "Type \"about:cache\" into your browser to
find everything that is stored in your cache.";
ideas[1] = "Type \"about:mozilla\" to get an odd message
from the Netscape team.";
ideas[2] = "Hold down shift when pressing reload to clear a page\'s
items from cache.";
ideas[3] = "Type \"view-source:\" preceding a document\'s
URL to automatically view its source.";
</SCRIPT>
Today's Randomly Generated Idea is:
<SCRIPT>
// Where you place this is where the random tip
will be displayed.
// ideas.length = 4 the number of ideas' elements (4 tips)
// the array index goes from 0 - 3, so that is why we use (ideas.length
-1)
// Math.random() produces a random between 0 & 1
// Math.round will round down if < .5 & up if => .5
Quote = ideas[Math.round((ideas.length
- 1) * Math.random())];
document.write(Quote);
</SCRIPT>
<BODY>
<FORM>
<INPUT
TYPE="BUTTON"
VALUE="View Source"
onClick="location
= 'view-source:' + location">
</FORM> |