Results 1 to 3 of 3
  1. #1
    Affiliate Manager Matt McWilliams's Avatar
    Join Date
    July 21st, 2006
    Location
    Fort Wayne, IN
    Posts
    2,838
    Help! Display Image Based on Date/File Name
    Hey guys,

    I am working on an HTML page and I need something that changes the header based on the file name. I have done it before in ColdFusion but I totally forget and cannot figure it out.

    Before how it worked as as such:

    There was a <div> for the header. There was a default header called "header.jpg" in the /images folder

    If I added a file called "header-01012009.jpg" then on January 1 2009 it would display that image (server time)

    so "header-mmddyyyy.jpg" determined what displayed on that date.

    Also, "header-02012009-02052009.jpg" would display that header from February 1-5, 2009

    so "header-mmdd-yyyy-mmddyyyy.jpg" was used for date ranges.

    Does anyone know how to do this with basic HTML or JS?

    Thanks a ton!
    Matt McWilliams
    Call Me At: (317) 825-8826 | Follow Me On Twitter: @MattMcWilliams2 | Connect With Me On LinkedIn

  2. #2
    Full Member jgoode's Avatar
    Join Date
    January 31st, 2006
    Location
    Denver
    Posts
    285
    I just sent you a few emails... with code - ignore my spastic happy shortcut key fingers that seem to hit send before finishing what i'm doing lol.
    [URL=http://www.mypenguintravels.com][COLOR=DarkRed]Have you seen my penguin?[/COLOR][/URL]
    [FONT=Tahoma]The Blog: [URL=http://www.jgoode.com][COLOR=Indigo]JGoode.com [/COLOR][/URL] | The Shop: [URL=http://www.jgoodedesigns.com][COLOR=Indigo]JGoode Designs [/COLOR][/URL]
    [SIZE=1][B]Designer/Illustrator/Professional Doodler[/B] for [B]Apparel, Gifts, Decor & more...[/B][/SIZE] :artist:[/FONT]

  3. #3
    Affiliate Manager Matt McWilliams's Avatar
    Join Date
    July 21st, 2006
    Location
    Fort Wayne, IN
    Posts
    2,838
    Oh wow Thanks Jen. Yeah I think I got approximately 207 emails from you

    I am looking through them all now.

    Thanks a TON! I hope this helps
    Matt McWilliams
    Call Me At: (317) 825-8826 | Follow Me On Twitter: @MattMcWilliams2 | Connect With Me On LinkedIn

  4. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Sharper Image & Lillian Vernon File for Bankruptcy
    By Adam Ward in forum Rakuten LinkShare - LS
    Replies: 43
    Last Post: March 20th, 2008, 03:46 PM
  2. Javascript for Content Based on Date
    By KirkhamsEbooks in forum Midnight Cafe'
    Replies: 4
    Last Post: December 14th, 2007, 11:41 AM
  3. Display Image/Message While Searching
    By Uncle Rico in forum Programming / Datafeeds / Tools
    Replies: 3
    Last Post: August 4th, 2007, 05:06 PM
  4. Display a file like Google with Javascript
    By apex-auctions in forum Programming / Datafeeds / Tools
    Replies: 13
    Last Post: April 23rd, 2006, 03:32 PM
  5. Event Date vs. Posting Date
    By Rodski in forum Commission Junction - CJ
    Replies: 4
    Last Post: November 18th, 2005, 11:59 AM

Posting Permissions

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