/*Error Prompt Box*/varWR =function() { varWrap = ' <div class= ' wrapbox opacity ' > </div> '; varcallback; varme = This; varHtmlbox = ' <div class= ' alertbox opacity ' ></div> '; //Mask DisplayMe.fain =functionFaIn (callback) {$ (' Body '). append (wrap); $ (Wrap). FadeIn (150,function() { $('. Bodybox '). addclass (' Overauto ')); if(callback) {callback (); } ; }); }; //Mask HideMe.faout =function(callback) {$ ('. Wrapbox '). FadeOut (150,function() { $('. Bodybox '). Removeclass (' Overauto ')); if(callback) {callback (); } ; $( This). Remove (); }); }; //Public Prompt BoxMe.alert =function(Message, callback) {if(message) {varpHtml = ' <p> ' + message + ' </p> '; varinhtml =$ (Htmlbox). Append (pHtml); $(' Body '). Append (inhtml); $ (inhtml). FadeIn (250,function() {setTimeout (function() {$ (inhtml). FadeOut (150,function() { $( This). HTML ('); $( This). Remove (); }); if(callback) {callback (); } }, 2000); }); } }; Me.alerthide=function(){ $(' Body '). Find ('. Alertbox '). FadeOut (0,function(){ $( This). HTML ('); $( This). Remove (); }); }; //TelephoneMe.tel =function(tel, callback) {varTel = ' <p class= ' Telbox "><a href=" Tel: ' + Tel + ' "> ' +Tel+ ' </a></p> '; if(callback) {callback (); } $(' Body '). Append (Htmlbox); $(' Body '). Append (tel); $ (Htmlbox). FadeIn (250); $('. Alertbox '). Click (function() { $('. Telbox '). FadeOut (150,function() { $( This). Remove (); }); $( This). FadeOut (0,function() { $( This). HTML ('); $( This). Remove (); }); }); };};varWrap =NewWR ();
JS Public pop-up window plugin