Check out this browser picked site:

Andyland

 

 


Code:
<?
      $img["Netscape"] = "artcontext.gif";
      $url["Netscape"] = "http://artcontext.com/";
      $alt["Netscape"] = "Artcontext";

      $img["MSIE"] = "andyland.gif";
      $url["MSIE"] = "http://www.andyland.net";
      $alt["MSIE"] = "Andyland";

      $img["default"] = "andyland.gif";
      $url["default"] = "http://www.andyland.net";
      $alt["default"] = "Andyland";

      /* Do not modify the following nine lines */
      $browser="default";
      if (preg_match("/Mozilla/i",$_SERVER['HTTP_USER_AGENT'])){
        $browser="Netscape";
      }
      if (preg_match("/MSIE/i",$_SERVER['HTTP_USER_AGENT'])){
        $browser="MSIE";
      }
      $wh = getImageSize($img[$browser]);

      /*******************************************/

      print("Check out this browser picked site:<p>");
      print("<a href=$url[$browser]><img src=$img[$browser]
             $wh[3] border=0 alt=\"$alt[$browser]\"></a>");

?>