NetTalk Central

Author Topic: Using "on click" on an image  (Read 2575 times)

dcpeders

  • Newbie
  • *
  • Posts: 32
    • View Profile
    • Email
Using "on click" on an image
« on: August 27, 2013, 06:10:24 AM »
I have a browse showing images. These are thumbnail size. When I click on an image, I would like to download the larger image to be viewed in a seperate page.

I do not want to load the larger images at the same time as the thumbnails as that takes way to long.

I do not see were I can put the code to download the larger image after clicking the thumbnail?

Thanks,

Dave Pederson

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Using "on click" on an image
« Reply #1 on: August 28, 2013, 10:58:23 PM »
set the url "on click" for the image to be the name of the non-thumbnail image.
for example, say you have bob.jpg and bob-thumb.jpg in the \images folder
then the onclick for the browse image becomes
'images\bob.jpg'
set the target to '_blank' to make the image appear in another tab.

cheers
Bruce