Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...HouseMenu IE7/IE6 differencesHouseMenu IE7/IE6 differences
Previous
 
Next
New Post
1/25/2007 12:32 PM
 
I've implemented a skin that is mostly CSS based on a 3.3.7 DNN install. I've installed the latest housemenu (1.4 beta).  The menu works great in IE7/Firefox/Opera but it falls apart in IE6.  It seems that there is a javascript file that is loaded if the browswer is detected as >IE7 and whatever that javascript file is doing is messing up the layout and the functionality of the menu. The menu is moved right by about half the screen and the menus don't work any longer.

Anyone else run into this? Any suggestions for a fix?
TIA

John
 
New Post
1/25/2007 4:32 PM
 
Yes

We just finished a menu with house menu and due to this error had to re do it all using inventua.

Salar
 
New Post
1/31/2007 6:09 PM
 
There is a very sinple solution for this problem (I use it all the time)
This is what Houdemenu renders if you are using IE 6:
<!--[if lt IE 7]><script language="javascript" type="text/javascript">
<!--
    function doHoverFix() {
        ieHoverFix('HouseMenuNav','False');
    }
    if (window.attachEvent) {window.attachEvent("onload", doHoverFix);}
//-->
</script><![endif]-->

The function is defined in this Javascript file:
/DesktopModules/HouseMenuSkinObject/skinobject.js

The solution is to open this javascript file and strip everything in the function.
An exception is that if you use css hovers on tags other then <A> you will have to correct this by adding a function to the JS file (to correct the fact that IE 5.5 & 6 don't support hovers on non <A> elements)
I created my own script, but you could also leave this part of the scrip in the file and delete the rest.
I put this manipulated JS file in the install zip of the housemenu so I don't have to modify it after installing (since I almost always use Housemenu).
 
New Post
2/26/2007 9:07 PM
 
Can you explain your answer just a bit more please? What exactly would I remove from the skinobject.js file?
Thanks, Ken
 
New Post
2/27/2007 3:40 AM
 
HouseMenu runs the doHoverFix function in the onload for IE 5.5/6.
(I'm using the skinobject, not the module)

<!--[if lt IE 7]><script language="javascript" type="text/javascript">
<!--
    function doHoverFix() {
        ieHoverFix('HouseMenuNav','False');
    }
    if (window.attachEvent) {window.attachEvent("onload", doHoverFix);}
//-->


This calls the ieHoverFix function in the Skinobject.js file that comes with Housemenu.

I stripped out everything since I'm running a lot of JS for the housemenu (also for other browsers), but I think you could also leave the IE hover correct part in and remove the rest:

function ieHoverFix(menuId,adminMode) {
    var oMenu = document.getElementById(menuId);
    oMenu.style.position = "absolute";

    var ieULs = oMenu.getElementsByTagName('ul');
   
    /** IE script to cover <select> elements with <iframe>s **/
    for (j=0; j<ieULs.length; j++) {
        ieULs[j].innerHTML = ('<iframe src=" false;" scrolling="no" frameborder="0"></iframe>' + ieULs[j].innerHTML);
        var oShim = ieULs[j].firstChild;
            //oShim.style.width=(ieULs[j].offsetWidth+2)+"px";
            oShim.style.width=ieULs[j].offsetWidth+"px";
            oShim.style.height=ieULs[j].offsetHeight+"px";
            oShim.style.left = "-1px";
            oShim.style.position = "absolute";
            oShim.style.display = "block";
            oShim.style.zIndex = "0";
            oShim.style.filter = "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
            ieULs[j].style.zIndex = "11111";
    }
    /** IE script to change class on mouseover **/
        var ieLIs = oMenu.getElementsByTagName('li');
        for (var i=0; i<ieLIs.length; i++) if (ieLIs[i]) {
            ieLIs[i].onmouseover=function() {this.className+=" sfhover";}
            ieLIs[i].onmouseout=function() {this.className=this.className.replace(new RegExp("( ?|^)sfhover\\b"), '');}
        }
   
    placeObject(oMenu,adminMode);

}
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...HouseMenu IE7/IE6 differencesHouseMenu IE7/IE6 differences


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out