Since this is jQuery, we can easily add that functionality independent of the Glossy Menu script. Just put this script on or linked to your page, anywhere after the jQuery and Glossy Menu scripts (right before the style block if using the 'Entire HTML Source code' from the demo page):
Code:
<script type="text/javascript">
(function($){
$(function(){
$('.submenuheader').click(function(){
var l = this.href;
setTimeout(function(){window.location.href = l;}, 300);
});
});
})(jQuery);
</script>
.submenuheader designates all submenuheader classed links to also switch to that page, regardless of what else they may do. Just make sure that any submenuheaders you treat this way have valid href attributes. If you only want some of the submenuheader's to do this, use/add a separate class, ex:
Code:
<script type="text/javascript">
(function($){
$(function(){
$('.openpageanyway').click(function(){
var l = this.href;
setTimeout(function(){window.location.href = l;}, 300);
});
});
})(jQuery);
</script>
Then in your markup:
Code:
<a class="menuitem submenuheader openpageanyway" href="http://www.cssdrive.com">CSS Drive</a>
Bookmarks