Javascript-форум (https://javascript.ru/forum/)
-   Общие вопросы Javascript (https://javascript.ru/forum/misc/)
-   -   Где синтаксическая ошибка (https://javascript.ru/forum/misc/13314-gde-sintaksicheskaya-oshibka.html)

hrundel 25.11.2010 20:09

Где синтаксическая ошибка
 
Вложений: 1
Помогите найти синтаксическую ошибку.
<SCRIPT LANGUAGE="JavaScript"> 
<!--
function editComment(id, name, surname, txt, mark){
	document.getElementById('add_testimonial').style.display='block';
	document.getElementById('name_t').value=name;
	document.getElementById('sec_name').value=surname;
	document.getElementById('text_t').value=txt;
	document.getElementById('id_id').value=id;
	document.getElementById('m'+mark).setAttribute('checked', 'checked');
}
 
function openWin(im,hd,h,w){
   var pic='"'+hd+'"'+" HEIGHT="+'"'+h+'"'+" SRC="+'"'+im+'"'+" WIDTH="+'"'+w+'"';
   var wn="width="+w+","+"height="+h+","+"status=no,toolbar=no,menubar=no";
   myWin=open("","_blank",wn);
   myWin.document.write('<HTML>');
   myWin.document.write('<HEAD><TITLE>'+hd+'</TITLE></HEAD>');
   myWin.document.write('<BODY LEFTMARGIN="0" TOPMARGIN="0">');
   myWin.document.write('<IMG ALIGN="left" border="0" ALT="'+pic+'">')
   myWin.document.write('</BODY>');
   myWin.document.write('</HTML>');
}
//--> 
 
 
 
function openWin1(lname,h,w){
   //var pic='"'+hd+'"'+" HEIGHT="+'"'+h+'"'+" SRC="+'"'+im+'"'+" WIDTH="+'"'+w+'"';
   var wn="width="+w+","+"height="+h+","+"status=no,toolbar=no,menubar=no";
   myWin=open("delncredit.php?look&card="+lname+"","_blank",wn);
}
 
function showAll(){
	kids = document.getElementById('chars').children;
	kids = kids[0].children;
	for(i=0; i<kids.length; i++){		if(kids[i].style.display=='none'&&kids[i].getAttribute('type')=='hid'){			kids[i].style.display='';		} else if(kids[i].style.display!='none'&&kids[i].getAttribute('type')=='hid'){			kids[i].style.display='none';		}	}}></SCRIPT>


Ошибку выдаёт FF3.6 и Safari. Прилагаю скриншот Сафари с подсветкой синтаксиса.

B@rmaley.e><e 25.11.2010 20:18

Зачем > перед </script>? И вообще, приведите код в порядок.

monolithed 25.11.2010 20:39

И не мешало бы сказать, что должен выполнять этот г*код, т.к. тут нет телепатов


Часовой пояс GMT +3, время: 15:06.