MENU
[ Mesaje noi · Membrii · Regulamentul forumului · Căutare · RSS ]
Pagina 1 din 11
Forum » Configurari Ale Sistemului uCoz » Forum » Contenturi(info,avertizare..)
Contenturi(info,avertizare..)
marcel123Data: Joi, 2012-07-26, 12:21 PM | Mesaj # 1
Soldat
Grup: Administratori
Mesaje: 8
Reputaţie: 100
Status: Offline

Codul dat il postati dupa tegul $BODY$ din
General appearance of forum pages
Code
<style>      
#texterror1{background:#f6dede;border:1px solid #c27e7e;padding:10px;}      
#texterror2{background:#f1f1f1;border:1px solid #cfcfcf;padding:10px;}      
#texterror3{background:#bce1f9;border:1px solid #70c4fa;padding:10px;}      
#texterror4{background:#86E9A7;border:1px solid #409E6A;padding:10px;}      
#grb{background:#fbefef;padding:4px;border-top:1px solid #c27e7e;border-left:1px solid #c27e7e;border-right:1px solid #c27e7e;font-size:12px;}      
#rkb{background:#f8f8f8;padding:4px;border-top:1px solid #cfcfcf;border-left:1px solid #cfcfcf;border-right:1px solid #cfcfcf;font-size:12px;}      
#svb{background:#daf0fe;padding:4px;border-top:1px solid #70c4fa;border-left:1px solid #70c4fa;border-right:1px solid #70c4fa;font-size:12px;}      
#surs{background:#AFF1C5;padding:4px;border-top:1px solid #409E6A;border-left:1px solid #70c4fa;border-right:1px solid #70c4fa;font-size:12px;}      
</style>      
<script type="text/javascript">      
<?if(($GROUP_ID$='4'))?>$('#spoiler').after('<input title="get" id="warningmess" style="background:#fbefef;border:1px solid #c27e7e;margin-left:4px;" value="Adauga un content" style="margin-left:4px;" class="codeButtons" type="button">');<?endif?>      

$('.bbtag').each(function() {      
messforum = $(this).html();      
rm = messforum.replace(/\[texterror1\]/gi,'<div id="grb"><b>Atentie!!!</b></div><div id="texterror1">').replace(/\[\/texterror1\]/gi,"</div>")  
.replace(/\[texterror2\]/gi,'<div id="rkb"><b>Useri</b></div><div id="texterror2">').replace(/\[\/texterror2\]/gi,"</div>")  
.replace(/\[texterror3\]/gi,'<div id="svb"><b>Info</b></div><div id="texterror3">').replace(/\[\/texterror3\]/gi,"</div>")  
.replace(/\[texterror4\]/gi,'<div id="surs"><b>Sursa si modificatii</b></div><div id="texterror4">').replace(/\[\/texterror4\]/gi,"</div>")  
$(this).html(rm);      
});      
$('#warningmess').click(function() {      
new _uWnd('warmess','Content nou',500,500,{align:0,shadow:0,close:1,autosize:1,maxh:800,minh:300,resize:0}, '<fieldset><select id="tw"><option value="texterror1">Atentionare la script</option><option value="texterror2">Useri</option><option value="texterror3">Info</option><option value="texterror4">Sursa si modificatii</option></select></fieldset><fieldset><legend>Continutul butonului<span style="margin-top:5px;" id="ertxt"></span></legend><textarea id="warningtext" style="width:100%"></textarea></fieldset><fieldset><div style="float:left"><table border="0" cellpadding="0" cellspacing="0" onmousedown="this.className=\'downBtn\'" onmouseover="this.className=\'overBtn\'" onmouseout="this.className=\'outBtn\'"><tr><td class="myBtnLeft"><img alt="" border="0" src="http://s1.ucoz.net/img/1px.gif"/></td><td class="myBtnCenter"><div class="myBtnCont x-unselectable" unselectable="on"><a href="javascript://" onclick="lp()">Adauga</a> </div> </td><td class="myBtnRight"><img alt="" border="0" src="http://s1.ucoz.net/img/1px.gif"/></td></tr></table></div></fieldset>' )      
});      
function lp() {      
if($('#warningtext').val().length <= '5'){$('#ertxt').html(' - <font color="red">nu ati adaugat continut</font>')}      
else{gettxt();_uWnd.close('warmess');$('#ertxt').html('')}      
}      
function gettxt() {      
var textmesswarning = $('#warningtext').val();var texttypewarning = $('#str').val();$('#tw option:selected').each(function() {var polemtext = $(this).val();document.getElementById('message').value+='['+polemtext+']'+textmesswarning+'[/'+polemtext+']';});      
if($("#privtxt").attr('checked')){$('#frF16').click()}      
}      
</script>
 
Forum » Configurari Ale Sistemului uCoz » Forum » Contenturi(info,avertizare..)
Pagina 1 din 11
Căutare: