Guest User

Untitled

a guest
May 24th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. /**
  2. * Bind all hover events
  3. */
  4. function bindHoverEvent() {
  5. $.each(menuHover, function (i, menu) {
  6. $(menu[0]).hover(
  7. function () { $(this).addClass(menu[1]); },
  8. function () { $(this).removeClass(menu[1]); }
  9. ).removeClass('hover-e');
  10. });
  11.  
  12. // hover event for channel description
  13. $('div.result-container').hover(
  14. function () {
  15. $('div.hover-description:visible').css('display', 'none');
  16. $(this).mousemove(function (e) {
  17. $(this).find('div.hover-description').css({
  18. top : (e.pageY + 20) + 'px',
  19. left : e.pageX +'px',
  20. display: 'block'
  21. });
  22. });
  23. },
  24. function () {
  25. $('div.hover-description:visible').css('display', 'none').unbind('mousemove');
  26. }
  27. );
  28. } //bindHoverEvent()
Add Comment
Please, Sign In to add comment