|Start | Time | IF | Date Object | Arrays | Avoid the work | Hide email | Random | Intigrate HTML | Test|
The Math Object
To keep people coming back it is sometimes nice to have your index page different each time.
For instance :
On my personal pages Geoff's World I play a different midi randomly chosen each time the page is reloaded.
There are a couple of things that we must understand first.
Not much good to us like that but if we multiply it by the number of choices we need it begins to make sense
For this we use 'Math.round'
What we have done is combine three steps in one statement which makes sense.
It could have been written
We can access an array with the answer to alter the experience on each reload.
Recapping : Here is the script
Next : Interact with HTML