Olaf, thanks for responding.
Olaf Bosch wrote:
Christopher Jordan schrieb:
It's
swapping out the text color, but not the background color. I'm puzzled.
Is there some reason I could be seeing these sorts of results?
Is this online, cane i see this?
Unfortunately, this is not in an area of the web that I can make accessible.
Have you so in the CSS?
#tableID td{
background:#ccc;
}
No. the table itself does not have an id. The calendar is the only table
on the screen, and each of the tds have a unique id.
this cane not overwritte with your
td.Weekday{
then must be
#tableID td.Weekday{
..... you have not this in CSS!?
background-color : #ThisOrderBoardOddRowColor#;
My css file is not included in the traditional way.
#ThisOrderBoardRowColor# is a ColdFusion variable. My style sheets first
get processed by the CF engine before they are included at the top of my
pages. So it's not a .css file. It's a .cfm file. I should have made
this more clear probably.
I should probably also mention, that the initial colors on the calendar
are set in-line as ColdFusion builds the page. It is this way that I
make the weekend cells a different color from the weekday cells.
Here's the template of my td cells that represent the calendar cells:
<td
id = "#ThisCalendarIndex#"
class = "EmptyMe"
normalBGColor = "#ThisColor#"
dayType = "#ThisDayType#"
state = ""
status = "off"
dateValue = ""
style = "background-color:#ThisColor#; width:#CalendarCellWidth#px;
vertical-align:top; text-align:right;"
onmouseover = "CalendarEvents('#ThisCalendarIndex#', 'mouseover');"
onmouseout = "CalendarEvents('#ThisCalendarIndex#', 'mouseout');"
onclick = "CalendarEvents('#ThisCalendarIndex#', 'click');"
<!---
onmouseover = "CalendarEvents(this, 'mouseover',
'#ThisHighlightColor#', '#ThisOrderBoardNormalTextColor#');"
onmouseout = "CalendarEvents(this, 'mouseout');"
onclick = "CalendarEvents(this, 'click');"
--->
ondblclick = "return false;"
>
</td>
Realize that this is being looped over and all of the variables between
the pound signs are being evaluated before it ever hits the browser.
Before I started trying to jQuerize this particular piece of code, I
used to call my CalendarEvents function with the code that is now
between CF comments. I would pass 'this' to the function and then I'd
use JavaScript to manipulate the DOM (obj.style.background = color;)
Does this help explain things better? What am I doing wrong?
Thanks,
Chris
--
http://www.cjordan.info
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/