You could simplify this a lot (and make your link appearance/
disappearance happen) in one stroke.
CSS:
td.day.over {
background-color:#ddd;
}
td.day span {
display: none;
}
td.day.over span {
display: inline;
}
JS:
var cells = $('calendar').select('td.day');
cells.inv
IE.
IE doesn't support the :hover pseudoclass on anything except links.
Walter
On May 9, 2009, at 8:29 AM, Alexander Bock wrote:
> What keeps you from using CSS:
>
> #calendar td.day {
> background-color:#fff;
> }
>
> #calendar td.day:hover {
> background-color:#ddd;
> }
--~--~-~--~-
What keeps you from using CSS:
#calendar td.day {
background-color:#fff;
}
#calendar td.day:hover {
background-color:#ddd;
}
#calendar td.day > span {
visibility:hidden;
}
#calendar td.day:hover > span {
visiblity:visible;
}
?
If for some reason you cannot do that, you should be able to add