Popup Image not centering... Popup Image not centering...
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Popup Image not centering...

Started by Velting.net, April 21, 2006, 11:33:37 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Velting.net

When going from the intermediate to the large image, the popup window for some reason is not centering itself like it is supposed to..

Any Ideas???

In IE it seems to randomly place itself, in FF it is always stuck into the upper left-hand corner..

Thanks in advance, and yes, I searched and searched and couldn t find a fix...

Joachim Müller

putting my mind-reader hat on: hrm, no success. OK, I have to admit that my mind-reading capabilities are limited. Please post a link.

Velting.net


Joachim Müller

try to debug the function adjust_popup() by putting an alert into it temporarily, something likealert(w);at the end of the function definition.

Velting.net

like this i assume..?

<script language="JavaScript" type="text/JavaScript">
      adjust_popup();
      alert(w);
   </script>

Velting.net

Whether i put that in the correct place or not, it did not make a difference.. Still having the problem...

Joachim Müller

edit scripts.js, findwindow.moveTo((screen.availWidth-w)/2, (screen.availHeight-h)/2);and add after it (into a new line) the alert command. The command isn't meant to fix anything, but only for troubleshooting purposes. You need to find out if the function is exectued at all.