$img1.load(function()
{
$(this).each(function()
{
if($(this).height() > $h) $(this).height($h);
if(check if it the item you want to clone){
$tbl1.clone().prependTo($td2);
}
});
});
Read jQuery HowTo Resource - h
I mean, I want to clone the image to another place with the image
resize finished, for example
I load three images by ajax
1.jpg height 200px
2.jpg height 350px
3.jpg height 400px
and my restriction is 180, therefore, images will resize to my rule
successfully, and I want to clone it in another
Didn't get exactly what you meant, but if you want to do something
when loading has finished then put it into the load() function.
.load(function(){
// your code
});
Read jQuery HowTo Resource - http://jquery-howto.blogspot.com
On Sat, Jan 17, 2009 at 9:53 PM, David .Wu wrote:
>
> I g
I got one more question, actually I need to clone the result of $td1
into another $td2, how to do it after the load function "finish".
$img1.load(function()
{
$(this).each(function()
{
if($(this).height() > $h) $(this).height
I got one more question, actually I need to clone the result of $td1
into another $td2, how to do it after the load function "finish".
$img1.load(function()
{
$(this).each(function()
{
if($(this).height() > $h) $(this).height
aha, I understand, it's work, thanks :)
$img1.load(function()
{
$(this).each(function()
{
if($(this).height() > $h) $(this).height($h);
});
});
On 1月17日, 下午9時21分, jQuery Lover wrote:
> If the image is not loaded by the time you call .height() function it
please tell me more tips, I don't really understand what to do.
On 1月17日, 下午9時21分, jQuery Lover wrote:
> If the image is not loaded by the time you call .height() function it
> returns 0. Since your code is run right after the ajax request is
> completed browser has no idea what is the size of t
If the image is not loaded by the time you call .height() function it
returns 0. Since your code is run right after the ajax request is
completed browser has no idea what is the size of that images.
Tip: You could bind a .load() event to your images and change the size
of that particular image on
8 matches
Mail list logo