hiding menu item in dreamweaver flyout menu

Discussion in 'Javascript' started by SpamProof, Jan 25, 2004.

  1. SpamProof

    SpamProof Guest

    The follwing code in SECTION A comes from a flyout menu that was
    created in Dreamweaver.

    I added a div tag to one of the items in there because I would like to
    control when it is displayed. <div id="RenewCoverage"> is what I
    added.

    It appears that I can't simply use a function like in SECTION B
    because of the way the dynamic menu is called.

    Any body familiar with dreamweaver flyouts and know how I can control
    which menu items are displayed based on values i will assign in hidden
    textboxes?

    Any help would be appreciated.

    7078895

    /ra

    SECTION A
    ---------------------------------
    <div id="p7TBtrig10" style="position:absolute; left: 0px; top: 66px;
    width: 110px; z-index: 500; visibility: visible"><a
    href="javascript:;" onMouseOver="P7_trigMM2('p7TBim10')"><img
    src="../images/Nav01.gif" alt="menu 1" name="p7TBim10" id="p7TBim10"
    width="110" height="21" border="0"></a></div>
    <div id="p7TBsub10" class="p7tbsub" style="position:absolute; left:
    108px; top: 61px; width: 166px; z-index: 400; visibility: hidden">
    <p><a href="../about/index.asp">Who is AANA Insurance?</a></p>
    <p><a href="../about/index.asp">Quarterly Agency Update</a></p>
    <p><a href="../about/index.asp">Other Insurance</a></p>
    <p><a href="../about/contact.asp">Contact Information</a></p>
    </div>
    <div id="p7TBtrig20" style="position:absolute; left: 0px; top: 87px;
    width: 110px; z-index: 500; visibility: visible"><a
    href="javascript:;" onMouseOver="P7_trigMM2('p7TBim20')"><img
    src="../images/Nav02.gif" alt="menu 2" name="p7TBim20" id="p7TBim20"
    width="110" height="21" border="0"></a></div>
    <div id="p7TBsub20" class="p7tbsub" style="position:absolute; left:
    108px; top: 77px; width: 164px; z-index: 400; visibility: hidden">
    <p><a href="../webforms/policyinformation.aspx?Function=PolicyInformation">Policy
    Information</a></p>


    <div id="RenewCoverage">
    <p><a href="../webforms/applicantinformation.aspx?Function=RenewCoverage">Renew
    Coverage</a></p>
    </div>

    <p><a href="../webforms/policyrenewalresults.aspx?Function=PayforRenewal">Pay
    for Renewal</a></p>
    <p><a href="#">View Policy Documents</a></p>
    <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a
    href="../webforms/policydocuments.aspx?Function=ViewCurrentPolicyDocuments">Current
    Policy</a></p>
    <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a
    href="../webforms/policydocuments.aspx?Function=ViewRenewalPolicyDocuments">Renewal
    Policy</a></p>
    <p><a href="#">Make a Change</a></p>
    <p><a href="#">Report a Claim</a></p>
    </div>
    ---------------------------------------------------------------------
    SECTION B
    --------------------------
    function hideRenew()
    {
    var renewTextboxValue = document.getElementById('txtRenew').value;
    var renewMenuItem = document.getElementById('RenewCoverage');

    if (renewTextboxValue == 'hide') {
    renewMenuItem.style.display = 'none'}
    else {
    renewMenuItem.style.display = '';
    }
    }
    SpamProof, Jan 25, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. news.west.cox.net

    Select menus above flyout menus? help?

    news.west.cox.net, Dec 8, 2004, in forum: HTML
    Replies:
    8
    Views:
    778
  2. Jason
    Replies:
    25
    Views:
    8,464
    Toby Inkster
    Jan 9, 2005
  3. Gordon3d

    Vertical Navigation Flyout

    Gordon3d, Aug 18, 2007, in forum: HTML
    Replies:
    1
    Views:
    591
    Nick Theodorakis
    Aug 18, 2007
  4. adjusted

    flyout menu help needed

    adjusted, May 19, 2009, in forum: HTML
    Replies:
    2
    Views:
    436
    Jonathan N. Little
    May 19, 2009
  5. MrPhilHill

    Flyout navigation script help

    MrPhilHill, Aug 19, 2003, in forum: Javascript
    Replies:
    0
    Views:
    79
    MrPhilHill
    Aug 19, 2003
Loading...

Share This Page