[spoiler="Exemplu"][/spoiler]
Inaintea tegului </body> adaugam scriptul:
Code
<?if$USER_ID$=0?>
<style type="text/css">
.cpmpopup {position:absolute;top:50px;left:-40px;width:100%}div > div.cpmpopup {position:fixed;}
</style>
<!--[if gte IE 5.5]>
<![if lt IE 8]>
<style type="text/css">
div#upmpopup {width:expression(((ignoreMe=(document.documentElement.clientWidth?document.documentElement.clientWidth:document.body.clientWidth))<200?200: ignoreMe)+'px'); position:absolute;top:expression((ignoreMe2=document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop)+'px'); left:expression((ignoreMe=document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft)+'px'); }
</style>
<![endif]>
<![endif]-->
<div id="ppmpopup">
<div class="cpmpopup" id="upmpopup">
<!--BODY PM START-->
<style type="text/css">
#newpm { position:absolute; height:280px; width:380px; padding:1px; background-color:#FDFDFD; border:2px solid #505050; font-family:Tahoma,Arial,Sans-Serif; font-size:11px; line-height:135%; filter:progid:DXImageTransform.Microsoft.Shadow(color=#CACACA,direction=135,strength=4); }
#newpmheader { padding-left:5px; padding-right:10px; padding-top:5px; height:30px; color:#000000; font-weight:bold; background-color:#71AFD1; font-family:Tahoma,Arial,Sans-Serif; font-size:11px; cursor:move; }
#newpm a{ background:transparent; color:#4191BA; text-decoration:none; }
#newpm a:hover{ background:transparent; color:#FF0000; text-decoration:underline; }
</style>
<div id="newpm" style="display:none;">
<div id="newpmheader">
<div class="close" style="float:right">
<a class="lock" href="javascript://" onclick="document.getElementById('newpm').style.display='none'; return false;"><img src="http://maxrom.ucoz.com/imagini/design1/spacer00.gif" alt="" border="0"></a></div>
<div>Acces limitat pe site</div>
</div>
<br>
<div class="pasportzag" style="background: url('http://i.imgur.com/NXMkQ.png');">
<div align="center"><font face="Tahoma" style="font-size:10pt" color="#4C6995"><b>Introduceti <u>Parola</u> si <u>Loghinu</u>:</b></font></div><br>
$LOGIN_FORM$
<br>
<fieldset>
<legend><font style="font-size:12px; color:335EA8;">Accesu dumneavoastră pe site este limitat!</font></legend>
<div style="overflow:auto; width:340px; height:30px;">
<font style="font-size:14px;">Pentru a elimina restricţiile, va trebui să vă înregistraţi!</font>
</div>
</fieldset>
</div>
<!--BODY PM END-->
</div>
</div>
<!--SCRIPT PM START-->
<script type="text/javascript" src="http://maxrom.ucoz.com/js/Pm/drag_window_pm.js"></script>
<script type="text/javascript">document.getElementById("ppmpopup").style.height=document.getElementById("upmpopup").offsetHeight+'px'; </script>
<!--SCRIPT PM END-->
<?endif?>
In CSS adaugati:
Code
.close { padding-top: 0; height: -10px; width: 22px; overflow: shou; }
.close img { width: 22px; height: 22px; background: url("http://i.imgur.com/NaHX5.png") no-repeat; text-align:textTop; }
.close .lock img { background-position: 0 0; }
.close .lock:hover img { background-position: 0 -22px; }
[texterror1]Puteti adauga scriptu intr-un block global si acel block sa-l puneti in fata tegului </body>[/texterror1]