I've changed the way i'm going to do this menu and nearly have it working as I want.
However all i need now is for the slider to be hidden on page load and then slide down when open/close is pressed. Here's it so far:
Code:
<body>
<script type="text/javascript">
$(document).ready(function() {
$(".topMenuAction").click( function() {
if ($("#openCloseIdentifier").is(":hidden")) {
$("#slider").animate({
marginTop: "-541px"
}, 400 );
$("#openCloseIdentifier").show();
} else {
$("#slider").animate({
marginTop: "0px"
}, 400 );
$("#openCloseIdentifier").hide();
}
});
});
</script>
<div id="sliderWrap">
<div id="openCloseIdentifier"></div>
<div id="slider">
<div id="sliderContent">
Content here
</div>
<div id="openCloseWrap">
<a href="#" class="topMenuAction" id="topMenuImage">
</a>
</div>
</div>
</div>
<div id="header">
<p></p>
<a href="#" class="topMenuAction">Menu</a>
</div>
</body>
Bookmarks