Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. $(document).ready( function animMenu() {
  2. $.each(menuItems, function(key, value) {
  3. $('dt#dMenuItem' + key).mouseenter( function slRotFall() {
  4. deroule('dd#chaine' + key, '190px', 600);
  5. // rockRoll('#block3', -720, '100px', 600);
  6. if (key == current) {
  7. enroule('#block4', 100);
  8. }
  9. // $('#blocdetest').effect("shake", {times:3, distance:1}, 20).effect("shake", {distance:1, times: 5, direction: 'up'},50)
  10. });
  11. $('dt#dMenuItem' + key).mouseleave( function slRotClimb() {
  12. if(current == key) {
  13. fallOnClick(key, '700px');
  14. // rockRoll('#block3', 720, '150px', 600);
  15. $('#blocdetest').effect("shake", {times:3, distance:1}, 20).effect("shake", {distance:1, times: 5, direction: 'up'},50)
  16. } else {
  17. enroule('dd#chaine' + key, 600);
  18. // rockRoll('#block3', 720, '150px', 600);
  19. // $('#blocdetest').effect("shake", {times:3, distance:1}, 20).effect("shake", {distance:1, times: 5, direction: 'up'},50)
  20. }
  21. });
  22. $('dt#dMenuItem' + key).click( function() {
  23. fallOnClick(key, '700px');
  24. // rockRoll('#block3', 720, '150px', 600);
  25. $.each(menuItems, function(ke, va) {
  26. if(ke != current) {
  27. enroule('dd#chaine' + ke, 500);
  28. }
  29. // $('#blocdetest').effect("shake", {times:3, distance:1}, 20).effect("shake", {distance:1, times: 5, direction: 'up'},50)
  30. });
  31. } );
  32. });
  33. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement