Popup large image

Nicky

Avatar: Nicky

2007-05-27 08:45

In the file shop/js/standard.js

you find a javascript for popup window. This script opens a larger image in a popup window, in the detailed description of your product. I think the behaviour of the popup is not 'clean'. It opens a large window almost screen height on the left side of the screen, then it resizes to the picture format and 'jumps' to middle of the screen.

This actions all happen 'in a flash', but I find it somewhat disturbing.

In the above mentioned file (js) I think it must have something to do with this :

height="+iHeight+",width="+iWidth+",top="+iy+",left="+ix+"

but I'm not really a Javascript specialist.. someone?

I have seen scripts like this in action before, and the open in a certain position on the screen, top left or centered. This happens in one smooth move, unlike the javascript above.

» Quick.Cart v2.x

Nicky

wewior (OpenSolution)

Avatar: wewior

2007-05-28 10:41

Window opens that way because image size is checking after opening popup window and then script counts how big that window should be and where it should be placed to be centered on screen, it depends on screen resolution and image size. Window size can be counted in php but then it should be done for all images and now it is only after opening big image.
But if you think it can be better ,maybe someone knows better way to do that or maybe we can figure out something too in some version.

Back to top
about us | contact