/ Published in: Other
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$('.ssTooltip').hide(); $('#ssInfoList1 dd').live('mouseover', function(){ $('body').append('<div id="ssTooltip" style="position: absolute; display: none;">\ </div>'); //get the position of the placeholder element var pos = $(this).offset(); var width = $(this).width(); //show the menu directly over the placeholder $("#ssTooltip").css( { "left": (pos.left + 100) + "px", "top":pos.top + "px" } ); $("#ssTooltip").fadeIn('slow'); }); $('#ssInfoList1 dd').live('mouseout', function(){ $('div#ssTooltip').remove(); });