Hi Lucas
Please see my code below
Chunks
mega-outerTpl=
<ul id="topnav">[[+wf.wrapper]]</ul>
mega-innerTpl=
mega-categoryFoldersTpl =
<li><a href="[[+wf.link]]" class="[[+wf.description]]" title="[[+wf.title]]">[[+wf.linktext]</a> <div class="sub"> [[+wf.wrapper]]</div></li>
mega-parentRowTpl =
<li><h2><a href="[[+wf.link]]" title="[[+wf.title]]">[[+wf.linktext]]</a></h2></li>[[+wf.wrapper]]
mega-innerRowTpl =
<ul><li><h2><a href="[[+wf.link]]" class="[[+wf.description]]" title="[[+wf.title]]">[[+wf.linktext]]</a></h2></li></ul>
mega-rowTpl =
<li><a href="[[+wf.link]]" class="[[+wf.description]]" title="[[+wf.title]]">[[+wf.linktext]]</a></li>
Call to JS =
<link rel="stylesheet" type="text/css" media="screen" href="assets/css/nav.css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="assets/js/jquery.hoverIntent.minified.js"></script>
<script type="text/javascript">
$(document).ready(function() {
function megaHoverOver(){
$(this).find(".sub").stop().fadeTo('fast', 1).show();
//Calculate width of all ul's
(function($) {
jQuery.fn.calcSubWidth = function() {
rowWidth = 0;
noColumns = 4;
//Calculate row
$(this).find("ul").each(function() {
maxWidth = ($(this).width() * noColumns);
rowWidth += $(this).width();
if(rowWidth > maxWidth) {
rowWidth = maxWidth;
}
});
};
})(jQuery);
if ( $(this).find(".row").length > 0 ) { //If row exists...
var biggestRow = 0;
//Calculate each row
$(this).find(".row").each(function() {
$(this).calcSubWidth();
//Find biggest row
if(rowWidth > biggestRow) {
biggestRow = rowWidth;
}
});
//Set width
$(this).find(".sub").css({'width' :biggestRow});
$(this).find(".row:last").css({'margin':'0'});
} else { //If row does not exist...
$(this).calcSubWidth();
//Set Width
$(this).find(".sub").css({'width' : rowWidth});
}
}
function megaHoverOut(){
$(this).find(".sub").stop().fadeTo('fast', 0, function() {
$(this).hide();
});
}
var config = {
sensitivity: 2, // number = sensitivity threshold (must be 1 or higher)
interval: 100, // number = milliseconds for onMouseOver polling interval
over: megaHoverOver, // function = onMouseOver callback (REQUIRED)
timeout: 500, // number = milliseconds delay before onMouseOut
out: megaHoverOut // function = onMouseOut callback (REQUIRED)
};
$("ul#topnav li .sub").css({'opacity':'0'});
$("ul#topnav li").hoverIntent(config);
});
</script>
Wayfinder Call =
[[Wayfinder? &startId=`0` &level=`3` &outerTpl=`mega-outerTpl` &innerTpl=`mega-innerTpl` &categoryFoldersTpl=`mega-categoryFoldersTpl` $parentRowTpl=`mega-parentRowTpl` &innerRowTpl=`mega-innerRowTpl` &rowTpl=`mega-rowTpl` &parentRowTpl=`mega-parentRowTpl` &innerClass=`sub`]]
nav.CSS =
@charset "utf-8";
/* CSS Document */
/* navigation */
#topnav {
margin: 0;
padding: 0 0 0 2px;
float:left;
width: 100%;
list-style: none;
font-size: 12px;
background-image:url(/assets/img/navBG.png);
height: 47px;
}
ul#topnav li {
float: left;
margin: 0;
padding: 0;
position: relative; /*--Important--*/
border-right: 1px solid #DDDDDD;
}
ul#topnav li a {
float: left;
line-height: 40px;
padding-left: 8px;
padding: 0 20px;
height: 42px;
color: #373737;
text-decoration:none;
margin-top:3px;
}
ul#topnav li a.sub {
}
ul#topnav li a:hover {
color:#F90;
background-color:#FFF;
}
ul#topnav a.home {
background: url(file:///C|/Users/Office%201/Documents/nav_home.png) no-repeat;
width: 78px;
color: #333;
}
ul#topnav a.products {
background: url(file:///C|/Users/Office%201/Documents/nav_products.png) no-repeat;
width: 117px;
}
ul#topnav a.sale {
background: url(file:///C|/Users/Office%201/Documents/nav_sale.png) no-repeat;
width: 124px;
}
ul#topnav a.community {
background: url(file:///C|/Users/Office%201/Documents/nav_community.png) no-repeat;
width: 124px;
}
ul#topnav a.store {
background: url(file:///C|/Users/Office%201/Documents/nav_store.png) no-repeat;
width: 141px;
}
ul#topnav li .sub {
position: absolute; /*--Important--*/
top: 46px; left: 0;
z-index: 99999;
background: #FFF; /*--Background gradient--*/
padding: 20px 20px 20px;
float: left;
/*--Bottom right rounded corner--*/
-moz-border-radius-bottomright: 5px;
-khtml-border-radius-bottomright: 5px;
-webkit-border-bottom-right-radius: 5px;
/*--Bottom left rounded corner--*/
-moz-border-radius-bottomleft: 5px;
-khtml-border-radius-bottomleft: 5px;
-webkit-border-bottom-left-radius: 5px;
display: none; /*--Hidden for those with js turned off--*/
border:#dddddd solid 1px;
}
ul#topnav li .row { /*--If needed to break out into rows--*/
clear: both;
float: left;
width: 100%;
margin-bottom: 10px;
}
ul#topnav li .sub ul{
list-style: none;
margin: 0; padding: 0;
width: 150px;
float: left;
}
ul#topnav .sub ul li {
width: 100%; /*--Override parent list item--*/
color: #fff;
}
ul#topnav .sub ul li h2 { /*--Sub nav heading style--*/
padding: 0; margin: 0;
font-size: 1.3em;
font-weight: normal;
}
ul#topnav .sub ul li h2 a { /*--Sub nav heading link style--*/
padding-bottom: 15px;
background-image: none;
color: #333333;
line-height: 15px;
}
ul#topnav .sub ul li a {
float: none;
text-indent: 0; /*--Override text-indent from parent list item--*/
height: auto; /*--Override height from parent list item--*/
background: url(file:///C|/Users/Office%201/Documents/navlist_arrow.png) no-repeat 5px 12px;
padding: 7px 5px 7px 15px;
display: block;
text-decoration: none;
color: #039;
line-height:5px;
}
ul#topnav .sub ul li a:hover {
color: #ddd;
background-position: 5px 12px ;/*--Override background position--*/
}
.inner {
float: left;
list-style: none outside none;
margin: 0;
padding: 0;
width: 150px;
}
*/
/* siteSelect */
#siteSelect {
width:400px;
float:right;
text-indent: -9999px;
}
#hireSite {
background: url(/assets/img/live-link.png) no-repeat;
width:160px;
height: 62px;
}
#hireSite a:hover {
background: url(/assets/img/live-link.png) no-repeat 0px -62px;
}
#instSite {
background: url(/assets/img/install-link.png) no-repeat;
width:160px;
height: 62px;
}
#siteSelect li {float:left; list-style:none; display:inline;}
#siteSelect li, #siteSelect a {
height:62px;
display:block;
}
I really appreciate you looking over this.
I can give you a log in to the site if you require.
Darren