Helix Installation   Getting Started   Reference Documentation   Global Functions   Quick Start
ModulesClassesFunctions
 

Function Reference

preload ( images , dir )

Description
No description.
 
Parameters
requiredimages
optionaldir
 
Code
735  function preload($__images, $__dir=null)
736  {
737      if (is_array($__images))
738      {
739          $dir = is_null($__dir) ? WEBROOT . "images/" : $__dir . (substr($__dir,-1,1)=="/" ? "" : "/");
740          foreach ($__images as $img)
741          {
742              echo "<img src=\"{$dir}{$img}\" style=\"display:none;\" />";
743          }
744      }
745      else
746      {
747          preload(array($__images));
748      }
749  }
Get Helix PHP Framework at SourceForge.net. Fast, secure and Free Open Source software downloads