Есть скрипт Благодарность/Антиблагодарность:
Общий вид форума до /head:
- Код: Выделить всё
<script type="text/javascript">
function repchange(val,id){
repval=val;
ajaxtime=setInterval('checkajax'+id+'()',500);}
</script>
Материалы:
- Код: Выделить всё
<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=='minus'){document.getElementById('a1').checked='true';
document.getElementById('submfrm981').
document.getElementById('sbt981').onclick=null;
clearInterval(ajaxtime);}// by Vanofuture
else{document.getElementById('a2').checked='true';
document.getElementById('submfrm981').
document.getElementById('sbt981').onclick=null;
clearInterval(ajaxtime);}}}}
</script>
<?if($DO_REP_URL$)?><a href="$DO_REP_URL$"><span style="font-size:13pt; color:red;" onclick="repchange('minus','$ID$');" title="Понизить репутацию"><b>-</b></span></a><?endif?><?if($GROUP_ID$>0)?><span style="font-size:11pt; color:#4D6D91;" >_</span><a href="$READ_REP_URL$"><span style="font-size:10pt; color:blue;" title="Репутация пользователя" >« <b>$REP_RATING$</b> »</span></a><span style="font-size:11pt; color:#4D6D91;" >_</span><?endif?><?if($DO_REP_URL$)?><a href="$DO_REP_URL$"><span style="font-size:13pt; color:green;" onclick="repchange('plus','$ID$');" title="Повысить репутацию"><b>+</b></span></a><?endif?>
Все работает, кроме самой отправки. Т.д. не работает кнопка применить в форме отправки (не нажимается)
Что здесь не так?
Спасибо.