Hi

I really like this script, but I'm not sure to agree on the definition of
unobtrusive.
If I click the exemple " 4. *Unobtrusive, Multi Modal* " with javascript
disabled, then nothing happens.
No javascript => No content      is obtrusive to my opinion.
It probably would suit better to the definition of unobtrusive with a static
link to the content...

olivvv


On 2/8/07, Klaus Hartl <[EMAIL PROTECTED]> wrote:

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/

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to