Sari la conținut

Tutorial - Adauga optiunea de Inchidere/Deschidere [VN32] Sticky Message 1.1


Postări Recomandate

Postat
Utilizeaza aceasta optiune de inchidere sau de deschidere a modului [VN32] Sticky Message 1.1
Mergi la :

ACP > Look & Feel > skin_name > Board Index > VNStickyGlobalMessage

Apoi inlocuieste tot continutul cu :

<script type="text/javascript">
function sembunyikan(){if(document.getElementById("stickymsg").className==""){document.getElementById("stickymsg").className="maho_sembunyi";document.getElementById("sembunyikan").className="maho_tampil";document.getElementById("tampilkan").className=""}else{document.getElementById("stickymsg").className="";document.getElementById("sembunyikan").className="";document.getElementById("tampilkan").className="maho_tampil"}setCookie("maho_sembunyistickymsg",document.getElementById("stickymsg").className,1)}functionsetCookie(a,b,c){var d=new Date;d.setDate(d.getDate()+c);var e=escape(B)+(c==null?"":"; expires="+d.toUTCString());document.cookie=a+"="+e}functiongetCookie(a){var b,c,d,e=document.cookie.split(";");for(b=0;b<e.length;b++){c=e[b].substr(0,e[b].indexOf("="));d=e[b].substr(e[b].indexOf("=")+1);c=c.replace(/^\s+|\s+$/g,"");if(c==a){return unescape(d)}}}function checkCookie(){var a=getCookie("maho_sembunyistickymsg");if(a!=""){document.getElementById("stickymsg").className="maho_sembunyi";document.getElementById("sembunyikan").className="maho_tampil";document.getElementById("tampilkan").className=""}else{document.getElementById("stickymsg").className="";document.getElementById("sembunyikan").className="";document.getElementById("tampilkan").className="maho_tampil"}}window.onload=function(){checkCookie()}
</script>
<style type='text/css'>
.maho_sembunyi{min-width: 14px !important;}
.maho_sembunyi span{display:none !important;}
.maho_tampil{display:none !important;}
#stickymsg{position: fixed;
{$this->settings['vn_sticky_message_system_location']}: 10px;
line-height: 16px;
{$this->settings['vn_sticky_message_system_position']}: 10px;
z-index: 30000;
opacity: 0.8;
min-width: 260px;
height: auto;
background: #cf3737;
color: #fff;
text-shadow: rgba(0,0,0,0.3) 0px -1px 0px;
padding: 10px;
text-decoration: none;font-size: 11px;font-family: Tahoma;
border: 1px solid #771b1b;
box-shadow: rgba(0,0,0,0.3) 0px 1px 4px, inset #f66c6c 0px 1px 0px;
border-radius: 3px;}
#stickymsg a{color: #fff;
font-weight:bold;
text-decoration: none;}
#stickymsg:hover{ opacity: 1; }
#sembunyikan,
#tampilkan{position:absolute; cursor:pointer;}
#sembunyikan:before{content:"×";}
#sembunyikan{right:3px;top:-2px;}
#tampilkan:before{content:"Show";}
#tampilkan{top:1px;right:1px;}
</style>
<div align='center'>
<div id='stickymsg'><span>{$data['message']}</span>
<p onclick="sembunyikan()" id="sembunyikan"></p>
<p onclick="sembunyikan()" class="maho_tampil" id="tampilkan"></p>
</div>
Postat

Interesant :-?

Postat

Interesant :-?

Stiu :)

Vizitator
Acest subiect este acum închis pentru alte răspunsuri.
  • Navigare recentă   0 membri

    • Nici un utilizator înregistrat nu vede această pagină.
×
×
  • Creează nouă...