Javascript popup window for pictures

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DavidPr
    New Member
    • Mar 2007
    • 155

    Javascript popup window for pictures

    I'm using a Javascript script that displays pictures in a popup window and it works fine except when there's a picture that contains parentheses:

    Code:
    <a href="javascript:popImage('http://www.mysite.com/gallery/pic1(small).jpg','Pictures')">
    <img src='http://www.mysite.com/gallery/thumbs/pic1(small).jpg' width='100' height='75' alt='Picture' >
    </a>
    Notice the parentheses around the word "small" in the image name? I'm not a Javascript guy, so I guessing that this is what is causing the problem. What is happening is - when I click on the link I get the little image icon of a broken link in the popup window instead of the larger picture.

    The popup works fine for pictures that do not contain parentheses in the image name.

    Is there a work around for this?

    Thanks.

    David
  • ssnaik84
    New Member
    • Aug 2009
    • 149

    #2
    nothing is wrong in your code till now..
    Can you post your javascript function "popImage"?

    Comment

    Working...