Hi, all
The Hmtl code is following:
<html>
<head>
<link type="text/css" rel="stylesheet" id="csslink" href="ora.css" />
</head>
<body>
<div>
<div id="header" class="parent chrome1 quad0" style="height: 200px;">
</div>
<div>
<a href="#" onclick="changeTheme('gre.css')">green</a><br />
<a href="#" onclick="changeTheme('ora.css')">orange</a><br />
<a href="#" onclick="changeTheme('whi.css')">white</a><br />
<a href="#" onclick="changeTheme('blu.css')">blue</a><br />
</div>
</div><script language="javascript">
var theme = document.getElementById("csslink");
theme.href = "ora.css";function changeTheme(t)
{
theme.href = t;
}
</script></body>
</html>
ora.css
#header
{
background-color: #da7429;
}
gre.css, whi,css and blu.css just with different value for background-color, you also didn't create those css file.
when you click green , orange, white and blue link , IE will prop up a error window, when you click 'ok' button then all IE6 window will be closed,
is there any body know why
Thanks
Kenneth