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 |
From: Chad <ch...@ch...> - 2002-11-29 19:35:22
|
Doens't work for me on IE Mac. -C On Friday, November 29, 2002, at 10:27 AM, Bill Fenner wrote: > > 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 > > > ------------------------------------------------------- > This SF.net email is sponsored by: Get the new Palm Tungsten T > handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > _______________________________________________ > Phpicalendar-devel mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpicalendar-devel |
From: blaine <la...@us...> - 2002-11-29 19:54:56
|
Which version of IE are you using? I'm using IE5.2/OS X and it works fine. I'm rather partial to doing it in CSS, because it makes it that much easier to customize the appearance. Themes and templates are great, but CSS facilitates making small changes for people who don't have the skill or desire to go poking around in the code for javascript. b. On Friday, Nov 29, 2002, at 11:35 America/Vancouver, Chad wrote: > Doens't work for me on IE Mac. > > -C |
From: Chad <ch...@ch...> - 2002-11-29 20:18:47
|
Doesnt work for me on IE 5.2.2 or Chimera 0.6. Tested on 3 different Macs all running 10.2.2. It only works for me in Mozilla 1.2. With some people working on a templating system, I don't really see a need for us to move to 100% CSS, when 95% supports pretty much everyone. -C On Friday, November 29, 2002, at 11:54 AM, blaine wrote: > Which version of IE are you using? I'm using IE5.2/OS X and it works > fine. > > I'm rather partial to doing it in CSS, because it makes it that much > easier to customize the appearance. Themes and templates are great, > but CSS facilitates making small changes for people who don't have the > skill or desire to go poking around in the code for javascript. > > b. > > On Friday, Nov 29, 2002, at 11:35 America/Vancouver, Chad wrote: > >> Doens't work for me on IE Mac. >> >> -C > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Get the new Palm Tungsten T > handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > _______________________________________________ > Phpicalendar-devel mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpicalendar-devel |