title: How can I automatically show a jquery colorbox on my page when a certain $_GET variable is passed?
body: <p>I have a jquery colorbox (lightbox) that pops up when users click a button on my page. Under certain conditions though i want this colorbox to appear without the user having to click a button. For example when the page is loaded and variable is passed in the query string I want to pop up the colorbox. </p>
  
  <p>For example the following code shows how when user clicks the signup button the colorbox appears (this is for a page called example.php)</p>
  
  <pre><code>&lt;p class="signup_button"&gt;&lt;a href="#" class="free_signup_link"&gt;&lt;img src="images/buttons/sign_up_now.gif" alt="Sign Up Now"&gt;&lt;/a&gt;&lt;/p&gt;
  
  &lt;script type="text/javascript"&gt;
  $('.free_signup_link').colorbox({href:"signup.php?type=5"});
  &lt;/script&gt;
  </code></pre>
  
  <p>What I want to do is if the page is loaded with a variable in the query string then the colorbox is automatically shown (eg for example.php?show=1) </p>
  
  <pre><code>if($_GET['show'] == "1") {
  // show the color box 
  }
  </code></pre>
  
  <p>Anyone know how to do this?</p>
  
  <p>thanks</p>