Hi. I'm still struggling with this! It's supposed to load an
alternative stylesheet if images are OFF. I'm trying a zillion
different methods, but they only seem to 'half' work :(
Here's my latest attempt; I tried a ternary as a last resort ;) I
don't get a code error, but still only the 'images on' part of the
sequence works.

// provide for users without images
(($( '<img src="' + '/images/bgimage.jpg' + '#' + Math.random() + '"/
>' ).load)?($('#imgonoff').attr("href", '/styles/gotimages.css')):($
('#imgonoff').attr("href", '/styles/imagefree.css')));

For other failed attempts, see posts to this group;
http://tinyurl.com/2mnedh
http://tinyurl.com/2l5cc7

Thanks :/
Cherry
http://jquery.cherryaustin.com

Reply via email to