javascript - Positioning and showing hidden elements with jquery -
trying implement similar qtip, using table compares features of different things instead, , running issue positioning hidden elements want show on mouseover. appreciated. http://jsfiddle.net/2hmjq/
instead of event.pagey, tried use $(this).position().top , offset of 50 position right below link. see below,
content.on('mouseenter',function(){ //used .on instead of bind var index=content.index(this); if(index<0){ stop(); } else{ content.eq(index).css("font-weight","bold"); display.stop(true,true); display.eq(index).css("top",+ $(this).position().top + 50); //changed display.eq(index).fadein('slow'); } }).on('mouseleave',function(){ //used .on instead of bind var index=content.index(this); display.hide(); content.css("font-weight","normal"); });
Comments
Post a Comment