X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Increasing the size of the Detailed Image popup window (https://forum.x-cart.com/showthread.php?t=38096)

AG9V 03-06-2008 02:37 PM

Increasing the size of the Detailed Image popup window
 
I did some searching around and couldn't find a good answer for this one...

I recently added the ALT text for the Detailed Images as a caption under the detailed image, but now the size at which the window pops up is too small.

How can I increase the size of the Detailed Images popup window to accomodate the newly added caption?

AG9V 03-12-2008 11:51 AM

Re: Increasing the size of the Detailed Image popup window
 
I hear crickets here... nobody?

Holub 03-13-2008 01:16 AM

Re: Increasing the size of the Detailed Image popup window
 
There are some files in /skin1/main/

popup_image.js
popup_image.tpl
popup_image_js.js
popup_image_js.tpl
popup_images.tpl

I don't sure which file uses in Detailed Images but you can use Webmaster mode to clear up it.

AG9V 06-24-2008 08:52 PM

Re: Increasing the size of the Detailed Image popup window
 
Ah yes, that looks like the correct code... specifically pop_image_js.js

Unfortunately my javascript skills are sorely lacking.

Thanks though!

glsp 10-16-2008 09:11 PM

Re: Increasing the size of the Detailed Image popup window
 
I had the opposite problem, where I needed the popup window to match the height of the image better. Here is my code at the end of skin1/main/popup_image_js.js:
Code:

function imgOnLoad(obj) {
        if (images.length == 0 && obj)
                imgObj = obj;
       
        winH = imgObj.height+100<screen.height?imgObj.height+100:screen.height;
        window.resizeTo(imgObj.width, winH);

        expandWindowX(false, 10, screen.width);
        //expandWindowY(false, 10, screen.height);

        if (images.length == 0)
                return true;

        imgObj.alt = images[current_id][1];

        return true;
}

The original has
window.resizeTo(imgObj.width, imgObj.height);
and you could just change those to whatever dimensions you want.


All times are GMT -8. The time now is 07:42 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.