Guest Posted May 23, 2008 Posted May 23, 2008 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
Guest Posted May 23, 2008 Posted May 23, 2008 Have finally fixed it ..... i had imported a new css sheet and missed off some script from the bottom of the original stylesheet ....... doh
Recommended Posts
Archived
This topic is now archived and is closed to further replies.