Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    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.

  • #2
    Regular Coder
    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:

    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");
    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.
    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?


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts