Results 1 to 4 of 4

Thread: Can someone help add the current date to this script.

  1. #1
    Join Date
    Jan 2011
    Location
    Southeastern CT
    Posts
    612
    Thanks
    46
    Thanked 32 Times in 32 Posts

    Default Can someone help add the current date to this script.

    I found this nice calendar script that is great except I wanted to get one thing added to it.

    http://www.javascriptkit.com/script/...ch/index.shtml

    I want the current date to be highlighted in a different color-light blue maybe?

    these are the files to the calendar:
    http://www.web-user.info/javascript/...och_classes.js
    http://www.web-user.info/javascript/...och_styles.css
    http://www.web-user.info/javascript/calendar/popup.js

    And here is what I have :
    http://www.web-user.info/javascript/calendar/testb.html

    I have no idea where or how to go about doing this.
    Thanks,

    Bud

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Here, in the epoch_styles.css file around line #70, add the highlighted as shown:

    Code:
    table.calcells td.curdate {
    	color: blue;
    }
    Or, for a more dramatic effect, perhaps:

    Code:
    table.calcells td.curdate {
    	color: white;
    	background-color: blue;
    }
    Once you see the effect, you may want to change the color(s) used for it, and perhaps those used for some of the others.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    ajfmrf (01-15-2012)

  4. #3
    Join Date
    Jan 2011
    Location
    Southeastern CT
    Posts
    612
    Thanks
    46
    Thanked 32 Times in 32 Posts

    Default

    Once again,thank you John.

    btw-how do you find the line numbers so easily.What editor do you use?
    Thanks,

    Bud

  5. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    My editor - Mostly EditPad Pro (commercial, but cheap). I also sometimes use NotePad++ (free). Both list or can optionally list the line numbers in the left hand margin. There are a number of other editors both free and commercial that do this. I sometimes get line numbers from developer tools in Firefox or IE 9, both of which have views that show them. Other browsers' tools probably have the same or similar, but as my experience with them is more limited than with IE and Firefox, I have yet to run across a situation where I've grabbed a line number from one of them. I have used them for other stuff though and they generally work very well for what I have done with them.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

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