Page Details:
smoke.js
http://ssssnakes.com/smoke/download from github A framework-agnostic styled alert system for javascript. Lightweight, flexible, css3 animation, blah blah blah easy to use something clever needs to go here. Best of all, it's really easy to use. WOW! Look at these examples: smoke.signal('this goes away after a few seconds'); smoke.alert('this is a normal alert'); smoke.confirm('works like a normal confirm()'); You can implement all of these the same way you'd use the js alert()...just put "smoke." in front of it. The confirm() replacement, however, needs to be used just a little differently: smoke.confirm('You are about to destroy everything. Are you sure?',function(e){ if (e){ alert('OK pressed'); }else{ alert('CANCEL pressed'); } }); Additionally, it's super easy to change the look of your dialogs. We've included a few sample themes to give you an idea you what you can do with this thing: light style (default) dark style 100s style (best one) tiger style If you happen to make a theme you'd want to
Tags: alert, design, javascript, smoke, web Saved by: admin