Surprise! The hardcore CSS/DOM pop-up

Surprise! The hardcore CSS/DOM pop-up script is back. Opera 5 stirs up trouble in that it doesn't allow JavaScript to change the CSS display property. The obvious fix is to also use the visibility property when toggling, but that doesn't quite work: Opera won't toggle display from none to block programmatically either, so the <div/> stays invisible.

The solution is to make the pop-ups default to visible and then dismiss them programmatically, which seems more robust anyway vis JavaScript disabled wholesale.

Mouse here to see the Opera 5-compliant pop-up (and, this time, mouse away to dismiss).

Hi. Want code? View Source and look/search for two instances of <!-- NEW POP-UP CODE -->.

J David Eisenberg's original setIdProperty also worked for NS4 and IE4, but not only was it browser-specific, it did user-agent snooping. Still, feel free to use it instead of my abbreviated version. Also notice this <div id="viewableScript"/> has a z-index: 1, to prevent the transparency blahs MSIE had on my copy (but not Disenchanted's).