On Wed, Sep 23, 2009 at 9:46 AM, yy <[email protected]> wrote:
>
> 2009/9/23 uriel <[email protected]>:
> On the hg repo there is a TODO file where the second item is to add
> previews of the pages as tooltips over the prev and next links.

Ah, should have checked that :)

> I
> think I finally found a good way to do it with only css[1]. My plan
> was to use thumbnail images for this but, if I'm not wrong, I could
> use the preview images (the bigger ones) and then they would be
> automatically cached.

Well, I'm not sure what exactly you mean, would you put the whole
image image in the tooltip? It seems a bit overkill. And on the other
hand, I'm not sure the image would be loaded until the tooltip is
triggered (I have nil experience with html tooltips).


> Now I only have to find the way to put that at
> the end so that it doesn't affect the rendering of the actual page.
> Would this be ok or did you have any other thing on mind? I'm
> completely ignorant about how caching works on browsers... there could
> be some better trick.

I think there are two typical ways: using 0px (or 1px?) img tags
directly (one can control when they are loaded by putting them at the
end of the document). Or using JavaScript triggered by the onload
event:: http://articles.techrepublic.com.com/5100-10878_11-5214317.html
In this case the JS way is a bit less of a hack, but it is JS :)) I'd
be cool with the non-visible img tags but I have no strong preference.

>
> If everything goes ok the new flip version should be ready for the
> next week (it depends more on my free time than anything else)

Nice, keep up the great work!

Peace

uriel


>
> [1] http://jlhaslip.trap17.com/samples/tooltips/index.html
>
> --
> - yiyus || JGL . 4l77.com
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"werc" 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/werc9?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to