Results 1 to 2 of 2

Thread: Mouseover conditional submenucontent

  1. #1
    Join Date
    Jul 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Mouseover conditional submenucontent

    1) Script Title: Mouseover Tabs Menu

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...seovertabs.htm

    3) Describe problem: I was going over the example for mouseover menu. I have couple of questions regarding configuring submenu.

    <div id="mysubmenuarea" class="tabsmenucontentclass">

    <!--1st link within submenu container should point to the external submenu contents file-->
    <a href="submenucontents.htm" style="visibility:hidden">Sub Menu contents</a>

    </div>

    1) Can't we put the div section here in the same file instead of calling external files submenucontents.htm

    2) If I need to add submenu based on certain conditions then .htm file will not be helpful.

    <xsl:if test="condition">
    <li>
    <a href="#">submenuname</a>
    </li>
    </xsl:if>


    Please let me know if someone guide me here.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Hmm there's no quick way to do 1) unfortunately. Even if the script were modified so both the top level menu and its sub contents are contained in an external file, you still need to define an empty DIV on the target page in which the entire menu contents is added to then, as the script does not know where on the page you want the menu otherwise.

    For 2), the only way would be to dynamically generate submenucontents.htm on the server end based on the desired conditions. The final HTML within this file would then reflect the final output you want for your sub menu. How exactly to do this really depends on what server side technologies your server supports and your knowledge of them.
    DD Admin

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •