PDA

View Full Version : Help with HV Menu v5.5 and iframe!



metalhaze
04-16-2007, 02:06 PM
1) Script Title: HV Menu v5.5

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/hvmenu/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!

metalhaze
04-16-2007, 02:38 PM
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?

metalhaze
04-16-2007, 02:40 PM
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!)

metalhaze
04-16-2007, 03:11 PM
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!