Dolphin Tabs Menu - help please

This forum is for extensions for Joomla! version 1.0

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
User avatar
johannak
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Mon Feb 27, 2006 10:09 pm
Contact:

Dolphin Tabs Menu - help please

Post by johannak » Mon Aug 27, 2007 8:03 pm

I'm trying to add extra tabs to the dolphin tabs menu

I've done the following:

edited the php and xml file to add
the correct number of tabs.

Created a new zip file and installed it

Something is going wrong, even the the correct data is being saved to the modules table in the database the links appear in the menu in the wrong order.

Maybe this is a problem with the javascript.

I don't know enough javascript to find the error, it seems to loop. Maybe it only displays submenus. ???

Here is the code:

/***********************************************
* Dolphin Tabs Menu- by JavaScript Kit (http://www.javascriptkit.com)
* This notice must stay intact for usage
* Visit JavaScript Kit at http://www.javascriptkit.com/ for this script and 100s more
***********************************************/

var dolphintabs={
subcontainers:[], last_accessed_tab:null,

revealsubmenu:function(curtabref){
this.hideallsubs()
if (this.last_accessed_tab!=null)
this.last_accessed_tab.className=""
if (curtabref.getAttribute("rel")) //If there's a sub menu defined for this tab item, show it
document.getElementById(curtabref.getAttribute("rel")).style.display="block"
curtabref.className="current"
this.last_accessed_tab=curtabref
},

hideallsubs:function(){
for (var i=0; i<this.subcontainers.length; i++)
document.getElementById(this.subcontainers).style.display="none"
},


init:function(menuId, selectedIndex){
var tabItems=document.getElementById(menuId).getElementsByTagName("a")
for (var i=0; i<tabItems.length; i++){
if (tabItems.getAttribute("rel"))
this.subcontainers[this.subcontainers.length]=tabItems.getAttribute("rel") //store id of submenu div of tab menu item
if (i==selectedIndex){ //if this tab item should be selected by default
tabItems.className="current"
this.revealsubmenu(tabItems)
}
tabItems.onmouseover=function(){
dolphintabs.revealsubmenu(this)
}
} //END FOR LOOP
}

}
Last edited by johannak on Mon Aug 27, 2007 11:24 pm, edited 1 time in total.

 
 
Locked

Return to “Extensions - 1.0.x”