It's to preload the images that are referenced by the links. Perhaps a
working sample of the jquery example might be more clear:
http://www.solidhex.com/code-samples/jquery/gallery.html

On Apr 28, 7:21 pm, RobG <[email protected]> wrote:
> On Apr 29, 10:25 am, solidhex <[email protected]> wrote:
>
> > Hi all
>
> > I am trying to do something similar with Prototype as compared to this
> > snippet of code down below:
> [...]
> > The idea is, all the linked images pre-load while showing an animated
> > gif. Then, once the images are finished loading, you can click for a
> > standard js image swap. I am struggling just to get the pre-loading
> > portion working though. Here's what I was tinkering with:
>
> It seems you simply want to display the loading gif while waiting for
> the body load event to fire, so why not do exactly that?  Set your
> loading GIF as the first image to display, perhaps absolutely
> positioned in an obvious location, then when the load event occurs,
> remove it.
>
> > document.observe("dom:loaded", function() {
>
> So no loading gif while the html loads, only while the images load?
>
> [...]
>
> > Any suggestions? thanks in advance!
>
> Most (all?) browsers show an animation to indicate that the page is
> still loading, and icons to show images that haven't loaded yet (among
> other things).  Why do they need this?
>
> --
> Rob
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to