Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Bind all hover events
- */
- function bindHoverEvent() {
- $.each(menuHover, function (i, menu) {
- $(menu[0]).hover(
- function () { $(this).addClass(menu[1]); },
- function () { $(this).removeClass(menu[1]); }
- ).removeClass('hover-e');
- });
- // hover event for channel description
- $('div.result-container').hover(
- function () {
- $('div.hover-description:visible').css('display', 'none');
- $(this).mousemove(function (e) {
- $(this).find('div.hover-description').css({
- top : (e.pageY + 20) + 'px',
- left : e.pageX +'px',
- display: 'block'
- });
- });
- },
- function () {
- $('div.hover-description:visible').css('display', 'none').unbind('mousemove');
- }
- );
- } //bindHoverEvent()
Add Comment
Please, Sign In to add comment