![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Can someone please tell me why I continually get this JavaScript error with IE8. The page loads correctly but it always shows this error:
Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0) Timestamp: Mon, 22 Jun 2009 02:18:10 UTC Message: 'document.getElementById(...)' is null or not an object Line: 52 Char: 2 Code: 0 URI: http://thegreatmonkey.com/ Here is the code from my site: Code:
-->
</style>
<script type="text/javascript"><![CDATA[//><!--
sfHover = function() {
if (!document.getElementsByTagName) return false;
var sfEls = document.getElementById("nav").getElementsByTagName("li");
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=" sfhover";
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
}
}
}
|
|
#2
|
||||
|
||||
|
viewtopic.php?f=64&t=5302
In your case, you have NO menu or submenu, so you will need to remove the entire javascript section used for the menus.
__________________
StudioPress on Facebook Copyblogger | StudioPress | ScribeSEO Teaching Sells | Third Tribe | Premise Follow me on Twitter |
|
#3
|
|||
|
|||
|
You were exactly correct Craig. Thank You so much for your quick reply. Best to you.
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Dropdown JavaScript / Page Error | npost | General Discussion | 11 | 01-19-2010 02:48 AM |
| javascript error with ie6/7 only | boots | General Discussion | 7 | 04-07-2009 03:37 PM |
| Javascript Error? | DjiXas | General Discussion | 5 | 02-01-2009 12:54 PM |
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us