livequery help

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

livequery help

AZ-11

My page uses AJAX to retrieve an entire table and dumps it in a div. A
specific column in the table contains links.The code below will be
fired for a mousehover over a table link only after it is fired at
least once by a regular link(not returned by AJAX - not in the table)
that existed on the page. If no other links are hovered over, the
event isn't fired for the links in the table. Please help...


$(document).ready(function(){
$('a')
        .livequery('mouseenter',function(){
     height = $(window).scrollTop() + ($(window).height() / 2) - 150;
    $('body').append("<p id='preview'><img width='255' height='300'
src='"+ this.href +"'/></p>");
    $('#preview')
    .css("top", height + "px")
                        .css("left","145px")
                        .fadeIn("fast");

        })
        .livequery('mouseleave',function() {
               $('#preview').remove();
        });
  });

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "jQuery Plugins" group.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to [hidden email]
For more options, visit this group at http://groups.google.com/group/jquery-plugins?hl=en
-~----------~----~----~----~------~----~------~--~---