Newsgroup: it.comp.lang.javascript
Titolo: Compatibilità IE - NS

Salve, 
ho questo strano problema:
ho 2 js che singolarmente funzionano sia su IE che su NS, ma che messi 
insieme sulla stessa pagina.. su NS danno problemi.. ossia funziona solo 
il secondo. Ho provato anche con latri scrollers.. ma il problema con NS 
rimane.. :(
Qualcuno che mi puo' genstilmente dare una mano ?
ecco la pagina :
---------- - - - 
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF">
<table width="145" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td width="10"><img src="graphic/box-news-top.gif" width="145" 
height="27"></td>
  </tr>
  <tr bgcolor="#E7C308"> 
    <td width="10"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="7">
        <tr> 
          <td> 
            <script language="JavaScript1.2">
//Specify the marquee's width (in pixels)
var marqueewidth=130
//Specify the marquee's height
var marqueeheight=160
//Specify the marquee's scroll speed (larger is faster)
var speed=2
//Specify the marquee contents
var marqueecontents='<p><font size="1" face="Arial"><b>Notizia uno</b>
<br>testo testo testo testo testo testo testo testo testo .</font></p>'
if (document.all)
document.write('<marquee direction="up" scrollAmount='+speed+' 
style="width:'+marqueewidth+';height:'+marqueeheight+'">'+marqueecontent
s+'</marquee>')
function regeneratex(){
window.location.reload()
}
function regenerate2x(){
if (document.layers){
setTimeout("window.onresize=regeneratex",450)
intializemarquee()
}
}
function intializemarquee(){
document.cmarquee01.document.cmarquee02.document.write(marqueecontents)
document.cmarquee01.document.cmarquee02.document.close()
thelength=document.cmarquee01.document.cmarquee02.document.height
scrollit()
}
function scrollit(){
if (document.cmarquee01.document.cmarquee02.top>=thelength*(-1)){
document.cmarquee01.document.cmarquee02.top-=speed
setTimeout("scrollit()",100)
}
else{
document.cmarquee01.document.cmarquee02.top=marqueeheight
scrollit()
}
}
window.onload=regenerate2x
</script>
            <ilayer width=&{marqueewidth}; height=&{marqueeheight}; 
name="cmarquee01" left="0" top="0"> 
            <layer name="cmarquee02" width=&{marqueewidth}; height=&
{marqueeheight};></layer>
            </ilayer>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr> 
    <td width="10"><img src="graphic/bg-rosso-botton.gif" width="145" 
height="16"></td>
  </tr>
</table>
<p>&nbsp;</p>
<table border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td width="11"><img src="graphic/graffa-sx.gif" width="11" 
height="33"></td>
    <td> 
      <script language="JavaScript1.2">
<!--
var sliderwidth=400
var sliderheight=20
var slidespeed=3
var leftrightslide=new Array()
var finalslide=''
leftrightslide[0]='<a href="aaa">- testo testo testo  -</a>'
leftrightslide[1]='<a href="aaa">- testo testo testo  -</a>'
leftrightslide[2]='<a href="aaa">- testo testo testo  -</a>'
var copyspeed=slidespeed
for (i=0;i<leftrightslide.length;i++)
  finalslide=finalslide+leftrightslide[i]
if (document.all){
document.write('<marquee id="ieslider" scrollAmount=0 
style="width:'+sliderwidth+'">'+finalslide+'</marquee>')
ieslider.onmouseover=new Function("ieslider.scrollAmount=0")
ieslider.onmouseout=new Function("if (document.readyState=='complete') 
ieslider.scrollAmount=slidespeed")
}
function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers){
document.ns_slider01.visibility="show"
setTimeout("window.onresize=regenerate",450)
intializeleftrightslide()
}
if (document.all)
ieslider.scrollAmount=slidespeed
}
function intializeleftrightslide(){
document.ns_slider01.document.ns_slider02.document.write
('<nobr>'+finalslide+'</nobr>')
document. ns_slider01.document.ns_slider02.document.close()
thelength=document.ns_slider01.document.ns_slider02.document.width
scrollslide()
}
function scrollslide(){
if (document.ns_slider01.document.ns_slider02.left>=thelength*(-1)){
document.ns_slider01.document.ns_slider02.left-=slidespeed
setTimeout("scrollslide()",100)
}
else{
document.ns_slider01.document.ns_slider02.left=sliderwidth
scrollslide()
}
}
window.onload=regenerate2
//-->
</script>
      <ilayer width=&{sliderwidth}; height=&{sliderheight}; 
name="ns_slider01" visibility=hide> 
      <layer name="ns_slider02" onMouseOver="slidespeed=0;" 
onMouseOut="slidespeed=copyspeed"></layer>
      </ilayer>
    </td>
    <td><img src="graphic/graffa-dx.gif" width="11" height="33"></td>
  </tr>
</table>
<p>&nbsp;</p>
</body>
</html>
---------- - - - 

 file://-->
