Ejam uz CP > CD > Modulis, kurā uzstādīsim > Page with full entry text and associated comments un pēc tega $MESSAGE$ ievietojam šo te kodu:
Code
<script type="text/javascript">
function repchange(val,id){
repval=val;
ajaxtime=setInterval('checkajax'+id+'()',500);}
</script>
<a title="Pateikt PALDIES par filmu $ENTRY_TITLE$!" href="javascript://" onclick="openLayerB('Rd',0,'/index/23-$UID$','Pateikt PALDIES par filmu',380,200,1); return false;"><img src="http://extra.ucoz.lv/Paldies_par_filmu.png" alt="*" width="199" height="34" onclick="repchange('plus','$ID$');" /></a>
<script type="text/javascript">
function checkajax$ID$(){
forms=document.getElementsByTagName('form');
for(f=0;f<forms.length;f++){
if(forms[f].id=='frm981'){
if(repval=='plus'){document.getElementById('a2').checked='true';
forms[f].reason.value='Paldies par filmu $ENTRY_TITLE$'
document.getElementById('submfrm981')();
document.getElementById('sbt981').onclick=null;
clearInterval(ajaxtime);}}}}
</script>
Iznākums:
Aizgūts no : Rool.clan.su