Do Or Dialog
A simple alternative to standard javascript confirms
Features:
- Easy to customize css and image to produce custom dialog boxes
- Uses Prototype and Scriptaculous
How It Works:
<a href='http://isnorcreative.com' onclick='return do_or_dialog(this,"Are you sure?")'>Click Me</a>
- Gets the href attribute from the element passed in first argument
- Appends a pseudo “modal window” - static-positioned gray box, full height and width, z-index 999
- Modal window has a dialog box inside of it with your message and yes / no buttons
- The “No” button removes the pseudo-“modal window”
- The “Yes” button redirects to the page specified by href
Get it:
git clone git://github.com/gordonbisnor/do_or_dialog.git