premier
05-22-2011, 01:32 PM
1) Script Title: Bullet List Accordion Menu
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ddaccordionmenu-bullet.htm
3) Describe problem:
I would like a header on the bullet list accordion menu to link to another page after the menu expands.
I have implemented the following script as per a similar thread intended for the glossy accordion menu.(http://www.dynamicdrive.com/forums/showthread.php?t=33741&page=2)
<script type="text/javascript">
(function($){
$(function(){
$('.menuheader').click(function(){
var l = this.href;
setTimeout(function(){window.location.href = l;}, 300);
});
});
})(jQuery);
</script>
And here is the code from the menu
<ul class="menuheader expandable" href="pnuematicactuators.html">Pnuematic Actuators</ul>
this seems to work fine in IE, how-ever firefox and chrome give an "undefined" error.
probably something stupid i have missed? I am very new to web development and for the love of me cant seem to work out why this wont work.
thanks
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ddaccordionmenu-bullet.htm
3) Describe problem:
I would like a header on the bullet list accordion menu to link to another page after the menu expands.
I have implemented the following script as per a similar thread intended for the glossy accordion menu.(http://www.dynamicdrive.com/forums/showthread.php?t=33741&page=2)
<script type="text/javascript">
(function($){
$(function(){
$('.menuheader').click(function(){
var l = this.href;
setTimeout(function(){window.location.href = l;}, 300);
});
});
})(jQuery);
</script>
And here is the code from the menu
<ul class="menuheader expandable" href="pnuematicactuators.html">Pnuematic Actuators</ul>
this seems to work fine in IE, how-ever firefox and chrome give an "undefined" error.
probably something stupid i have missed? I am very new to web development and for the love of me cant seem to work out why this wont work.
thanks