Hello! There is a code:
HTML:
div id="cate"
CSS:
#cate { position: absolute; left: 205px; top: 63.7px; width: 100px; height: 100px; background: url('images/cate2.png') no-repeat; }
Js:
$(document).ready(function(){ $("div#cate").click(function() { $(this).animate({ top: '150px' }); }); });
Everything is good, but as you write in css 'z-index: -999'
js
functions disappear. How to be? Help!