Eyveneena
03-31-2009, 05:23 AM
Just hoping someone might guide me on this script..after they are resized, the click function on the images will not work so that the image can be prepended to another div. It doesnt work in IE.8 nor Firefox. Other than that...the images resize great and will accept animation:
[CODE]
$("#thumb> img").load(function(){
$("#thumb> img").each(function(i){
if($(this).width() > $(this).height())
{
$(this).animate({width:"100%",height:"auto"}).fadeIn("8000");
}else{
$("#thumb> img").animate({height:"100%",width:"auto"}).fadeIn("8000");}
});
});
$("#thumb>img").click(function(){
$(this).clone().prependTo("#left-container");
});
[CODE]
thank you :),
Eyveneena
[CODE]
$("#thumb> img").load(function(){
$("#thumb> img").each(function(i){
if($(this).width() > $(this).height())
{
$(this).animate({width:"100%",height:"auto"}).fadeIn("8000");
}else{
$("#thumb> img").animate({height:"100%",width:"auto"}).fadeIn("8000");}
});
});
$("#thumb>img").click(function(){
$(this).clone().prependTo("#left-container");
});
[CODE]
thank you :),
Eyveneena