[jQuery] Re: fadein thumbnails when loaded

2009-04-29 Thread Rick Faircloth
Thanks for the explanation, Kevin! Rick On Wed, Apr 29, 2009 at 12:58 PM, Kevin Dalman wrote: > > Hi Rick, > > Karl's suggestion seems the most elegant (assuming it works OK). > > Here is some sample code for what he is suggesting > > -- in HEAD or a stylesheet... > body.js #media-gallery ul

[jQuery] Re: fadein thumbnails when loaded

2009-04-29 Thread Kevin Dalman
Here is a variation on Eric's idea. But in this example, instead of writing the CSS rule via Javascript, write a rule to *negate it* inside a noscript tag. -- in HEAD or a stylesheet... #media-gallery ul li img { /* opacity *may* work better than display:none */ opacity: 0.01; filter: al

[jQuery] Re: fadein thumbnails when loaded

2009-04-29 Thread Kevin Dalman
Hi Rick, Karl's suggestion seems the most elegant (assuming it works OK). Here is some sample code for what he is suggesting -- in HEAD or a stylesheet... body.js #media-gallery ul li img { /* opacity *may* work better than display:none */ opacity: 0.01; filter: alpha(opacity=1); }

[jQuery] Re: fadein thumbnails when loaded

2009-04-28 Thread Eric Garside
I don't know that would work, Karl. It would have to be either at the bottom of the page, as the elements wouldn't be in the dom yet if it was just up top. But, that did inspire an idea. If you want to keep the compliance, you could try the following: Test var css = document.create

[jQuery] Re: fadein thumbnails when loaded

2009-04-28 Thread Rick Faircloth
>> In the you can do this: >> document.documentElement.className = 'js'; >> Then you can set styles for elements as descendants of .js. Karl...will you explain a little more about what this means and perhaps give an example of its implementation? Or is there a blog or tutorial somewhere? Thank

[jQuery] Re: fadein thumbnails when loaded

2009-04-27 Thread Karl Swedberg
On Apr 27, 2009, at 8:05 PM, Eric Garside wrote: A) the images very quickly load then disapper. I dont want to hide the images in css incase people have js diasbled. You're out of luck, then. DOMReady will trigger after the images and html has loaded, so unless you hide them with CSS, there

[jQuery] Re: fadein thumbnails when loaded

2009-04-27 Thread David
Ok... i sorted the initial problems out, i load the css that hides the elements using javscript: document.write(''); But i still think it is not dealing with the images on a per load basis but on whole, any ide

[jQuery] Re: fadein thumbnails when loaded

2009-04-27 Thread David
Eric, thanks for the input. I think (not sure) the way i have the code done it waits for all images to load before fading them in, as opposed to fading the individual image in when loaded. I found this: http://clagnut.com/sandbox/imagefades/ Which seems to do eveyrhing i want including the imag

[jQuery] Re: fadein thumbnails when loaded

2009-04-27 Thread Eric Garside
> A) the images very quickly load then disapper. I dont want to hide the images > in css incase people have js diasbled. You're out of luck, then. DOMReady will trigger after the images and html has loaded, so unless you hide them with CSS, there's no way to prevent the flash, afaik. > B) all th