Thanks to all who replied.
Mike at Green-Beast.com wrote:
How about adding/changing a border weight or style around that .event date
cell or adding an overline-underline on the date number itself on the print
style sheet so you don't have to rely on a color? This should circumvent the
problem at hand while still providing something meaningful to the booked
date for the person printing it out.
Hey - goood idea! Thanks.
David Dorward wrote:
No such thing as a CSS class. HTML has classes, CSS has selectors
which can match HTML classes.
Some classes can be via PHP and some can be via CSS. (I think you knew
that's what I meant :-) )
see:
http://georgiost.users.phpclasses.org/
Well, you could do something like:
var cells = document.getElementsByTagName('td');
for (var i = 0; i < cells.length; i++) {
if (cells[i].className != 'event') {
var text = "n/a";
var textNode = document.createTextNode(text);
var span = document.createElement('span');
span.className = 'printOnly';
span.appendChild(textNode);
cells[i].appendChild(span);
}
}
Looks good. I'll play with it this weekend. Thanks.
Why isn't the lack of text content of the cells meaningful already?
It may be. You can tell me by looking at my temp test file here:
http://www.rhh.myzen.co.uk/rhh2007/booking/calendar_temp.php
(I'd be grateful for anyone's feedback on whether blank cells are enough
in this instance.)
Justin Carter wrote:
You might also want to consider what happens when a lot of days are
booked. You would be printing out a page full of boxes with not many
numbers!
Yep! See above link for a demo! :-)
--
Thanks, & Best Regards,
Bob McClelland
Cornwall (UK)
www.gwelanmor-internet.co.uk
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************