MaxRom | Scripturi uCoz Romania

Bannerul tau aici
[ Mesaje noi · Membrii · Regulamentul forumului · RSS ]
  • Pagina 1 din 1
  • 1
Alt aspect a comentariilor
Muşatinu Date: Marţi, 2009-11-03, 01:01 | Message # 1
Mesaje: 1801
Awards: 202
« 53 »

Ex:

Codul îl înlocuim cu codul din Appearance of comments

Code
<script type="text/javascript">     
var selection='';function Insert(qname,text){if (text!=""){ qname=qname.replace(/[\[\]]/g, "|"); paste("[quote="+qname+"]"+text+"[/quote]\n", 0);} else {alert('Selectaţi textul pentru Citat');}} function paste(text,flag){if ((document.selection)&&(flag)) {document.addform.message.focus();document.addform.document.selection.createRange().text = text;} else document.addform.message.value += text;}function get_selection() {if (window.getSelection){selection = window.getSelection();selection = selection.replace(/\r\n\r\n/gi, "_doublecaret_"); selection = selection.replace(/\r\n/gi, " "); while (selection.indexOf(" ") !=-1) selection = selection.replace(/ /gi, ""); selection = selection.replace(/_doublecaret_/gi, "\r\n\r\n"); } else selection = document.selection.createRange().text; }     
</script>     

<script type="text/javascript">     
function emoticon(code){     

if (code != ""){     
var txtarea = document.addform.message;     
code = ' ' + code + ' ';     

if (document.selection) {     
txtarea.focus();     
var txtContent = txtarea.value;     
var str = document.selection.createRange();     

if (str.text == ""){str.text = code;}     
else if (txtContent.indexOf(str.text) != -1){str.text = code + str.text;}     
else {txtarea.value = txtContent + code;}     

}     

else{txtarea.value = txtarea.value + code;}     
}     

}     
</script>     

<table border="0" cellpadding="0" cellspacing="0" width="100%" class="$CLASS$">     
<tr>     
<td style="border-right:1px dashed #a3bae9;width:15%;text-align:center;padding:5px;" rowspan="3">     
<?if($USER_AVATAR_URL$)?>     
<img src="$USER_AVATAR_URL$" border="0">     
<?else?>     
<img src="http://h.imagehost.org/0607/noava.png" border="0">     
<?endif?>     
</td>     
<td style="padding:5px;" colspan="2">     
<div class="cDate" style="float:right;font:7pt;"><?if($COMMENT_RATING$<0)?><span class="myWinError"><b>$COMMENT_RATING$</b></span><?else?><?if($COMMENT_RATING$=0)?><span style="color:gray;"><b>$COMMENT_RATING$</b></span><?else?><span class="myWinSuccess"><b>+$COMMENT_RATING$</b></span><?endif?><?endif?>  <?if($GOOD_COMMENT_URL$)?><a href="$GOOD_COMMENT_URL$"><img src="http://s36.ucoz.net/img/icon/thumbu.png" width="13" align="absmiddle" border="0" title="Good post"></a> <a href="$BAD_COMMENT_URL$"><img src="http://s36.ucoz.net/img/icon/thumbd.png" width="13" border="0" align="absmiddle" title="Bad post"></a><?else?><img src="http://s36.ucoz.net/img/icon/thumbu_.png" align="absmiddle" width="13" border="0" title="Good post"> <img src="http://s36.ucoz.net/img/icon/thumbd_.png" width="13" align="absmiddle" border="0" title="Bad post"><?endif?> $MODER_PANEL$</div>     
<div class="cTop" style="text-align:left;"><span style="width:18px;"><b>$NUMBER$</b>.</span> <?if($USERNAME$)?><a href="$PROFILE_URL$"><b>$USERNAME$</b></a><?else?><b>$NAME$</b><?endif?>     
<span title="$TIME$">($DATE$)</span>
       </div>     
<div class="cMessage" style="text-align:left;clear:both;padding-top:2px;padding-bottom:2px;">$MESSAGE$</div>     
<br>      
<tr><td style="border-top:1px dashed #a3bae9;padding:5px;" colspan="2"><br><?if($ANSWER$)?><div class="cAnswer" style="text-align:left;clear:both;"><b>Answer</b>: $ANSWER$</div><?endif?></td></tr>     
<tr><td style="padding:2px;vertical-align:bottom;">     

<?if($PROFILE_URL$)?><a href="$PROFILE_URL$"><img src="http://s21.ucoz.net/img/fr/bt/1/p_profile.gif" border="0"></a><?endif?>     
<?if($USERNAME$)?><a href="javascript://" onclick="window.open('/index/14-$USERNAME$-0-1','sendEmail','scrollbars=1,width=650,height=450,left=0,top=0'); return false;"><img src="http://s21.ucoz.net/img/fr/bt/1/p_pm.gif" border="0"></a><?endif?>     
<?if($EMAIL$)?><a href="javascript://" onclick="prompt('E-Mail', '$EMAIL$'); return false;"><img src="http://s21.ucoz.net/img/fr/bt/1/p_email.gif" border="0"></a><?endif?>     
<?if($SITE$)?><a href="$SITE$"><img src="http://s21.ucoz.net/img/fr/bt/1/p_www.gif" border="0"></a><?endif?>     
<?if($ICQ$)?><a href="javascript://" onclick="prompt('ICQ', '$ICQ$'); return false;"><img src="http://s21.ucoz.net/img/fr/bt/1/p_icq.gif" border="0"></a><?endif?>     

</td><td style="padding:2px;text-align:right;vertical-align:bottom;">     
<a href="$ANSWER_URL$"><img src="http://h.imagehost.org/0174/answer.gif" title="Answer"></a>
<a href="javascript:Insert('$USERNAME$',selection);" onmouseover="get_selection();" class="postQuote"><img src="http://s21.ucoz.net/img/fr/bt/1/p_quote.gif" title="Citat"></a>     
<a class="goOnTop" href="javascript:scroll(0,0);"><img style="margin:0;padding:0;border:0;" src="http://s21.ucoz.net/img/fr/bt/1/p_up.gif" title="Sus" /></a>     

</td></tr>     
</table>
<br>



 
robertocorina97 Date: Miercuri, 2017-05-03, 15:31 | Message # 2
Mesaje: 9
Awards: 0
« 0 »

perfect! mersi

 
  • Pagina 1 din 1
  • 1
Căutare: