Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: Pop-Up window link to image

  1. #1
    Join Date
    Jun 2007
    Location
    North Lake Tahoe
    Posts
    62
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default Pop-Up window link to image

    [I] have an image that I want to link a pop up/over window to. I put the proper script in the header, but what script do I put in the body and how do I link it to the image?

    Thanks,
    A real novice

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Is this a script off of DD's script library, or are you requesting a script. If it is from DD, then please post a link to the script in question.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  3. #3
    Join Date
    Jun 2007
    Location
    North Lake Tahoe
    Posts
    62
    Thanks
    7
    Thanked 0 Times in 0 Posts

  4. #4
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Then you would put the code that gets generated in the second textarea (on that page you linked to) into the body of your document. So it would be something like this:

    Code:
    <a href="http://www.google.com" onclick="NewWindow(this.href,'mywin','213','324','no','center');return false" onfocus="this.blur()">YourLinkText</a>
    except with your custom settings.

    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  5. #5
    Join Date
    Jun 2007
    Location
    North Lake Tahoe
    Posts
    62
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    If I put the code you sent, how does it know what image to link to?

  6. #6
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Change the part in red below to the path to your image.

    Code:
    <a href="path/to/your/image.jpg" onclick="NewWindow(this.href,'mywin','213','324','no','center');return false" onfocus="this.blur()">Text or Image</a>
    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  7. #7
    Join Date
    Jun 2007
    Location
    North Lake Tahoe
    Posts
    62
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    <td><img border="0" src="LIPS_01_copy.gif" width="200" height="70" <a></td>

    above is the image I want to link a pop-up window to.

    As you can tell I confuse easely

  8. #8
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Code:
    <td>
    <a href="LIPS_01_copy.gif" onclick="NewWindow(this.href,'mywin','213','324','no','center');return false" onfocus="this.blur()">Text or Image</a><img border="0" src="LIPS_01_copy.gif" width="200" height="70"><a></td>
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  9. #9
    Join Date
    Jun 2007
    Location
    North Lake Tahoe
    Posts
    62
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    OK, I put the following code in the proper location on the page and the image showed uo in the top left of the page, not where it should be and it doesnt link to a new window or anything.

    popup is the name of the new popup page

    <href="LIPS_01_copy.gif" onclick="NewWindow(this.href,'popup','213','324','no','center');return false" onfocus="this.blur()"<Text or Image<a/><img border="0" src="LIPS_01_copy.gif" width="200" height="70" <a>

  10. #10
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Do you have a link to the page you are trying to put this one (or even posting the source code would be helpful). Other than that, not sure what else to tell you.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

Bookmarks

Posting Permissions

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