[TYPO3-hci] Quick Question: Pull-down menu library?

Tapio Markula tapio.markula at atwebteam.com
Sat Sep 16 16:29:01 CEST 2006


Erik Svendsen kirjoitti:
>> Tabbed menus combined with use of shortcuts would be my prefered
>> choice.
>>
>> This has also a logic compared to the flexform, who also are some kind
>> of tabbed menus.
>>
> Patrick is thinking about using tabbed menus for a new install tool. Why 
> not use the same menu logic everywhere.
> 
> WBR,
> Erik Svendsen
> www.linnearad.no
> 
> 
I have weird problem. Onclick-mode in my version doesn't work
in Firefox (works fine in MS IE 6.0). If someone could give a glue,
I would be deligted.



function toggleUL(id) {
	// Toggle display mode on UL tags (c) 2005 Peter Klein.
	el = document.getElementById(id);
	siblings = el.parentNode.parentNode.childNodes;
	for (i=0;i<siblings.length;i++) {
		if (siblings[i].nodeName=="LI" && siblings[i].lastChild.nodeName=="UL") {
			node = siblings[i].lastChild;		
			if(node.parentNode.firstChild.nodeName=="DIV")
				node.parentNode.firstChild.className = (node==el)?"tabact":"tab";
			if(node.nodeName=="UL")
				node.className = (node==el)?"secondary active":"secondary noactive";				
			}
		}
	}

That should change classe in following kind of HTML-codes:

		<li class="primary tab2 off"><div class="tab"><table class="tabTable" 
cellspacing="0" cellpadding="0" border="0"><tr><td class="left"><div 
style="width:8px">&nbsp;</div></td><td class="middle"><a href="#" 
onclick="toggleUL('file_tab');this.blur();return 
false;">File</a></td><td class="right"><div 
style="width:8px">&nbsp;</div></td></tr></table></div>
			
			
			<ul class="secondary noactive" id="file_tab">		

Class changes for DIV and UL don't work in Firefox.
Should be because work in Peter's version. Maybe some other script	 
interferring Firefox?	



More information about the TYPO3-team-hci mailing list