Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

I want the popupimage window to always


Zuncan

Recommended Posts

Hi! :blush:

 

Have a little issue that I cant seem to find the answer for.

 

I want to make the popupimagewindow to always show up in the middle of the screen - no matter what resulution the customers are using.

 

I know that there are a way to pull this off but I just cant seem to find how.

Would be very thankful for help in this matter.

 

Here is the code that proberly need to be changed in product_info.php:

 

<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=20,lef
t=348')

 

Please help out / Zuncan

So what?! Who care in a hundred years anyway?

Link to comment
Share on other sites

Hi!  :blush:

 

Have a little issue that I cant seem to find the answer for.

 

I want to make the popupimagewindow to always show up in the middle of the screen - no matter what resulution the customers are using.

 

I know that there are a way to pull this off but I just cant seem to find how.

Would be very thankful for help in this matter.

 

Here is the code that proberly need to be changed in product_info.php:

 

<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=20,lef
t=348')

 

Please help out / Zuncan

 

 

maybe try

 

	<script type="text/javascript">
<!-- 
function popupWindow(url) 
{
 popup = window.open(url,'popupWindow',& #39;toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res
izable=yes,copyhistory=no,width=100,height=100');
 
               popup.moveTo((window.screen.availWidth -  150) / 2, (window.screen.availHeight - 100) / 2);
       }
 //-->
</script>

Link to comment
Share on other sites

Aouch! :-"

 

Didn't work out, but thanks anyway. The window didn't show up at all with the code you gave me. Perhaps you know whats wrong?

 

Please help! / Zuncan

So what?! Who care in a hundred years anyway?

Link to comment
Share on other sites

Aouch!  :-"

 

Didn't work out, but thanks anyway. The window didn't show up at all with the code you gave me. Perhaps you know whats wrong?

 

Please help! / Zuncan

 

it might be the ' that is after height=100, doesn't look like it should be there (I am not a JavaScript guru unfortunately)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...