I am using the jquery.keynav plugin to navigate a web page using five keys. The problem is that I am using a div highlight that directs the user through a web page that is ever in the div (text, etc.), It can be extracted and several operations can be performed, but the highlighter div does not work, but contained in the upper left corner of the web page (any web page). Here is the code. Code has been added to move the marker.
var offset = $('.'+e.onClass).offset(); $('#monitor').html($.htmlClean($('.'+e.onClass).html())); $('#highlighter').animate({'height' : $('.'+e.onClass).height() + 10, 'left' : (offset.left - 6) + 'px', 'top' : (offset.top - 10) + 'px', 'width' : $('.'+e.onClass).width() + 12 }, 300); //$('#highlighter').scrollIntoView(true);
Editor: This seems to be a continuation of the keynav jquery plugin not working
jquery jquery-plugins
Roadrunner May 24 '11 at 10:43 2011-05-24 10:43
source share