title: Jquery background overlay/alert without .onclick event - php responder?
body: <p>I have no experience with jquery or javascript for that matter.
  I am trying to implement this technique to respond to users for errors or messages in general. </p>
  
  <p><a href="http://buildinternet.com/2009/08/lights-out-dimmingcovering-background-content-with-jquery/" rel="nofollow noreferrer">lights-out-dimmingcovering-background-content-with-jquery</a></p>
  
  <p>This method uses the onclick event and that's not what im after, I have tried to replace .onclick with .load but that doesn't seem to work.  I'm after a quick fix as I really don't have the time to learn jquery or its event handlers.</p>
  
  <p>The goal is to catch any errors or message's and once these are called the alert box is called without any further actions such as .onclick.</p>
  
  <p>How my code would look:</p>
  
  <pre><code>{PHP}
  $forms = new forms();
  if(count($forms-&gt;showErrors) &gt; 0 // or == true)
  {
      foreach($forms-&gt;showErrors as $error)
      {
          print('&lt;p class="alert"&gt;'.htmlspecialchars($error, ENT_QUOTES).'&lt;/p&gt;');
      }
  }
  </code></pre>
  
  <p>Edit:
  ALL FIXED, thanks!</p>