Here is my current code: $('.position_info').hover( function(e) { var target = $(e.target); target.bind('keydown', 'space', function(){ target.children('strong').toggle(); }); }, function(e) { var target = $(e.target); target.unbind('keydown', 'space'); } );
On Dec 17, 2:27 pm, sshefer <shai.she...@gmail.com> wrote: > Thanks Brian but doesn't seem to work... > > What I am trying to do is create a "quick preview" effect like Mac > Leopard 10.5 has - where pressing the spacebar while selecting > something give you a quick preview of it. > > The way I thought I could do this is by the code above, where while I > was hovered over a specific element pressing the spacebar would create > the same effect using fancy zoom (http://orderedlist.com/demos/fancy- > zoom-jquery) and a hidden div inside the parent element. > > Do you think there is a cleaner / better way to do this? The hover > doesn't seem to catch and is extremely temperamental. I'm now getting > "A.triggersMap[F] is undefined" from the hotkeys js file. > > Thanks again for all your help. > > On Dec 17, 1:31 pm, brian <bally.z...@gmail.com> wrote: > > > On Wed, Dec 17, 2008 at 1:16 PM, sshefer <shai.she...@gmail.com> wrote: > > > > Hey Brian - > > > > Thanks for the response. I've tried that but get "target.bind is not > > > a function" in Firebug. > > > > Any other ideas? > > > My bad. Try: var target = $(e.target);