|
uCoz Community Archives Locked Altered ajax window appears when you add materials |
Altered ajax window appears when you add materials |
This Script Will Notify You With A Ajax When Anyone Adds An Entry On The Module You Want. Put The Following Code After $BODY$ :
Code <script type="text/javascript"> function openery(){ try {var tr=checksubmit();if(!tr){return false;}}catch(e){} document.getElementById('ldF18').disabled=true; new _uWnd('addEnt','Window Title/Name',-310,-100,{autosize:0,modal:1,closeonesc:1,resize:0},{form:'addEntForm'}); setInterval(function () { $('#_uwndWnd1 .myWinSuccess').html('<img src="a .gif picture url here. example down" />'); }, 100); } </script> Another Code Like The First One :
Code <script type="text/javascript"> function openery(){ try {var tr=checksubmit();if(!tr){return false;}}catch(e){} document.getElementById('ldF18').disabled=true; new _uWnd('addEnt','Window Title/Name',-310,-100,{autosize:0,modal:1,closeonesc:1,resize:0},{form:'addEntForm'}); setInterval(function () { var lnk = $('.myWinCont:last a').size() ? $('.myWinCont:last a').attr('href') : lnk; $('.myWinCont:last').html('key' + link); }, 100); } </script> What To Modify? Modify The Window Title And img src The Example .gif URL To Put Beside The img src
Attachments:
2870784.gif
(1.2 Kb)
Post edited by runakter - Thursday, 2011-03-17, 3:11 AM
|
| |||
| |||