Building upon the techniques I wrote about, WCH is recoded in such manner. By itself, this would not warrant an entry, but I also introduced one change.
Previously, when you first call WCH.Apply("layer", "cont"), it would create an iFrame with an id of WCHhiderlayer. It will also position the iFrame to be the exact size and at exact position (exact…more or less) as the layer is (minding the positioned container). All fine until now.
However, if the layer changes its position or size, its corresponding WCH layer will not. I noticed this bug when testing out ADxMenu behavior when window is resized.
Apply method now has 3rd parameter, bResize. If its value is true, and the iFrame needed already exists, sizing and positioning will be repeated.
this.Apply = function(vLayer, vContainer, bResize) {
...
if ( _bIE55 &&
(oIframe = _Hider(vLayer, vContainer, bResize)) ) {
...
};
...
function _Hider(vLayer, vContainer, bResize) {
...
if ( !oIframe ) {
...
} else if (bResize) {
_SetPos(oIframe, oLayer);
}
...
};
Now you just need to decide when should this parameter be true.





Hi,
could somebody take a look at http://www.edu21.be
at the bottom of the page, you can see what I see:
half the box is shown through my menu (the luna-style one).
I have broke my head over this, so I really hope someone can help
me out.
Thanks,
Koen Calliauw
And oh,
this is latest version of IE, WCH, ADX,…
Koen, I think this is because your nested ULs don’t have IDs, so WCH is using one dummy layer for each menu.
I never experienced this as I’m using the same example HTML code, back from version 1, which had IDs in place from the beggining.
So, give your inner lists some IDs, like InformatieMenu, ContactMenu etc. and let me know if it worked. I will update the corresponding pages about this issue.
Hi,
works like a charm, thank you!
How do I et this to work — do i need to download a .js file? If so where do I et it. I really need this on my site, but, I need an idiots guide I guess.
Dave, take a look at Intro section (linked from the homepage).
That fix only works for IE5.5 right? Here’s what I have for 6:
this.Apply = function(vLayer, vContainer, bResize) {
if (_bSetup) _Setup();
// mod begin
else {
var oLayer = _GetObj(vLayer);
_SetPos(oIframe, oLayer);
}
// mod end
WCH is made for both IE 5.5 and IE6.