Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: The FastDatePicker component
03-16-2009, 09:01 AM #1
- Join Date
- May 2003
- Thanked 0 Times in 0 Posts
The FastDatePicker component
I am creating a website that using this component. The component worked fine but i need to make some changes for my own idea.
I'd like to change the simple Character "<", ">" in the candenlar for prev, next month into images like "../images/prev.gif" and "../images/next.gif"
I knew the code for creating the "<", ">" button is around line num 200.
Anyone already used this component and understand lines of code, please tell me where to chage.
The component url is here: http://fastdatepicker.sourceforge.net/
Thanks in advance.
03-16-2009, 02:54 PM #2
- Join Date
- Feb 2009
- Wheeling, IL
- Thanked 62 Times in 60 Posts
Well, shouldn't really be too hard to do. Just replace the document.createTextNode on line 197 and line 215 with the following:
And you should be set. Of course, you'd want to change the height/width and alt/src options to suiut your setup, but all in all, this should do the trick. Enjoy.Code:var img = document.createElement("img"); img.setAttribute("src", "images/prev.gif"); img.setAttribute("height", "10"); img.setAttribute("width", "10"); img.setAttribute("alt", "Previous/Next Month"); cell.appendChild(img);
The way to success is to assume that there are no impossible things. After all, if you think something is impossible, you will not even try to do it.
How to ask smart questions?