I finally finished it ....

 // detect whether images are on
// and change styles accordingly
jQuery.imagesOn = function(){

     $('<img src="' + '/images/bgimage.jpg' + '#' + Math.random() + '"/
>' ).load(function() {
          $('#noimages').attr("href", '/styles/gotimages.css');
          $('.imagecheck').html('On');
     });

     if ( $('.imagecheck').val() != 'On' ) {
          $('#noimages').attr("href", '/styles/imagefree.css');
     }
}

(hack:  there is a hidden paragraph to hold the 'variable')

Cherry
http://jquery.cherryaustin.com


Reply via email to