I just checked your page in IE6 and IE7. The sluggishness in those browsers appear more to do with your large page size and "expensive" tags used on it then any memory leak issue with Switch Content. Even if I disable that script on your page, and IE, the page still bogs down my computer when loading it.
There are a few things you can probably do to make incremental improvements to the page in IE, but I doubt they'd be significant enough to no longer be an issue. Firstly, you have a lot of:
Code:
document.getElementById('boylson,robertalgebraiiaverage').innerHTML=' 98.6% ';
codes on your page. If they're not necessary, I'd remove them.
Secondly, you're using the same variable for every instance of Switch Content 2 on your page, in this case, faq:
Code:
<script type="text/javascript">
var faq=new switchicon("3", "div")
faq.setHeader('<img src="required/minus.gif" />', '<img src="required/plus.gif" />')
faq.collapsePrevious(true)
faq.setPersist(true)
faq.init()
</script>
This variable should be unique for every Switch Content instance on your page, so the second one should be:
Code:
<script type="text/javascript">
var faq2=new switchicon("3", "div")
faq2.setHeader('<img src="required/minus.gif" />', '<img src="required/plus.gif" />')
faq2.collapsePrevious(true)
faq2.setPersist(true)
faq2.init()
</script>
and so on. Thirdly, your use of nested tables is surely to slow things down in IE, as the browser will need to wait for everything inside the tables to be loaded before the page appears. If you switch to pure DIVs and CSS, that would make a big difference.
Bookmarks