Jump to content

Recommended Posts

Hi

im trying to make a three tiered dropdown menu system using css and some javascript but im having some trouble with getting the third level of the menu

ie

 

1>1.1/1.2/1.3>1.1.1/1.1.2/1.1.3

2>1.1/1.2/1.3>2.1.1/2.1.2/2.1.3

3>3.1/3.2/3.3>3.1.1/3.1.2/3.1.3

etc you get the idea

 

im using a tutorial i got off http://tutorials.alsacreations.com/deroulant/

however it only covers a two tiered menu

 

ive tried adding in another dl inside the dl and dt's inside the dt but im just stuck

 

<dl id="menu">

                <dt onmouseover="javascript:show('smenu1');">Menu 1</dt>

<dd id="smenu1" onmouseover="javascript:show('smenu1');" onmouseout="javascript:show();">

<ul>

<li>Menu 1.1</li>

<li>Menu 1.2</li>

<li>Menu 1.3</li>

 

</ul>

</dd>

</dl>

 

thanks

Link to comment
https://forums.phpfreaks.com/topic/74478-menus-submenus-and-subsubmenus/
Share on other sites

Absolutely! Ignore what the tutorial said about css never having been meant to be used as a dynamic content replacement ... sure, but that was before jscript became so potentially dangerous.

 

Also, forget the cross-browser issue, too. Today there are so many great techniques to make IE behave ... and cssplay.co.uk shows the best of them.

 

 

Just as another thought, I've found suckerfish dropdowns to be the easiest to implement.  Check out the article here: http://www.htmldog.com/articles/suckerfish/dropdowns/

 

It works with different browsers well and it's pretty lightweight.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.