Results 1 to 3 of 3

Thread: Image Thumbnail viewer: close by clicking on image as well as text

  1. #1
    Join Date
    Dec 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Image Thumbnail viewer: close by clicking on image as well as text

    Hi there,

    I am using 'Image Thumbnail viewer' on my eBay listings, and although it works beautifully, I would like users to be allowed to close the popup window by clicking on the image as well as on the 'Close' link.

    Could someone please help with any tweaking or new code I would need to add to the script to allow me to do this?

    For reference, one of the item pages with the script can be found here:
    http://cgi.ebay.co.uk/ws/eBayISAPI.d...tem=4429774264

    Many thanks,

    Sam
    Last edited by kindredm7; 12-29-2005 at 07:33 PM. Reason: Change title of thread.

  2. #2
    Join Date
    Dec 2005
    Posts
    49
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    not a problem bro, i can help with that. currently there is a line in the code that says:

    Code:
    crossobj.innerHTML='<div align="right" id="dragbar"><span id="closetext" onClick="closepreview()">Click here to close this pop-up window</span> </div><img src="'+which+'">'
    change it to the following:

    Code:
    crossobj.innerHTML='<div align="right" id="dragbar"><span id="closetext" onClick="closepreview()">Click here to close this pop-up window</span> </div><a style="cursor: pointer;" onClick="closepreview()"><img src="'+which+'"></a>'
    simple as that. instead of it just displaying the specific image, it now is telling it to dispaly the specific image as a link, just like the "Click here to close this pop-up window" link. in doing this, the image is now a link and you can click it to close the window. enjoy.

  3. #3
    Join Date
    Dec 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up

    Excellent - just what I wanted! Thanks man.



    -K.

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
  •