View Full Version : Help with Browser Earthquake script

05-20-2005, 04:14 PM
This message is in respect to the Browser Earthquake script found at URL http://www.dynamicdrive.com/dynamicindex12/earthquake.htm

I am using this script as a fun attention getter on my website's Earthquake Data RSS listing service from the USGS. (my page is at http://www.christiangeology.com/news/earthquakes.php)

The screen shakes, as it is supposed to, but the popup message appears to be popping up down below the cut of the browser window. Consequently, the visitors are not seeing the popup. What (if anything) can be done to force the popup to appear in the visable portion of the screen?

I noted that there is a subroutine in the code to "//position quake message in center of screen" but, being a total neophite to this type of coding, I have NO IDEA what needs to be changed or added to accomplish the desired result. I would greatly appreciate some sage advice.
Thank you.

05-20-2005, 07:09 PM
This is rather an old script. It should be updated to be compatible with newer browsers but, to simply get it to work on your page using your doctype and IE as a browser, change these two lines in the code:



05-21-2005, 06:26 AM
Thank you so very, very much for the prompt reply and the fix. Worked like a charm.

I can relate to this older script/new browser problem. I had been using another script on my site to popup a small window with on a mouseover of a page graphic for looking up Hebrew and Greek definitions on some of my other pages. It still works for older browsers, but Microsoft's change to sp2 ruined that function. Now all I get is a javascript()void and a click, with an error on page prompt. An example is on this page http://www.christiangeology.com/gap_theory.html
Put a mouse over the green Hebrew graphics that are inserted into the Bible verse just below the big graphic at the start of the page. When it works a new window popsup with a definition for the word. Any suggestions on how to update this js would also be appreciated.

But again, thank you for solving my more immediate problem.

05-21-2005, 05:58 PM
I could not duplicate the problem. I did however, receive a warning about pop-ups that I had to respond to with 'temporarily allow' before it would work. I use a similar script on some pages I master and have never seen this behavior (pop-up warning). I'd suggest trying these changes to the in page part of the code, currently:
onMouseOver="JavaScript: newWindow = openWin( 'strongs/g1597.html', 'POPUP', 'width=450,height=170,toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=0,resizable=0,screenX=0,left=0,screenY=0,top=0' ); newWindow.focus()"to:
onMouseOver="JavaScript: newWindow = openWin( 'strongs/g1597.html', 'pwin', 'width=450,height=170,toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=0,resizable=0,screenX=0,left=0,screenY=0,top=0' ); return true;"though I am not certain this will fix it or even get rid of the 'allow pop-ups?' prompt. It may even mess things up so, backup your page first.

On another note. I've updated the earthquake script, my new version is in the Bug Reports (http://www.dynamicdrive.com/forums/showthread.php?p=9563#post9563) forum here. It works in IE4+ NS4.79+ and FF.

05-22-2005, 06:31 AM
I was thinking, off and on, about your page with the pop-up windows and thought you might want to upgrade to this script:

Cool DHTML Tooltip (http://www.dynamicdrive.com/dynamicindex5/dhtmltooltip.htm)

The tips can be configured for size and appearance. They do not rely upon creating a new window and can appear right at the spot on the page each is needed.

06-05-2005, 04:48 AM
I've updated the earthquake script, my new version is in the Bug Reports forum here. It works in IE4+ NS4.79+ and FF.

Thank you very much for posting the update. I have updated the script on my earthquakes page (http://www.christiangeology.com/news/earthquakes.php) and it does appear to work very well, especially with the newer browsers. It really looks good in Mozilla now! :D

Thank you so much for your effort.
PS: Sorry it took so long to respond, but I had to go back to the States for a funeral and just got back to Germany yesterday.