CSS:
Code
/* Comments Style */
.cAnswer {padding-left:15px;padding-top:4px;font-style:italic;}
.cBlock1 {background:#FFFFE0; border:1px solid #FEE23F;}
.cBlock2 {background:#FFFFE0; border:1px solid #FEE23F;}
/* -------------- */
Ej uz Customize design » Editing templates » Appearance of comments un tur visu aivieto ar šo:
Code
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td width="40%">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td background="http://atlan.do.am/icons/topes-1.png" height="17" width="17">
<br></td>
<td background="http://atlan.do.am/icons/topes-2.png" height="17">
<br></td>
<td background="http://atlan.do.am/icons/topes-3.png" height="17" width="17">
<br></td>
</tr>
<tr>
<td background="http://atlan.do.am/icons/topes-4.png" width="17">
<br></td>
<td>
<table class="$CLASS$" border="0" cellpadding="0" cellspacing="0" width="100%"><tbody><tr><td style="padding: 3px;"><div style="float: right; font-size: 11px; font-family: Arial,sans-serif;"><?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 alt="" src="/ikonas/labs_komentars.png" title="Patīk" align="absmiddle" height="40" width="40"></a> <a href="$BAD_COMMENT_URL$"><img alt="" src="/ikonas/slikts_komentars.png" title="Nepatīk" align="absmiddle" height="40" width="39"></a><?else?><img alt="" src="/ikonas/labs_komentars.png" align="absmiddle" width="35" border="0" title="Nevari nobalsot!"> <img alt="" src="/ikonas/slikts_komentars.png" width="35" align="absmiddle" border="0" title="Nevari nobalsot!"><?endif?> $MODER_PANEL$</div><div class="cTop" style="text-align: left;"><?if($IS_OWN$)?><span class="myWinError">*</span> <?else?><?if($IS_NEW$)?><span class="myWinSuccess">*</span> <?endif?><?endif?><a href="#ent$ID$" onclick="if (document.getElementById('comEnt$ID$')){$('body').scrollTo( { top:$('#comEnt$ID$').offset().top-22, left:0}, 500 );return false;}" name="ent$ID$"><b>$NUMBER$</b></a>
<?if($USERNAME$)?><a href="$PROFILE_URL$"><b>$USERNAME$</b></a><?else?><b>$NAME$</b><?endif?> <span style="font-size: 7pt; unicode-bidi: embed;">($DATE$ $TIME$)</span>
<?if($ENTRY_URL$)?>[<a href="$ENTRY_URL$" target="_blank" title="Go to entry page">Entry</a>]<?endif?>
</div>
<div class="cMessage" style="padding: 2px 0pt; text-align: left; clear: both;"><?if($USER_AVATAR_URL$)?><a href="$PROFILE_URL$" title="$USERNAME$" style="padding-right: 4px;"><img alt="" src="$USER_AVATAR_URL$" align="left" border="0" width="50"></a><?endif?>$MESSAGE$</div>
<?if($ANSWER$)?><div class="cAnswer" style="text-align: left; clear: both;"><b>Answer</b>: $ANSWER$</div><?endif?>
<?if($ANSWER_URL$)?><div style="padding: 4px 0pt; clear: both; font-size: 7pt;">[<a href="$ANSWER_URL$">Reply</a>]</div><?endif?>
</td></tr></tbody></table><br>
</td>
<td background="http://atlan.do.am/icons/topes-5.png" width="17">
<br></td>
</tr>
<tr>
<td background="http://atlan.do.am/icons/topes-6.png" height="17" width="17">
<br></td>
<td background="http://atlan.do.am/icons/topes-7.png" height="17">
<br></td>
<td background="http://atlan.do.am/icons/topes-8.png" height="17" width="17">
<br></td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
<br>
<script type="text/javascript">
$(document).ready(function() {
$("textarea[id='message']").keyup(function() {
error = "Beidz lamāties";
words = ["idiots","ei dirst","losis","mauka","kroplis","pediņš","sūkā"];
for (i = 0; i <= words.length; i++){
if($("#message").val().toLowerCase().indexOf(words[i]) != -1) {$("#addcBut").attr("disabled", "disabled");$("#er").fadeIn("slow").text(error);setTimeout('$("#er").fadeOut("slow")', 8500);break;}
else{$("#addcBut").attr("disabled", 0);setTimeout('$("#er").fadeOut("slow")', 8500);}
}
});
});
</script>
<style>
#er{display:none;border:1px solid #eba4a4;border-left-width:5px;color:#b35454;background-color:#ffeded;padding:8px;margin:5px;}
</style>
[Info]Tālāk izplatīt kodus bez simply.ez.lv administratora atļaujas aizliegts![/Info]