simple dropdown question- can you help me make this move up and down,
Hi, I want to make a very simple drop down menu - that when you click it it slides down and stays like that and when you click it again it slides back up. here is the code I have so far
- <style>
- .block {
- position: fixed;
- background:url('images/DD_BG.png') top left no-repeat;
- width:400px;
- height:320px;
- top: -250px;
- right: 30px;
- }
- </style>
<script>
- $("#NewView").click(function(){
- $(".block").animate({"top": "+=250px"}, "slow");
- }
- );
- </script>
i know this is incredibly simple but I just have no idea how to get any further.