Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

popup border


jimgun

Recommended Posts

Posted

Hi,

My first post and new to osCommerce.

-

Was wondering how to make the pop-ups from a product description (+click to enlarge) without a border. (ie: leftmargin="0" topmargin="0" marginwidth="0" marginheight="0") type thing. So basically the picture will have no border around it.

-

popup_image.php // EXCERPT - around line 28

_________________________________________

 

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();

_________________________________________

 

Any ideas?

Posted

Backup...Backup...Backup

 

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();

Change to suit your needs

width +30

and

height+60-i

Should do the trick.

Posted

I believe we need to add (resizable=0,scrollbars=yes,status=0,titlebar=0,to

olbar=0,hotkeys=0,left=200,top=50') this kind of jargon... However, not being new to PHP... it needs to be coded in differently.

-

Any ideas?

Posted
left=200,top=50

This code gives relative position of where the window will open.

Posted
Hi,

My first post and new to osCommerce.

-

Was wondering how to make the pop-ups from a product description (+click to enlarge) without a border. (ie: leftmargin="0" topmargin="0" marginwidth="0" marginheight="0") type thing. So basically the picture will have no border around it.

-

popup_image.php // EXCERPT - around line 28

_________________________________________

 

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();

_________________________________________

 

Any ideas?

Sorry, it will not work.

osCommerce uses as you wrote yourself : function resize() {

 

Look at your popup in another browser and it will look different than in the first browser and most probably different than ...

 

You will even have to tweak the 40,30,60 to arrive at a size that is more or less equal incl the border.

"If you're working on something new, then you are necessarily an amateur."

Archived

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

×
×
  • Create New...