[ Index ]

PHP Cross Reference of phpwcms V1.4.3 _r380 (23.11.09)

title

Body

[close]

/template/inc_js/ -> imagezoom.js (source)

   1  // ------------------------------------------------------------------------- //
   2  // Coppermine Photo Gallery 1.3.2                                            //
   3  // ------------------------------------------------------------------------- //
   4  // Copyright (C) 2002-2004 Gregory DEMAR                                     //
   5  // http://www.chezgreg.net/coppermine/                                       //
   6  // ------------------------------------------------------------------------- //
   7  // Updated by the Coppermine Dev Team                                        //
   8  // (http://coppermine.sf.net/team/)                                          //
   9  // see /docs/credits.html for details                                        //
  10  // ------------------------------------------------------------------------- //
  11  // This program is free software; you can redistribute it and/or modify      //
  12  // it under the terms of the GNU General Public License as published by      //
  13  // the Free Software Foundation; either version 2 of the License, or         //
  14  // (at your option) any later version.                                       //
  15  // ------------------------------------------------------------------------- //
  16  // CVS version: $Id: config.php,v 1.9 2004/07/24 15:03:52 gaugau Exp $
  17  // ------------------------------------------------------------------------- //
  18  function adjust_popup()
  19  {
  20          var w, h, fixedW, fixedH, diffW, diffH;
  21  
  22          if (document.all) {
  23                  fixedW = document.body.clientWidth;
  24                  fixedH = document.body.clientHeight;
  25                  window.resizeTo(fixedW, fixedH);
  26                  diffW = fixedW - document.body.clientWidth;
  27                  diffH = fixedH - document.body.clientHeight;
  28          } else {
  29                  fixedW = window.innerWidth;
  30                  fixedH = window.innerHeight;
  31                  window.resizeTo(fixedW, fixedH);
  32                  diffW = fixedW - window.innerWidth;
  33                  diffH = fixedH - window.innerHeight;
  34          }
  35          w = fixedW + diffW;
  36          h = fixedH + diffH;
  37          if (h >= screen.availHeight) w += 16;
  38          if (w >= screen.availWidth)  h += 16;
  39          w = Math.min(w,screen.availWidth);
  40          h = Math.min(h,screen.availHeight);
  41          window.resizeTo(w,h);
  42          window.moveTo((screen.availWidth-w)/2, (screen.availHeight-h)/2);
  43  }


Generated: Wed Dec 30 05:55:15 2009 Cross-referenced by PHPXref 0.7