Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var flag=100;
- $('#button').click(
- function() {
- $('#right').animate({ left: flag }, 'slow', function() {
- $('#button').html(flag?'Close':'Menu');
- });
- flag=flag ? 0 : 100;
- }
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement