So i have a navigation area with tabs of to the side im changing their z-index
so its pops out when hovered on. the first part works fine it pops out.
but i cannot seam to figure out how to get it to revert back to its default level.
Code:
<script type="text/javascript">
var value = parseInt($("#aa1").css("z-index"))
var value2 = parseInt($("#aa1").css("z-index"))
$("#aa1").hover(function() {
if (value == value2) {
$(this).css({'z-index' : (value + 22), 'font-weight' : 'bolder'});
}
else
{ $(this).css({'z-index' : (value), 'font-weight' : 'normal'}) }
});
</script>
the button titled What is the working example
live example is here
http://dev.f-k-n.net/dmtm/gnav.html
Thanks for looking.