Results 1 to 4 of 4

Thread: Help with HV Menu v5.5 and iframe!

  1. #1
    Join Date
    Apr 2007
    Location
    Mass.
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Help with HV Menu v5.5 and iframe!

    1) Script Title: HV Menu v5.5

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

    3) Describe problem: I am trying to load the links into an iframe with this menu. I have an iframe in a DIV tag and I want all the navigation to be on one page. So that the menu is always present and the content loads into the main iframe area.

    Right now, I don't see an area to set the "target" of the html documents being linked to. Is there anyway to change this? thanks!

  2. #2
    Join Date
    Apr 2007
    Location
    Mass.
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I solved this problem by using the following code:

    Menu2_1=new Array("EHR Newsleter","javascript:main.document.location.href='http://myLink';","",5,20,150);

    However, once I click this link and it loads into the iFrame, the menu does not clear.....Does anyone know how to clear the menu once I load the html page into the iframe?

  3. #3
    Join Date
    Apr 2007
    Location
    Mass.
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I solved this problem by using the following code:

    Menu2_1=new Array("EHR Newsleter","javascript:main.document.location.href='http://myLink';","",5,20,150);

    Where "main" is the name of my iFrame....

    However, once I click this link and it loads into the iFrame, the menu does not clear.....Does anyone know how to clear the menu once I load the html page into the iframe?

    (sorry for the double post!)

  4. #4
    Join Date
    Apr 2007
    Location
    Mass.
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Nevermind.....I figured this out too.

    I duplicated the "CloseMenu()" function.

    I then named it "CloseMenuNew()".

    Added a variable to the exmplmenu_var.js file which I named DissapearDelayNew and gave it a value of 1.

    I then added a "onmouseup" event to this code:

    if(ExpYes){this.onselectstart=CnclSlct;
    this.onmouseover=RcrsLvl==1&&UnfoldsOnClick?OpenMenuClick:OpenMenu;
    this.onmouseout=CloseMenu;
    this.onclick=RcrsLvl==1&&UnfoldsOnClick&&eval(WhatMenu+'[3]')?OpenMenu:GoTo; this.onmouseup=CloseMenuNew}

    And now it works!

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
  •