jscheuer1
12-30-2008, 04:49 AM
1) CODE TITLE: EarthQuake II
2) AUTHOR NAME/NOTES: Dynamic Drive - updated by jscheuer1
3) DESCRIPTION: I'm almost ashamed of this one, as it was always annoying. But every so often we get a geologist who wants it, or someone else who thinks it's cute. So I propose that it either be removed from the library or updated (the old script doesn't work in Opera or Chrome, and is quite outdated). This version shakes the page, not the browser, and has some new options (highlighted):
var quakechance = '100%'; //set likelihood an earthquake will occur (100% means always)
var runonload = true; //should earthequake run onload?
var usemessage = true; //should "An earthquake of magnitude . . . " message be used?
var richteroverride = 0; //set to 0 for random richter setting each time (valid values 0 to 10)
It exposes only one global variable and may be called by other scripts if desired.
4) URL TO CODE: http://home.comcast.net/~jscheuer1/side/earthquake_2.htm
2) AUTHOR NAME/NOTES: Dynamic Drive - updated by jscheuer1
3) DESCRIPTION: I'm almost ashamed of this one, as it was always annoying. But every so often we get a geologist who wants it, or someone else who thinks it's cute. So I propose that it either be removed from the library or updated (the old script doesn't work in Opera or Chrome, and is quite outdated). This version shakes the page, not the browser, and has some new options (highlighted):
var quakechance = '100%'; //set likelihood an earthquake will occur (100% means always)
var runonload = true; //should earthequake run onload?
var usemessage = true; //should "An earthquake of magnitude . . . " message be used?
var richteroverride = 0; //set to 0 for random richter setting each time (valid values 0 to 10)
It exposes only one global variable and may be called by other scripts if desired.
4) URL TO CODE: http://home.comcast.net/~jscheuer1/side/earthquake_2.htm