ëîãîòèï
Principala » fisiere » Scripturi uCoz

Alt aspect a comentariilor
2010-05-04, 6:09 PM
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+"
\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">     
     
<img src="$USER_AVATAR_URL$" border="0">     
     
<img src="http://h.imagehost.org/0607/noava.png" border="0">     
     
</td>     
<td style="padding:5px;" colspan="2">     
<div class="cDate" style="float:right;font:7pt;"><span class="myWinError"><b>$COMMENT_RATING$</b></span><span style="color:gray;"><b>$COMMENT_RATING$</b></span><span class="myWinSuccess"><b>+$COMMENT_RATING$</b></span>  <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><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"> $MODER_PANEL$</div>     
<div class="cTop" style="text-align:left;"><span style="width:18px;"><b>$NUMBER$</b>.</span> <a href="$PROFILE_URL$"><b>$USERNAME$</b></a><b>$NAME$</b>     
<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><div class="cAnswer" style="text-align:left;clear:both;"><b>Answer</b>: $ANSWER$</div></td></tr>     
<tr><td style="padding:2px;vertical-align:bottom;">     

<a href="$PROFILE_URL$"><img src="http://s21.ucoz.net/img/fr/bt/1/p_profile.gif" border="0"></a>     
<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>     
<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>     
<a href="$SITE$"><img src="http://s21.ucoz.net/img/fr/bt/1/p_www.gif" border="0"></a>     
<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>     

</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>
Categorie: Scripturi uCoz | Adaugat de: djnutzu
Vizualizari: 334 | Downloads: 0 | Comentarii: 1 | Raging: 0.0/0
Total comentarii : 1
1 razvan  
0
Esti tare ownere :D:D faci o treaba excelenta
iti multumesc pt scripturi

Prenume *:
Email *:
Cod *: