Previous Message
Next Message

whatever:hover fast and easy via Dynamic Properties

Sent by Klaus Hartl on 12 July 2005 10:10


David Hucklesby wrote:
> Is there any way to get IE to understand "focus"?

Hi David,

have you tried:

..whatever {
     background: #808080;
}
..whatever:focus, .whateverfocus {
     background: #eaeaea;
}


..whatever {
     behavior: expression(
         this.onfocus = function() { this.className += ' whateverfocus'; },
         this.onblur = function() { this.className =
this.className.replace('whateverfocus', ''); });
}


I haven't tested that - let us know, if this works!

Regards, Klaus

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: