[thelist] tying events and styles together in JS?

Cake cake at brothercake.com
Wed Feb 19 10:46:01 CST 2003


> Now you say the other browsers can do this in pure css...
> how can I accomplish that so its cross browser?

Well given the same class name:

  tr.hover { background-color:white; }
  tr.hover:hover { background-color:yellow; }

And that'll work in mozilla, opera 7, konqueror and safari.  The
potential for :hover on arbitrary elements is awesome -
http://www.meyerweb.com/eric/css/edge/menus/demo.html :)





James




More information about the thelist mailing list