problemi in mozilla

Malaussene

Nuovo Utente
4 Mag 2007
2
0
0
Ciao a tutti!
Ho usato su un sito che sto costruendo (amatorialmente!!:D )
uno script asp e javascript preso da html.it che visualizza news scorrevoli. Il problema è che funziona su explorer ma non su firefox!:incazz:

Qualcuno sa dirmi perchè? Ecco il codice che ho usato...

<%
cString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("_database/NEWS.mdb")

'set connession to database
Set objConn=Server.CreateObject("ADODB.Connection")

'open connession to database
objConn.Open cstring

Set rs = Server.CreateObject("ADODB.Recordset")

nometabella="SITE_NEWS" ' inserisci qui il nome della tabella da vedere

SQL = "select NEWS_SHORT_DESC from "&nometabella&"" 'where ......"
'apro il rs
rs.Open sql, objConn
stringa = ""
do until rs.eof

For Each campo in rs.Fields
if not (campo.name = "id" or campo.name = "campo6") then
'non stampa i campi non richiesti
stringa = stringa &campo &"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"
end if

next

rs.movenext
loop

'chiudo tutto
rs.close
set rs=nothing

objConn.close
set objconn=nothing
%>




<script language="JavaScript1.2">
//Larghezza del testo scorrevole(in pixels)
var marqueewidth=700
//Altezza del testo scorrevole (in pixels, solo Netscape)
var marqueeheight=20
//Velocità
var speed=6
//Contenuto
var marqueecontents='<font face="Arial"><strong><big><%=stringa%></big></strong></font>'

if (document.all)
document.write('<center><marquee scrollAmount='+speed+' style="width:'+marqueewidth+'">'+marqueecontents+'</marquee></center>')

function regenerate(){
window.location.reload()
}

function regenerate2(){
if (document.layers){
setTimeout("window.onresize=regenerate",450)
intializemarquee()
}
}

function intializemarquee(){
document.cmarquee01.document.cmarquee02.document.write('<nobr>'+marqueecontents+'</nobr>')
document.cmarquee01.document.cmarquee02.document.close()
thelength=document.cmarquee01.document.cmarquee02.document.width
scrollit()
}

function scrollit(){
if (document.cmarquee01.document.cmarquee02.left>=thelength*(-1)){
document.cmarquee01.document.cmarquee02.left-=speed
setTimeout("scrollit()",100)
}
else{
document.cmarquee01.document.cmarquee02.left=marqueewidth
scrollit()
}
}

window.onload=regenerate2
</script>


<ilayer width=&{marqueewidth}; height=&{marqueeheight}; name="cmarquee01">
<layer name="cmarquee02"></layer>
</ilayer>
 

Discussioni simili