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 4 of 4
  1. #1
    New to the CF scene
    Join Date
    May 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    show date on image

    Hello, is there easy way with javascript to show expiration date on an image?

  • #2
    Senior Coder jmrker's Avatar
    Join Date
    Aug 2006
    Location
    FL
    Posts
    3,084
    Thanks
    38
    Thanked 498 Times in 492 Posts
    I don't believe so, but just in case,
    where is the information about the expiration date available in the image?

  • #3
    New Coder
    Join Date
    Jun 2005
    Location
    Blackpool. UK
    Posts
    98
    Thanks
    0
    Thanked 4 Times in 4 Posts
    Three ways, none actually NEED javascript.

    Set the image as a background - put the text over it.

    Use relative positioning to push a text element with a higher z-index over the image element.

    Overlay text with absolute positioning over the image.
    Chris

    Indifference will be the downfall of mankind, but who cares?

  • #4
    Senior Coder jmrker's Avatar
    Join Date
    Aug 2006
    Location
    FL
    Posts
    3,084
    Thanks
    38
    Thanked 498 Times in 492 Posts
    I thought the OP was trying to extract the expiration date from somewhere in the image,
    in which case we would need to know how the image is formatted or stored.

    If OP already knows expiration date and it is not part of the image format to be extracted, then 'chrishirst's solutions would seem adequate.


  •  

    Posting Permissions

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