wood burning stoves
The moose likes HTML, CSS and JavaScript and the fly likes changing the color? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "changing the color?" Watch "changing the color?" New topic

changing the color?

venkatesh padmanabhan

Joined: Feb 17, 2006
Posts: 20
i have a calendar program in jsp. when the user clicks on any particular date, the user should be able to add a description of the date, and after entering the color of the selected date should change to some other color indicating its been selected.
please help for changing the color..

i want the selected date to change to some other color. please help with modified code in the above code.
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
change the color?

<td style="color:#123321;background-color:#FFF00">

venkatesh padmanabhan

Joined: Feb 17, 2006
Posts: 20
i want to change the color, when the user clicks/selects the date.. I have the dates in a link format,when the user clicks on a particular date, that particular date alone should change color..
can u help?
Liyaquat Ali
Ranch Hand

Joined: Nov 16, 2005
Posts: 156
I haven't actually gone through your code completely, but here is a tip, If you want to change the color on click then you will need to call a javascript function when the link is clicked. here you have dates in a calendar so U will also need to pass the name or index number of the date which is being clicked. The function which is being called will change the style property for that individual element, which could either be a table td or div.

Hope this helps.

Excuse me while I kiss the sky (Jimi Hendrix)
I agree. Here's the link: http://aspose.com/file-tools
subject: changing the color?
jQuery in Action, 3rd edition