Need help for little change

Hi@ All

in which php file is the album view function stored?
I would like if a user clicks a image 2 times (fullimage) should open in a new browser window.

Is it possible?
Please help...

Thx Covic

Comments

  • Album view is done in albums.php. But, that is for album thumbnails. If you click on one of these once you are taken to image.php, so I don't see how you will implement your click twice function.
  • Do it via Javascript. Make a <div> or <span> around the image and have a look here:

    http://www.w3schools.com/jsref/jsref_ondblclick.asp

    Maybe you want to build a display function by yourself to “disable” the link. But keep in Mind: Always provide navigation possible without Javascript enabled.
  • Hi,

    thank you for first answers but i think i didnt describe my wish correct. I didnt mean a action on a mouse doubleclick. When clicking on a thumb image is show bigger (medium). When you click on medium image browser opens the image in original size which is very big on a eos 5d cam. So I would like that when you click on a medium image once the browser should open a new window to display image full size.

    Regards Covic
  • That would be something to implement in the theme, I believe. And, yes, you would use javascript to do it.

    `Full Image`

    Something like that.
  • Thank you. I will try this.
  • trisweb Administrator
    Or you can just use `target="_blank"` in the link, like this:

    `image`
  • Hi

    i cant find the file in theme were this is located.

    Please help once more.
  • acrylian Administrator, Developer
    Look at image.php
  • I don't recommend target="_blank" because that is a broken way to do it. The target attribute is not part of either HTML 4.01 Strict of XHTML 1.0 Strict. The method I suggested opens the image in a new window if the user has javascript enabled, and the current window if he doesn't.
  • Thank you all very much! It works perfect.
Sign In or Register to comment.