Tuesday, January 02, 2007

DotNetNuke SCHWINGCSSMENU in IE7

Last year I needed a better menu than the default use by DotNetNuke for a site I was working, and I run into this SCHWINGCSSMENU a DNN Skin Object which is a wrapper for
ADxMenu by Aleksandar Vacic. It was perfectly working with IE6 and Firefox until IE7 comes. I tried to look for an upgrade for the menu but at the time of this writing I can't find one and I needed a quick fix, So upon further research I come up with this solution.

<!--[if gte IE 6]>
<style type="text/css">
@import url(/DesktopModules/SchwingCSSMenu/menuh4ie.css );
body {behavior: url("/DesktopModules/SchwingCSSMenu/adxmenu.htc")}
</style>
<![endif]-->




The reason why SCHWINGCSSMENU no longer works in IE7 is that it only checks for IE6 and below before it inserts the required scripts and styles.

<!--[if lte IE 6]>




If you insert the first code above in your skin or in the page header tags of your page, SCHWINGCSSMENU will work again in IE7.

See Sample

HTH, Happy New Year.