Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var x = 150;
- $('.topul1 li').click(function() {
- if (x == 150) {
- x = -100;
- $('.diva1').animate({top: x+"px"},2000);
- alert('Прячем наш блок');
- } else {
- x = 150;
- $('.diva1').animate({top: x+"px"},2000);
- alert('Показываем наш блок');
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement