MaxRom | Scripturi uCoz Romania

Bannerul tau aici
[ Mesaje noi · Membrii · Regulamentul forumului · RSS ]
  • Pagina 1 din 1
  • 1
Ascundem Admin Bar (Cookies)
Muşatinu Date: Miercuri, 2011-12-14, 17:23 | Message # 1
Mesaje: 1801
Awards: 202
« 53 »

Ideia scriptului e de a ascunde Admin Bar.

Screen nu e nevoie.

In

Code
<script src="/js/cookieAdminBar.js"></script>   
   <?if($GROUP_ID$=4)?>   
   <script type="text/javascript">   
   $(document).ready(function() {   
   var myab = '<div title="Ascunde AdminBar" id="myab" style="position:fixed;top:3px;right:75px;z-index:999999999;"><img src="http://s15.ucoz.net/img/icon/rt.png" /></div>';   
   $('div:first').after(myab);   
   if(getCookie('myaboff')) {$('#puzadpn').css({'display': 'inline', 'opacity': '0'})} else {$('#puzadpn').css({'display': 'inline', 'opacity': '1'})}   
   $('#myab').click(function() {   
   if(getCookie('myaboff')) {eraseCookie('myaboff');setCookie('myabon', 1, 365);$('#puzadpn').css({'display': 'inline', 'opacity': '1'})} else {eraseCookie('myabon');setCookie('myaboff', 1, 365);$('#puzadpn').css({'display': 'inline', 'opacity': '0'})}   
   });   
   });   
   </script>   
   <?endif?>


http://maxrom.ucoz.com/js/cookieAdminBAr.js il salvati la voi pe site in mapa /js/

[texterror4]Sursa: http://www.apo-ucoz.com/

Traducere RO: http://maxrom.ucoz.com

[/texterror4]

 
  • Pagina 1 din 1
  • 1
Căutare: