any Perl gurus here? need help making a script (time/image)

Discussion in 'OT Technology' started by georgexi, Jul 24, 2007.

  1. georgexi

    georgexi o.O OT Supporter

    Joined:
    Jul 13, 2005
    Messages:
    5,206
    Likes Received:
    0
    Location:
    PA
    i'm trying to put "dynamic" images on my myspace page. ultimately i want to change my background image depending on the time of day. myspace filters out <LINK> and a bunch of other stuff but they allow ".pl" extensions. the only way i can think to do this is to use a server-side perl script to interpret the time and "stream" the correct image. i have an account on a webserver with server-side perl access.

    all i need is a script to look at the time of day and stream the correct image.
    a pseudo-code example:

    Code:
    if (time >= 7am AND time <= 4pm)
        return image1.jpg
    else if (time <= 8pm) 
        return image2.jpg
    else
        return image3.jpg
    
    any ideas?
     
  2. Peyomp

    Peyomp New Member

    Joined:
    Jan 11, 2002
    Messages:
    14,017
    Likes Received:
    0
    I would help you, but its for myspace... so no.
     
  3. georgexi

    georgexi o.O OT Supporter

    Joined:
    Jul 13, 2005
    Messages:
    5,206
    Likes Received:
    0
    Location:
    PA
    :(
     
  4. Peyomp

    Peyomp New Member

    Joined:
    Jan 11, 2002
    Messages:
    14,017
    Likes Received:
    0
  5. Sexual Vanilla

    Sexual Vanilla New Member

    Joined:
    May 23, 2005
    Messages:
    6,305
    Likes Received:
    0
    Location:
    South Carolina

Share This Page