Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jan 2004
    Location
    USA
    Posts
    364
    Thanks
    12
    Thanked 6 Times in 6 Posts

    starting 1st js - date tooltips

    Hello,
    I'm starting to write my 1st USEFUL javascript script. I kinda know what it's gonna look like and what it's gonna involve, but i'm not sure how to do it and how to start.

    Here's what I want my script to do:
    1) Search the document for a date, such as 1-10-05
    2) Add a tooltip (title="") to the date, so when you mouseover 1-10-05, you see January 10, 2005

    Some features i want to include:
    1) Determine what type of date or an option to adjust date type
    ex: 1-10-05 could mean october 1, 2005. so in the script, u can define the date type, like dd-mm-yy or yyyy-mm-dd etc...
    2) Tooltip display options. January, or Jan etc....

    I kinda know what I'm gonna need in the script. I just dont know how to start.

  • #2
    Regular Coder
    Join Date
    Aug 2004
    Location
    codegoboom@yahoo.com
    Posts
    999
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The String, Number, and Array objects, an argument, and an if else statement, methinks... maybe the Date object too.
    Last edited by codegoboom; 01-21-2005 at 05:03 AM. Reason: yeah, that's it
    *this message will self destruct in n-seconds*


  •  

    Posting Permissions

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