javascript - enlarging image on mouse hover without pushing other images using Jquery? -



javascript - enlarging image on mouse hover without pushing other images using Jquery? -

i trying create image enlargement effect when hover mouse on image thumbnail 1 google images using. however, encountering problem enlarged image keeps pushing other image location depending on enlarged image's position.

here's have far:

<style> img{float:left;} </style> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#i1").mouseover(function(){ $("#i1").animate({height:300,width:300},"fast"); }); $("#i1").mouseout(function(){ $("#i1").animate({height:96,width:128},"fast"); }); }); </script> <img id="i1" src="http://www.dpstudiolab.com/weblog/wp-content/uploads/2007/11/display-pop-up-2.thumbnail.jpg" > <img id="i2" src="http://www.dpstudiolab.com/weblog/wp-content/uploads/2007/11/display-pop-up-2.thumbnail.jpg" >

have tried giving higher z-index rest , absolute position? need give absolute position - how remove dom stack , create float there independently without making other elements depend on it.

or, can play around clones did here:

.. removed old url ..

updated more "images", smoother animation, , removed bugs before used image stuck..

http://jsfiddle.net/swader/jktvn/7/

javascript jquery css image

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -