secondo voi come mai sto codice su N6 funge e su IE6 non da errore, ma non si vede nulla?
c'è qualche errore?codice:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Untitled</title> <script language="JavaScript"> function creaMenu(id,width,x,y){ var tr,td,div,txt; var a=document.getElementsByTagName("body"); myBody=a.item(0); menuDIV=document.createElement("div"); menuDIV.setAttribute("id",id); menuDIV.style.position="absolute"; menuDIV.style.top=y; menuDIV.style.left=x; menuDIV.style.width=width; menuDIV.className="tab"; intDIV=document.createElement("div"); intDIV.className="tab2"; tab=document.createElement("table"); tab.setAttribute("border",1); tab.setAttribute("cellspacing",0); tab.setAttribute("cellpadding",0); tr=document.createElement("tr"); td=document.createElement("td"); span=document.createElement("span"); txt=document.createTextNode("Immagine non disponibile") span.appendChild(txt); td.appendChild(span); tr.appendChild(td); tab.appendChild(tr); intDIV.appendChild(tab); menuDIV.appendChild(intDIV); myBody.appendChild(menuDIV); } </script> </head> <body> <input type="button" value="apri" onclick="creaMenu('rino',200,100,100)"> </body> </html>
Ciao e grazie

Rispondi quotando