IE has notorious problems with pseudo-classes attached to classes. If  
you want to achieve this effect:

function emulateActive() {

     var inputs = document.getElementsByTagName('input');

     for(var i=0; i < inputs.length; i++) {

     var input = inputs[i];

     if(input.className == 'button') {

        input.onclick = function() {

              var img = 'url(button.png)';

               this.style.backgroundImage = img;
               this.style.backgroundPosition = '0 -30px';

        }

    }

     }
}

Test this script with conditional comments in IE and see if it works.   
let me know. bye

http://www.css-zibaldone.com
http://www.css-zibaldone.com/test/  (English)
http://www.css-zibaldone.com/articles/  (English)
http://onwebdev.blogspot.com/  (English)








______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to