That error in IE generally means that a script is trying to write into a portion of the document where there is a problem due to invalid code. Your entire page is invalid (don't get too upset, it just means that it doesn't conform to standards).
Required opening and/or closing element tags are missing in some cases, and there is no DOCTYPE, elements appear in areas where they are not allowed, required attributes are missing, non-standard attributes are used.
If you have a valid document, it is much less likely that you will get this sort of error in IE. However, as far as IE 5 goes I make no guarantees.
You may use the w3c validator:
http://www.w3.org/
But it is also possible that if you just make sure that IE is 'happy', things may just work out. In the long run, a valid document is best, but this is a quick fix:
Now, the script already states that this part:
Code:
<script type="text/javascript">
//anylinkcssmenu.init("menu_anchors_class") //call this function at the very *end* of the document!
anylinkcssmenu.init("anchorclass")
</script>
So remove it from where you have it, and place it here:
Code:
<script type="text/javascript">
//anylinkcssmenu.init("menu_anchors_class") //call this function at the very *end* of the document!
anylinkcssmenu.init("anchorclass")
</script>
</body>
</html>
just before your closing </body> tag. That much should be done no matter what.
Here comes the part where we make IE 'happy' - Place these in front of it:
Code:
</div></span>
<script type="text/javascript">
//anylinkcssmenu.init("menu_anchors_class") //call this function at the very *end* of the document!
anylinkcssmenu.init("anchorclass")
</script>
</body>
</html>
That closes tags that were left open, enough at least that IE 7 can now display the page.
Bookmarks