Brice Burgess schrieb:
> Klaus Hartl wrote:
>> The first idea I have now is instead of hiding these elements by
>> display: none hide them offscreen (top: -500px, left: -500px) instead.
> Klaus,
>
> Excellent idea! I've included code which looks like:
>
> <!-- optional: image cacheing. Any images contained in this div will be
> loaded offscreen, and thus cached -->
> <style>
> div.imgCache{position:absolute;left:-8000px; top: -8000px;}
> div.imgCache img{display:block;}
> </style>
> <div class="imgCache">
> <img src="inc/busy.gif" />
> <img src="dialog/close.gif" />
> .....
>
> The plugin page has been updated to with the caching fix, as well as
> demonstration on how to use it (exterior of plugin).
>
> http://dev.iceburg.net/jquery/jqModal/?y
>
> Thanks for the suggestion.
Cool! But don't forget to add the type atribute and maybe limit the
media to screen (plus projection for Opera in full screen mode):
<style type="text/css">
@media projection, screen {
div.imgCache { position: absolute; left: -8000px; top: -8000px; }
div.imgCache img { display:block; }
}
@media print {
div.imgCache { display: none; }
}
</style>
Not sure if it's necessary to hide the caching in print...
-- Klaus
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/