PDA

View Full Version : Javascript Erroring IE users. Help!



Auks
01-30-2009, 04:45 PM
Hey,
I own a popular resource site for people that make Habbo Hotel Fansites. Ive just released a new version but found a big problem.
In IE theres a bit of javascript from this script:
http://dynamicdrive.com/dynamicindex1/anylinkcss.htm

The bit of javascript that is erroring all my IE users is:

<script type="text/javascript">

//anylinkcssmenu.init("menu_anchors_class") //call this function at the very *end* of the document!
anylinkcssmenu.init("anchorclass")

</script>

I have put this at the end of the page and it hasnt made a diffrence.

The link to the site is http://habboarchive.net/V5/
(You cant open it in IE)

Anyone know a way round this? or something i can do to make it work or anything lol.

Thanks
Regards,
Auks

jscheuer1
01-30-2009, 06:22 PM
Your page is in violation of Dynamic Drive's usage terms (http://www.dynamicdrive.com/notice.htm), which, among other things, state that the script credit must appear in the source code of the page(s) using the script. Please reinstate the notice first.

I just answered a very similar question, and your page has the same exact problem (even including the lack of credit notice and the class of the unclosed division), though - since I haven't tested the solution on your page, I cannot be 100% sure it will work, but the odds are very good. See:

http://www.dynamicdrive.com/forums/showthread.php?p=182446#post182446

Auks
01-30-2009, 06:36 PM
Your page is in violation of Dynamic Drive's usage terms (http://www.dynamicdrive.com/notice.htm), which, among other things, state that the script credit must appear in the source code of the page(s) using the script. Please reinstate the notice first.

I just answered a very similar question, and your page has the same exact problem (even including the lack of credit notice and the class of the unclosed division), though - since I haven't tested the solution on your page, I cannot be 100% sure it will work, but the odds are very good. See:

http://www.dynamicdrive.com/forums/showthread.php?p=182446#post182446

ive try'd that, and it didnt do anything.

jscheuer1
01-30-2009, 06:45 PM
I did, and it fixed it. You haven't. You've still neglected to reinstate the credit notice, and - more importantly, you have not added an additional </div> tag, should be (from your current source code, addition highlighted):


<div id="content-bottom" class="clear"></div>
</div>
</div></div>
<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>

You really should validate your page, but this will fix it.

Auks
01-30-2009, 06:48 PM
I did, and it fixed it. You haven't. You've still neglected to reinstate the credit notice, and - more importantly, you have not added an additional </div> tag, should be (from your current source code, addition highlighted):


<div id="content-bottom" class="clear"></div>
</div>
</div></div>
<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>

You really should validate your page, but this will fix it.

Thank you. :) I will validate soon. Cheers