File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "changing the color?" Watch "changing the color?" New topic
Author

changing the color?

venkatesh padmanabhan
Greenhorn

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
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
change the color?

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

Eric
venkatesh padmanabhan
Greenhorn

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)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: changing the color?
 
Similar Threads
To change color,when user selects a date?
user selection of multiple items?
year getting null?
table problem?
Displaying all the months in the year