Topic: Show Link in Table Cell on Mouseover
I'm working on a calendar app and have the following (prototype) javascript changing the cell background on mouse over.
document.observe('dom:loaded', function() {
$$('#calendar td.day').each(function(item) {
item.observe('mouseover', function() {
item.setStyle({ backgroundColor: '#ddd' });
});
item.observe('mouseout', function() {
item.setStyle({backgroundColor: '#fff' });
});
});});
I now need to display a link inside a <span> within the cell when the mouse is over the cell. How can this be done?
Thanks