note 101314 deleted from function.get-browser by cmb

From: Date: Sun, 23 Feb 2020 08:57:05 +0000
Subject: note 101314 deleted from function.get-browser by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-214197@lists.php.net to get a copy of this message
Note Submitter: Simeon ---- This code is for placing a box in the corner of IE user's page warning of the disregard the web-designer has for the website's appearance in IE. Call the box with ie_box(). Style and position the box how you want using the iebox css class. <?php function using_ie() { $u_agent = $_SERVER['HTTP_USER_AGENT']; $ub = False; if(preg_match('/MSIE/i',$u_agent)) { $ub = True; } return $ub; } function ie_box() { if (using_ie()) { ?> <div class="iebox"> This page is not designed for Intenet Explorer. If you want to see this webpage as intended, please use a standards compliant browser, such as <a href="http://www.google.com/chrome">Google Chrome</a>. </div> <?php return; } } ?>

« previous php.notes (#214197) next »