1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Add Today's Date to image

Discussion in 'JavaScript' started by Bulldog-Designs, Aug 17, 2009.

  1. #1
    I thought doing this in PHP would be best, but I think javascript would be easier.
    I want an image and I want todays date to appear in the corner. It would need to update automatically.

    Any idea where to start?

    Thanks in advance :)
     
    Bulldog-Designs, Aug 17, 2009 IP
  2. gelous09

    gelous09 Peon

    Messages:
    31
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    you can somehow edit image content with javascript. you can add an absolute-positioned div with date.

    with php you can edit image content before showing it.

    this is the code i used to put logo in the image. hope this will give you and idea
     
    gelous09, Aug 18, 2009 IP
  3. Mastermaniac

    Mastermaniac Peon

    Messages:
    128
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Bro, this can be done by CSS also! :)

    
    <div style="height:[COLOR="Red"]40[/COLOR];width:[COLOR="Red"]300[/COLOR];text-align:right;background-image:url('[COLOR="Red"]Image.png[/COLOR]');">[COLOR="Red"]The information here![/COLOR]</div>
    
    Code (markup):
    Hope you got that! ;)
     
    Last edited: Aug 18, 2009
    Mastermaniac, Aug 18, 2009 IP