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"); });     

demo: http://jsfiddle.net/2hmjq/13/


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -