Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Image popup size


nyrescue

Recommended Posts

simply modify the javascript in product_info.php file, or simply replace to your own javascript.

Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

Link to comment
Share on other sites

/catalog/popup_image.php

 

Look for this code in the <head> section:

 

function resize() {
 if (navigator.appName == 'Netscape') i=40;
 if (document.images[0]) window.resizeTo(document.images[0].width +[b][color="#FF0000"][size=3]30[/size][/color][/b], document.images[0].height+[b][color="#FF0000"][size=3]60[/size][/color][/b]-i);
 self.focus();
}

Just change the numbers in RED to make the popup larger (horizontally[width], vertically[height] or both)

(I think :blush: )

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Gee...

:blush:

 

I just tried it and it works for me....

:huh:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

  • 3 weeks later...
/catalog/popup_image.php

 

Look for this code in the <head> section:

 

 

Just change the numbers in RED to make the popup larger (horizontally[width], vertically[height] or both)

(I think :blush: )

 

 

Worked for me too. Thanks.

 

PS=Change the postion of the window in product_info.php (search for left and top around line 30)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...