...

View Full Version : javascript error



zuzupus
07-17-2003, 12:24 PM
when i am using attached tx tfile which is mixture of php and javascript i dotn no why im getting unknown javascript error anybody rectify this will be appreciable

thanks

speciallly in below JS

function show2(){
if (!document.layers && !document.all) return;
if (document.layers) {
document.layers.pendule.document.write("<form name=\"tstest\"><select name=\"bis\" size=\"1\"><option value=\"- - - -\" selected>"+ document.tstest.bis.value +"</option><option value=\"09:00\">09:00</option><option value=\"10:00\">10:00</option><option value=\"11:00\">11:00</option></select></form>");
document.layers.pendule.document.close();
}
else if (document.all)
{
pendule.innerHTML = "<form name=\"tstest2\"><select name=\"bis\" size=\"1\"><option value=\"- - - -\" selected>"+ document.tstest.bis.value +"</option><option value=\"09:00\">09:00</option><option value=\"10:00\">10:00</option><option value=\"11:00\">11:00</option></select></form>"
}
setTimeout("show2()",36000)
}

function show(){
var Digital=new Date()
var hours=Digital.getHours()
var minutes=Digital.getMinutes()
if (hours<=9)
hours="0"+ hours
if (minutes<=9)
minutes="0"+minutes
document.tstest.bis.value = ""+ hours +":"+ minutes +""
setTimeout("show()",1000)
}



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum