Saturday, 6. September 2008, 23:30:02
unobtrusive, lightbox, ecmascript, pop-under
...
For those of you that have been awed by my
unobtrusive Pop-Under Script, or at least using it, you might be interested to know that I've updated it to:
- include navigation,
- work correctly in MSIE8,
- work mostly correctly in Apple Safari and Google Chrome,
- and moved its appearance from Windows Vista to Lightbox.
Check it out.Next stop: adding functionality to show hidden divs in a similar manner. Don't hold your breath.
Saturday, 18. August 2007, 10:37:28
cross-browser, modal dialog, pop-under, Javascript
It's been done before, I know. But I like reinventing the wheel. Especially when it comes to techniques I want to copyright.
Here's the link: [url]
http://www.omegajunior.net/code/popunder.htmlThis is what it does:
- Creates a window that looks like an MS Windows window, acting like a modal dialog
- Displays an arbitrary file or uri inside that window
- Hides the rest of the page behind a see-through layer to avoid click-throughs
- Makes specific other hyperlinks on the page open in the same modal dialog
It uses unobtrusive javascript. No AJAX. The window and all its elements are created in javascript entirely. Thus all that is needed is one single script reference. (The example page has the javascript embedded for easy reference.)
It's tested in all major browsers on the MS Windows platform and boy did they need a lot of tweaking. I got around most problems without hacks... all is outlined in the example page (it's too much to repeat, really).
Suggestions and test results welcome.