hugobossv8
Programmer
Hello,
I'm using the following code to disable all controls on my page - in IE 6.0, however, the CSS that's applied to my hyperlinks disappears. Is there anyway to retain the CSS settings on disabled controls?
for (i in document.all){
document.all.disabled = true;
}
Here's what my CSS looks like (notice the font size is set to 18px, but when the disabled script runs above, it appears to reduce the font size to 12px or some default size that IE uses):
<style type="text/css">
<!--
a:link {
font-family: Arial, Helvetica, sans-serif;
font-size: 18px;
}
a:visited {
font-family: Arial, Helvetica, sans-serif;
font-size: 18px;
}
a:active {
font-family: Arial, Helvetica, sans-serif;
font-size: 18px;
}
a:hover {
font-family: Arial, Helvetica, sans-serif;
font-size: 18px;
}
-->
</style>
I'm using the following code to disable all controls on my page - in IE 6.0, however, the CSS that's applied to my hyperlinks disappears. Is there anyway to retain the CSS settings on disabled controls?
for (i in document.all){
document.all.disabled = true;
}
Here's what my CSS looks like (notice the font size is set to 18px, but when the disabled script runs above, it appears to reduce the font size to 12px or some default size that IE uses):
<style type="text/css">
<!--
a:link {
font-family: Arial, Helvetica, sans-serif;
font-size: 18px;
}
a:visited {
font-family: Arial, Helvetica, sans-serif;
font-size: 18px;
}
a:active {
font-family: Arial, Helvetica, sans-serif;
font-size: 18px;
}
a:hover {
font-family: Arial, Helvetica, sans-serif;
font-size: 18px;
}
-->
</style>