View Full Version : [DHTML] Browser Earthquake 2

08-20-2006, 06:50 PM
1) CODE TITLE: Browser Earthquake 2

2) AUTHOR NAME/NOTES:Brady Mulhollem

3) DESCRIPTION: This is about a 50% rewrite of Browser Earthquake (http://www.dynamicdrive.com/dynamicindex12/earthquake.htm) written by Dynamic Drive. My version is cross-browser compatible(I dropped support for IE4 and NN4). It also has configurable messages to display when the "earthquake" is over. I tested IE5+, Opera 7+, and Firefox 1+. I hope it is ok to post things like this here.

4) URL TO CODE: demo (http://www.bradyontheweb.com/demo/earth/index.html)

08-20-2006, 06:53 PM
Ah. Nice :)

08-20-2006, 07:27 PM
Lol, nice. Causes the page to reflow, though, at least in FX.

08-20-2006, 08:00 PM
That's cause it messes with the margin(sets it back to where it started though). If someone really cares about the page reflowing I doubt they would use a script like this. I'm glad you enjoyed it :)

08-20-2006, 08:03 PM
My advice would be to set position: relative on <body>, then jiggle that around with top: and left:.

08-20-2006, 08:06 PM
Wouldn't that screw up the page if the window was resized though?

08-20-2006, 08:45 PM
Shouldn't do, no. It won't affect the width of the page.