|
From: Bill F. <fe...@re...> - 2002-11-29 18:28:11
|
I'd like to replace the coloring of the day blocks while the mouse is
over them in the year view with style sheets. This means replacing
<td width="30" height="30" align="right" valign="top" class="monthreg" onMouseOver=this.style.backgroundColor="#DDDDDD" onMouseOut=this.style.backgroundColor="#FFFFFF" onclick="window.location.href='day.php?cal=School&getdate=20020102'">
with
<td width="30" height="30" align="right" valign="top" class="yearmonthreg" onclick="window.location.href='day.php?cal=School&getdate=20020102'">
and adding the following to the style sheets:
.yearmonthreg { background-color: #FFFFFF; }
.yearmonthreg:hover { background-color: #DDDDDD; }
.yearmonthoff { background-color: #F2F2F2; }
.yearmonthoff:hover { background-color: #DDDDDD; }
They both work the same in Mozilla 1.1; I don't know if all of the
browsers that work with the javascript will also work with the style
sheet. Can people using other browsers visit
http://irg.attlabs.net/~fenner/yeartest.html and see if rolling over
days in January and February work the same?
My main motivation for this is that the w3c HTML validator whinges
mightily about the lack of quotes on the first one, and given that
the color name is quoted I couldn't come up with something that works.
Kind of silly, but it's nicer not to have hundreds of other errors
to wade through when trying to find the real problems.
Thanks,
Bill
|