ho risistemato il codice ma ancora non va
codice:<html> <head> <Script Language="jscript"> function visfile() { var ForReading=1; var j var objfile=new ActiveXObject("Scripting.FileSystemObject"); var pathfile=objfile.OpenTextFile("C:\\Users\\Fily\\Desktop\\bancadati.txt",ForReading); for (j=1; j=80000000000000000000; j++) { s=pathfile.ReadLine(); if(s>50) { document.getElementById("ID1").innerHTM L= s.fontcolor("red")+"<br>"+"<BR>"; } if(s<50) { document.getElementById("ID2").innerHTM L= s.fontcolor("green")+"<br>"+"<BR>"; } } pathfile.close(); } </Script> <table border="1" bordercolor="black" bgcolor= "#FFCC99" align="center" width="900" height="900" gtgtcellpadding=”0? cellspacing=”0? colspan="0"> <tr> <td id="ID1" id="ID2" bordercolor="#FFCC99"></td> </tr> </table> </head> <BODY onLoad="visfile();"></BODY> </html>


Rispondi quotando