finished
loading. Right now,
you're preloading at the same time the page is loading, which will make
the page feel slow
(especially if you're preloading a lot of images).
Cheers,
Luke
PragueExpat wrote:
Using the method below to preload images, I have a simple question:
The same variable
that = this;
}
img.src = arguments[i];
Then the variable 'that' will point to img, and the event handler will
work as expected.
Luke
PragueExpat wrote:
Luke, this is a great technique - thanks!
As far as my original question, I am still curious to find out the
following:
With the following
-Interface Development
A: ncy1717
E: [EMAIL PROTECTED]
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of PragueExpat
Sent: Tuesday, February 06, 2007 8:50 AM
To: discuss@jquery.com
Subject: Re: [jQuery] image preloading
Thanks for testing
Using the method below to preload images, I have a simple question:
The same variable (in this case 'img') is being used for all preloaded
images.
Img.src is used to tell the browser to make a call to the server to fetch
the image
What if the connection to the server is slow (or the image is
that link in the original post should have been ...has a lot of lt;a
href=#xxxgt; and lt;a name=xxxgt; anchors...
Guess I should preview first :)
PragueExpat wrote:
Has anyone else had the problem of Opera not scrolling when using the
ScrollTo in interface?
(By the way, Stefan and Paul
Has anyone else had the problem of Opera not scrolling when using the
ScrollTo in interface?
(By the way, Stefan and Paul, thanks for your work on interface - I use it a
lot)
My page has a lot of #xxx and anchors and I wanted to use the
ScrollToAnchors method in interface. Since the method
I second the request for a good understanding of what the JQuery object is.
Daniel McBrearty wrote:
ok, I got it. To access the element I need to access $('#id')[0]
What confused me here is that I wasn't really clear what the jquery
object actually is. I have looked through the various
Thanks for the explaination. The reason for my request was my curiosity of
what exactly makes up the JQuery Object. For example, I didn't understand
that [0] is a reference to the first DOM object.
I ran this to try to look at the Object (using 1.04):
---
Please advise: I need to use dimensions.js for the offset function. However,
since this file overwrites JQuery's height function, I can no longer set
heights (-- i.e. $(p).height(20px); --). Will the offset function work
on all browsers if I strip out dimensions' height function? Does anyone