Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

popup window location


carpenoctem

Recommended Posts

Posted
where can i control where the location of the popup image????

 

for the popup in product_info.php for example

 

find:

function popupWindow(url) {
 window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res
izable=yes,copyhistory=no,screenX=150,screenY=150,top=50,left=100')
}

parameters top=50,left=100 set the location

 

and in popup_image.php

 

function resize() {
 if (navigator.appName == 'Netscape') i=40;
 if (document.images[0]) window.resizeTo(document.images[0].width +30, document.images[0].height+60);
 self.focus();
}

 

that will steer the resize of the image

 

dahui

  • 3 weeks later...
Posted
Also see my 2 new contributions on different ways of handling this.

 

http://www.oscommerce.com/community/contributions,3649

http://www.oscommerce.com/community/contributions,3651

 

HTH

 

Si.

 

Hi, thanks for your contrib, just exactly what I was looking for. However, I dunno what did I do wrong, after I dropped the file (version 2) in my catalog folder, I got this error -

 

1054 - Unknown column 'p.products_bimage' in 'field list'

 

select pd.products_name, p.products_image, p.products_bimage from products p left join products_description pd on p.products_id = pd.products_id where p.products_status = '1' and p.products_id = '51' and pd.language_id = '1'

 

[TEP STOP]

 

Any idea?

 

Thanks in advance !

 

 

Ok I just tried with the 1st version and it works, thanks !

 

But then, where do I change the background color for the 1st version?

 

Thanks again !

follow my heart, NOT my head

Posted
1054 - Unknown column 'p.products_bimage' in 'field list'

 

[TEP STOP]

 

Any idea?

 

Thanks in advance !

Ok I just tried with the 1st version and it works, thanks !

 

But then, where do I change the background color for the 1st version?

 

Thanks again !

 

Oops usless me, I left in another contribution which I have now removed. Go back and download the newer version

 

http://www.oscommerce.com/community/contributions,3651

 

As for how to change the colours, in both it says in the contribution description - its line 60 & 45 respectively.

 

Si.

Archived

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

×
×
  • Create New...