- Create Account

IFrame Shim Suggestion (stops menu being hidden)

Forums > Cascading Popup Menus: Feedback > IFrame Shim Suggestion (stops menu being hidden)
Author
Message

1) Ash Group: Guests
IP: 203.26.--.--
Hello,

I've been playing with the script, it looks good. Once thing I've noticed is that it gets hidden behind things such as Flash/IFrames/dropdownlist and so on.

I'm using 'FreeStyle Menus v1.0 RC9' in my testing.

If you use an IFrame to 'shim' behind the menu it will allow it to maintain the higher level over things such as dropdown boxes and flash.

a quick, really simple example is:
function setMenuShimSize(Ref, IfrRef)
{
IfrRef.style.width = Ref.offsetWidth;
IfrRef.style.height = Ref.offsetHeight;
IfrRef.style.top = Ref.style.top;
IfrRef.style.left = Ref.style.left;
}

Ref being a reference to your menu container (such as a div), IfrRef being a reference to the IFrame, which would have a style tag similar to:
style="DISPLAY:none;POSITION:absolute;LEFT:0px;TOP:0px"

2) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 220.240.--.--
Check the fsmenu_extras.js file, I'm sure you will be pleasantly suprised with its contents :).

-  Angus.

Post a Reply:

You are not logged in, and will be posting anonymously as a guest. If you want to post using an account, please login at the top of this page.