Ciao a tutti,
premetto che mastico pochissimo di javascript...xò ho trovato sul web questo codice che non capisco perchè su IE va benissimo...su Firefox non fa quello che invece dovrebbe fare...cioè far scorrere, con effetto fade il contenuto di un div...
posto il codice:

Codice PHP:
<script type="text/javascript" language="JavaScript">
<!--
var list; 
var 
tickerObj
var 
hex 255;

function 
fadeText(divId) {
  if(
tickerObj)
  {
    if(
hex>0) {
      
hex-=5// increase color darkness
      
tickerObj.style.color="rgb("+hex+","+hex+","+hex+")";
      
setTimeout("fadeText('" divId "')"fadeSpeed); 
    } else
      
hex=255//reset hex value
  
}
}

function 
initialiseList(divId) {
  
tickerObj document.getElementById(divId);
  if(!
tickerObj)
    
reportError("Could not find a div element with id \"" divId "\"");
  list = 
tickerObj.childNodes;
  if(list.
length <= 0)
    
reportError("The div element \"" divId "\" does not have any children");
  for (var 
i=0i<list.lengthi++) {
    var 
node = list[i];
    
node.style.display "none";     if (node.nodeType == && !/\S/.test(node.nodeValue)) 
              
tickerObj.removeChild(node);
  }
  
run(divId0);
}

function 
run(divIdcount) {
  
fadeText(divId);
  list[
count].style.display "block";
  if(
count 0)
    list[
count-1].style.display "none";
  else
    list[list.
length-1].style.display "none";
  
count++;
  if(
count == list.length)
    
count 0;
  
window.setTimeout("run('" divId "', " count")"interval*1000);
}
function 
reportError(error) {
  
alert("The script could not run because you have errors:\n\n" error);
  return 
false;
}

var 
interval 10// interval in seconds
var fadeSpeed 10;

//-->
</script>

</head>
<body  onLoad="initialiseList('tic');">
 
<div class="tic" id="tic">



Album di prova

[img]foto/DSC01473.JPG[/img]</p>


Album di prova

[img]foto/DSC01818.JPG[/img]</p>


Album di prova

[img]foto/DSC01936.JPG[/img]</p>

</div> 
Qualcuno sa dirmi come devo fare per renderlo compatibile con Mozilla firefox? :master:

Grazie in anticipo a tutti