Author : Tom Coote @ Innoware
Date : 15 Feb 2007
Web site : tomcoote.co.uk (for most upto date info)
This page shows an example of the alert2 message box. To use it include the css and js files on your page and call the ShowAlert2() function from an onClick event. You need to pass in the custom alert box variables;
Click here to show an example alert box.
Example code :
<a href="#alertBox" onClick="JavaScript:ShowAlert2(event, 'Test Alert 2', 'Testing the custom JavaScript Alert Box', 'Exclamation_32x32.gif', ['OK', 'Cancel'], ['HideAlert2()','HideAlert2()'], 400, 'close.gif')" >Click here</a>
Tested in IE7, FireFox 2.0.0.1 and Opera 9.02
Feel free to use, edit or share this code as long as you credit the author in the source.