I've scripted a menu that works fine until the stylised jquery rumbles in to town, whereupon the links seem to be covered.
Here's the jQuery menu with a click option that I tried that didn't work:
Here's the CSS for the menu and the overlaying identifyer:
And here's the HTML:
I've tried the onclick method, but as even the textual link doesn't work, it doesn't either.
I'm stumped!
Here's the jQuery menu with a click option that I tried that didn't work:
Code:
$(function() {
$('#m1').mouseover(function(){
$("#box").animate({left: '0'}, 300);
});
$('#m2').mouseover(function(){
$("#box").animate({left: '120'}, 300);
});
$('#m3').mouseover(function(){
$("#box").animate({left: '248'}, 300);
});
$('#m4').mouseover(function(){
$("#box").animate({left: '362'}, 300);
});
$('#m5').mouseover(function(){
$("#box").animate({left: '476'}, 300);
});
});
$("li").click(function(){
window.location=$(this).find("a").attr("href");
return false;
});
Here's the CSS for the menu and the overlaying identifyer:
Code:
#menu {
float:right;
/*padding: 40px 0 0 0;*/
margin: -120px 0px 0px 0px;
position: relative;
margin-left: 421px;
}
#menu a {
color:#000000;
padding:0 0 0 50px;
font-size:18px;
z-index: 1;
}
#menu ul {
padding:0px;
margin:0px;
}
#menu ul li {
display:inline;
padding:0px;
margin:0px;
}
#menu li:hover a {
color:#F05B00;
}
#box{
background-image:url(images/eazyspace_menu.png);
width: 120px;
height: 97px;
margin: -62px 0px 0px 10px;
position: absolute;
z-index: 10;
}
#box a{
pointer: hand;
}
And here's the HTML:
Code:
<div id="menu" style="border: 0px solid #3333CC;">
<ul>
<li><a href="index.html" id="m1">home</a></li>
<li><a href="workshops.html" id="m2">workshops</a></li>
<li><a href="storage.html" id="m3">storage</a></li>
<li><a href="projects.html" id="m4">projects</a></li>
<li><a href="contact.php" id="m5">contact</a></li>
</ul>
<div id="box"></div>
</div>
I've tried the onclick method, but as even the textual link doesn't work, it doesn't either.
I'm stumped!