Supposedly IE implements the cssRules property for a stylesheet. So
why is the word 'foo' in the below page red and not blue?
<html>
<head>
<style>
.foo { color: #ff0000; }
</style>
</head>
<body>
<span class="foo">foo </span>
<script type="text/javascript">
document.styleS heets[0].cssRules[0].style.color='# 0000ff';
</script>
</body></html>
--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cybers pace.org | don't, I need to know. Flames welcome.
why is the word 'foo' in the below page red and not blue?
<html>
<head>
<style>
.foo { color: #ff0000; }
</style>
</head>
<body>
<span class="foo">foo </span>
<script type="text/javascript">
document.styleS heets[0].cssRules[0].style.color='# 0000ff';
</script>
</body></html>
--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cybers pace.org | don't, I need to know. Flames welcome.
Comment