img tag problem please help

Discussion in 'HTML & Website Design' started by PinoyIto, Jun 25, 2008.

  1. #1
    I just want to ask if there is a way to use the img tag with case sensitive. There are circumstances , that my script not showing the pictures in my site because of case sensitivity.

    For example the filename of the image is ImgE.jpg and in the code the script look some like <img src="imge.jpg">, the picture won't show because they are not much case.

    Any idea to solve this problem..
     
    PinoyIto, Jun 25, 2008 IP
  2. jamesicus

    jamesicus Peon

    Messages:
    477
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Change the Markup to <img src="ImgE.jpg" alt=""> (assuming it is just a decorative image -- otherwise use descriptive alt text).

    James
     
    jamesicus, Jun 25, 2008 IP
  3. PinoyIto

    PinoyIto Notable Member

    Messages:
    5,863
    Likes Received:
    170
    Best Answers:
    0
    Trophy Points:
    260
    #3
    I know that is possible if that is manual, what if the script creating it is automatic. The script is using all small caps while some of the image don't use small caps all the time.

    What I want is that interpret both ImgE.jpg and imge.jpg as equal files
     
    PinoyIto, Jun 25, 2008 IP
  4. jamesicus

    jamesicus Peon

    Messages:
    477
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I missed that this as a scripting problem in your original post. You might post this in the Programming Forum (PHP/JS). What are small caps?

    James
     
    jamesicus, Jun 25, 2008 IP
  5. q7m

    q7m Well-Known Member

    Messages:
    1,178
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    150
    Digital Goods:
    1
    #5
    How does your script is managing these images? Where do you store the file name (the one in small caps)? Can't you make your script to rename the files in small caps?
     
    q7m, Jun 25, 2008 IP