ChuckRW
04-24-2003, 07:36 AM
Hi,
I need to use a seperate external css for EI5+ and NS6+ browsers. I am currently using the following code in the head of my page. It works fine but when the page loads in NS6 it gives the error: "setting a property that has only a getter" in the JavaScript debugger. How can I clear up this error?
Here's the code that I use:
<link rel="stylesheet" type="text/css" href="resources/sg7ns.css">
<script type="text/javascript">
<!--
if (document.styleSheets) document.styleSheets[0].href="resources/sg7ie.css"
// -->
</script>
Here's a link to see the page I use the script on. (the page/site is far from finished, mousing over certain links will cause errors that have nothing to do with my problem - also there is some inconsequential Flash that takes some time to load on 56K)
http://www.totalfocus.org/sevensamples/
Thanks for taking the time to read this.
--Chuck :confused:
I need to use a seperate external css for EI5+ and NS6+ browsers. I am currently using the following code in the head of my page. It works fine but when the page loads in NS6 it gives the error: "setting a property that has only a getter" in the JavaScript debugger. How can I clear up this error?
Here's the code that I use:
<link rel="stylesheet" type="text/css" href="resources/sg7ns.css">
<script type="text/javascript">
<!--
if (document.styleSheets) document.styleSheets[0].href="resources/sg7ie.css"
// -->
</script>
Here's a link to see the page I use the script on. (the page/site is far from finished, mousing over certain links will cause errors that have nothing to do with my problem - also there is some inconsequential Flash that takes some time to load on 56K)
http://www.totalfocus.org/sevensamples/
Thanks for taking the time to read this.
--Chuck :confused: