Member
Member
covic   2008-02-08, 20:48
#1

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

Member
Member
sbillard   2008-02-09, 00:33
#2

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.

Member
Member
DirkSohler   2008-02-09, 01:54
#3

Do it via Javascript. Make a or 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.

Member
Member
covic   2008-02-09, 16:51
#4

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

Member
Member
jsumners   2008-02-10, 05:45
#5

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.

Member
Member
covic   2008-02-11, 09:33
#6

Thank you. I will try this.

Developer
Developer
trisweb   2008-02-12, 04:16
#7

Or you can just use target="_blank" in the link, like this:

[img]...[/img]

Member
Member
covic   2008-02-12, 11:44
#8

Hi

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

Please help once more.

Administrator
Administrator
acrylian   2008-02-12, 14:07
#9

Look at image.php

Member
Member
jsumners   2008-02-12, 17:28
#10

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.

Member
Member
covic   2008-02-19, 05:47
#11

Thank you all very much! It works perfect.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.