Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Image enlarge at bottom of the page


Guest

Recommended Posts

Posted

I'm sure this has been asked a million times before but when i click on image enlarge, the image appears way down in the bottom left hand corner of the screen.

I have changed the x and y variables to try and position the image elsewhere but with no success.

 

I have inherited this site and am not particularly familiar with osCommerce ...... www.ccdiscountheating.co.uk

 

Here are the code snippets:

 

product_info.php ( located in the head )

 

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

function popupWindow(url) {

window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res

izable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,le

ft=150')

 

}

//--></script>

 

 

 

popup_image.php (located in the head)

 

<script language="javascript">

function resize() {

?var i=0;

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

?imW = document.images[1].width +30;

?imH = document.images[1].height+60-i;

?wX = (screen.width - imW)/2;

?wY = (screen.height - imH)/2;

?if (document.images[1]) {

? window.resizeTo(imW,imH);

? window.moveTo(wX,wY);

?}

?self.focus();

}

//-->

</script>

 

then

 

<body onLoad="resize();">

 

Can anyone point me in the right direction?

 

Many thanks

Posted

Have finally fixed it ..... i had imported a new css sheet and missed off some script from the bottom of the original stylesheet ....... doh

Archived

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

×
×
  • Create New...