posto il codice di una paginetta che ho fatto, ma che funziona solo con IE.
non riesco a capire dove sta l'incompatibilità
![]()
![]()
il link per vederla è http://utenti.lycos.it/provaweb7/counter.htm
(sempre se tripod è UP, perché oggi fa le bizze)
codice:<style> body {font-size:10pt; font-family:verdana} .orologio {font-size: 0px; color: #DDE3EF; background-color: #DDE3EF; width:400; text-align:center;color: #6782B8; border: 1px solid #6782B8; font-size:50pt; font-weight:bold} .hidden {font-size: 0px; color: red; background-color: #FFFFFF; width:300; text-align:left;color: #6782B8; border: 0px solid #6782B8; font-size:10pt; font-weight:bold} .link {text-decoration : none; color:#FF6600; font-weight:bold; font-family: Verdana, Arial, Helvetica, sans-serif;font-size: 10px;} :visited.linkOrange {text-decoration : none;} :active.linkOrange {text-decoration : none;} :hover.linkOrange {text-decoration : none; color : #FFFFFF; background-color: #1E90FF;} </style> <body> <form method="POST" name="orologio"> Timestamp data di lancio: <input type="text" name="time" size="60" class=hidden> Data/Ora di lancio: <input type="text" name="lancio" size="60" class=hidden> <p align="center"><font size="4" face="Verdana">3DMARK</font><sup><font size="4" face="Verdana">05</font></sup> COUNT DOWN <input type="text" name="countDown" size="15" class=orologio></p> <p align="center"> FUTUREMARK COUNT DOWN </form> <script language="javascript"> cD() function cD(){ var myDate= new Date() var dataLancio = 1096463175205 var quantoManca //dataLancio = myDate.getTime()+86373279 myDate2=new Date(dataLancio) document.getElementById('time').value=dataLancio document.getElementById('lancio').value=myDate2 quantoManca=dataLancio-myDate.getTime() secondi=quantoManca/1000 quantoMancaHH=Math.floor(secondi/3600) secondi-=quantoMancaHH*3600 quantoMancaMM=Math.floor(secondi/60) secondi-=quantoMancaMM*60 quantoMancaSS=Math.floor(secondi) if(quantoMancaHH<10) quantoMancaHH="0" + quantoMancaHH if(quantoMancaMM<10) quantoMancaMM="0" + quantoMancaMM if(quantoMancaSS<10) quantoMancaSS="0" + quantoMancaSS if(quantoManca>0) document.getElementById('countDown').value="- " + quantoMancaHH+":"+quantoMancaMM+":"+quantoMancaSS else document.getElementById('countDown').value="DOWNLOAD" setTimeout("cD()",1000); } var d = 1096463175205 myDate3=new Date(d) document.write("Data di lancio prevista: " + myDate3 ) </script> </p> </p> </body>


Rispondi quotando
