New here and noticed that you guys have some great solutions. Convinced me to sign up and join. Maybe I would be able to help out as well.
I am using the Mouseover Tabs Menu, I attached the .js file below.
It works great on all browsers except of course for IE.
Whenever I run the script I get the small annoying yellow error at the bottom indicating the page loaded but with errors.
Line:21
Error: Object doesn't support this property or method
Here is the block of code. Line 21 begins with if (/^gotsubmenu/i.test(relattr)
Any clue on what do I need to do in order to solve this?
Thanks in advance!
Code:initializetabs:function(tabsmenuid, submenuid, tabcontentsLength, disappearBool){ var tabmenu=document.getElementById(tabsmenuid) var tablinks=tabmenu.getElementsByTagName("a") var submenu=document.getElementById(submenuid) var selected=null, tablinks_count=0 for (var i=0; i<tablinks.length; i++){ tablinks[i]._parentid=tabsmenuid var relattr=tablinks[i].getAttribute("rel") if (/^gotsubmenu/i.test(relattr) && tablinks_count<tabcontentsLength){ //if "rel" attribute starts with="gotsubmenu" and a tab content exists for this tab based on its order tablinks[i]._pos=tablinks_count //remember position of this tab relative to its active peers if (relattr.indexOf("[selected]")!=-1){ selected=tablinks_count } this.addEvent(tablinks[i], function(){ var tabsmenutree=mouseovertabsmenu.tabsmenutree[this._parentid] mouseovertabsmenu.clearhidetimer(tabsmenutree.submenu.hidetimer) mouseovertabsmenu.showsubmenu(this) }, "mouseover") tablinks_count++ this.tabsmenutree[tabsmenuid].tabs.push(tablinks[i]) //add this tab to tab collection } else{ //else for regular tab links (with no "rel" attribute) this.addEvent(tablinks[i], function(){ mouseovertabsmenu.hidesubmenu(this._parentid) }, "mouseover") } }




Reply With Quote


Bookmarks