Source for file popups.php

Documentation is available at popups.php

  1. <?php
  2. /**
  3. * Miscellaneous javascript functions to be included in each page
  4. *
  5. @author     Stuart Prescott
  6. @copyright  Copyright Stuart Prescott
  7. @license    http://opensource.org/licenses/gpl-license.php GNU Public License
  8. @version    $Id: popups.php,v 1.1 2007/02/01 17:00:03 themill Exp $
  9. @package    Bumblebee
  10. @subpackage Misc
  11. */
  12.  
  13. /** Load ancillary functions */
  14. require_once 'inc/typeinfo.php';
  15.  
  16. $conf ConfigReader::getInstance();
  17. $overlib $conf->value('display''overlib_location''system-inc/overlib').'/overlib.js';
  18. ?>
  19.  
  20. <!--
  21. Include the overlib javascript library:
  22.     (c) Erik Bosrup
  23.     http://www.bosrup.com/web/overlib/
  24. -->
  25. <div id="overDiv" style="position:absolute; visibility:hide;z-index:1000;"></div>
  26. <script type="text/javascript" src="<?php echo $overlib?>"></script>
  27.  
  28. <script type="text/javascript">
  29.   function showPopup(message, width, offsety) {
  30.     var realdata=unescape(message);
  31.     if (realdata.length > 0) return overlib(realdata, WIDTH, width, OFFSETY, offsety);
  32.   }
  33.   function hidePopup() {
  34.     return nd();
  35.   }
  36.  
  37.   // show/hide entire divs
  38.   function showDiv(id) {
  39.     var div = document.getElementById(id);
  40.     div.style.display = 'inline';
  41.   }
  42.   function hideDiv(id) {
  43.     var div = document.getElementById(id);
  44.     div.style.display = 'none';
  45.   }
  46. </script>

Documentation generated on Tue, 06 Mar 2007 10:01:54 +0000 by phpDocumentor 1.3.0