Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

"Click to Enlarge" Popup


lsd_se

Recommended Posts

When I click on the "Click to Enlarge" link, the image pops up to my larger image.

 

But no matter what size my large image is, the popup box is always too small. It always cuts off the bottom of the image. It needs to have a bigger buffer at the bottom.

 

Any way to fix this? I did a search but to no avail.

 

Thanks,

Daryl

Link to comment
Share on other sites

BTW, my site is http://www.genkibooks.com if you want to check it out

 

 

Hi - Sorry I can't offer any help as I've only just started myself this week - although I think you've fixed it (the box popped up the correct size for me). You've done what I wanted to - you've made your boxes have a blue background - how do I do that?

http://www.aromatherapyforyou.com/catalog/

 

Thanks

Link to comment
Share on other sites

BTW, my site is http://www.genkibooks.com if you want to check it out

 

may be your resize function :

 

<script language="javascript"><!--

var i=0;

function resize() {

if (navigator.appName == 'Netscape') i=40;

if (document.images[0]) window.resizeTo(document.images[0].width +30, document.images[0].height+60-i);

self.focus();

}

//--></script>

 

 

I use :

 

<script language="javascript"><!--

var nsx=0;

var nsy=0;

function resize() {

// document.write(navigator.appName);

if (navigator.appName == 'Opera') {

nsx=10; nsy=29;

} else {

if (navigator.appName == 'Mozilla/5.0') {

nsx=6; nsy=130;

} else {

if (navigator.appName == 'Netscape') {

nsx=6; nsy=49;

} else {

nsx=7; nsy=47;

}

}

}

 

if (document.images[0]) window.resizeTo(document.images[0].width +nsx, document.images[0].height +nsy);

self.focus();

}

//--></script>

 

<body onload="resize();" onclick="java script:top.window.close();" onblur="self.close();">

Treasurer MFC

Link to comment
Share on other sites

When I click on the "Click to Enlarge" link, the image pops up to my larger image.

 

But no matter what size my large image is, the popup box is always too small.  It always cuts off the bottom of the image.  It needs to have a bigger buffer at the bottom.

 

Any way to fix this?  I did a search but to no avail.

 

Thanks,

Daryl

Look through the contributions as there is a fix for image popups.

have a look at this one for starters.

http://www.oscommerce.com/community/contri...ch,image+popups

( WARNING )

I think I know what Im talking about.

BACK UP BACK UP BACK UP BACK UP

Link to comment
Share on other sites

Hi - Sorry I can't offer any help as I've only just started myself this week - although I think you've fixed it (the box popped up the correct size for me).  You've done what I wanted to - you've made your boxes have a blue background - how do I do that? 

http://www.aromatherapyforyou.com/catalog/

 

Thanks

 

really? it works for you? i guess it depends on the OS and browser...

Are you talking about the popup boxes background being blue? Because it's white for me :blink:

 

boxtel sorry, which file is that resize function in?

 

wisewombat i will check out that contrib, thanks!

Link to comment
Share on other sites

boxtel i figured out it was the popup_image.php file. that mod works great, except in FireFox it cuts off the bottom and the side! I tried adjusting the nsx and nsy values, but it didn't make any difference.

 

wisewombat that contrib worked perfectly, but I'm still having the bottom cut off in FireFox. Any suggestions?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...