Hi.
I tried to get a flashing table bordr, it worked OK in IE 6 but NOT if FF.
I found the the problem is:
FF can WRITE getElementById but it CAN NOT READ IT ?
so I found an “Elegant” way to bypass it by creating a dummy color variable: col
the table is:
<table border=”0″ id=”table” style=”border: 4px blue solid;”>
…..
</table>
<script language=”javascript”>
var col = ‘blue’
function flasher() {
if(col == ‘blue’) {
document.getElementById(‘table’).style.borderColor = ‘red’
col = ‘red’
} else {
document.getElementById(‘table’).style.borderColor = ‘blue’
col = ‘blue’
}
setTimeout(“flasher()” , 1000)
}
</script>
<script language=”javascript”>flasher();</script>
It works in both IE6 and FF 3.
see a demo: [URL=”http://www.the-secret-of-SEO.com”]www.the-secret-of-SEO.com
?