Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Subnavigation with Javascript/ rdt_dynamenus?
Hi,
is TXP suitable for this, and how could I best do it?
I have a site here which I once coded with table layout and I changed it to CSS/tableless recently, and now I would like to have it running on TXP. I want to have 2-level navigation with the top level always visible, and the subnavi as dropdown menu like this:
<code>
<ul id=“hauptnavi”>
<li><a href=”#”>Home</a> |</li>
<li><a href=”#” onMouseOver=“showSubmenu(‘cat1’);” onMouseOut=“delayHideSubmenu();”>Category 1</a> |
<ul id=“cat” onMouseOver=“showSubmenu(‘cat1’);” onMouseOut=“delayHideSubmenu();”>
<li><a href=”#”>Sub 1</a></li>
<li><a href=”#”>Sub 2</a></li>
</ul>
</li>
…
</ul>
</code>
Now I tried to use rdt_dynamenus for that, but I don’t see a way to let TXP do this dynamically.
The idea is, for each section, output a list item with a link to the section and build a sub-list within it, with the sublinks (sticky articles), named the section name (for JS reference), which will be shown when hovering over the section link.
The only way I see is to put it into a form hardwired. Or is there another way?
Last edited by BZ (2005-12-05 22:03:35)
Diagnosis:
Version Textpattern: 4.0.3 (r1188)
PHP-Version: 4.4.1
Hosting: all-inkl.com
Offline
Re: Subnavigation with Javascript/ rdt_dynamenus?
you can use a technique such as the suckerfish dropdowns to turn an unordered list into a dynamic menu through css only, and a sprinke of unobtrusive javascript to help internet explorer along the way.
~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~
Offline