Can someone explain why this won’t work in Firefox?
[code=php]
<html>
<head>
<script type=”text/javascript”>
function run(count)
{
var list = document.getElementById(“ticker”).childNodes;
if(list[count-1])
{
list[count-1].style.display = “none”;
list[count-1].setAttribute(“display:none”);
}
else
{
list[list.length-1].style.display = “none”;
list[list.length-1].setAttribute(“display:none”);
}
list[count].style.display = “block”;
list[count].setAttribute(“display:block”);
count++;
if(count == list.length)
count = 0;
window.setTimeout(“run(” + count+ “)”,5000);
}
</script>
</head>
<body>
<div id=”ticker”><h3>This is an H3 element, it should still work!</h3><p>Test 1 – this is my first sentance, isn’t it a great sentance, it can be as long as you want it to be har har</p><p>Test 2 – this is my second sentance</p><p>Test 3 – this is my third sentance</p></div>
<script type=’text/javascript’>
run(0);
</script>
</body>
</html>