Home arrow PHP Tutorials

Translate This Website
Friday, 12 March 2010
Web Development
Request a Quote
Script Categories
RSS Media Grabber Funny Videos & Pictures Life Stories (Flash) Video Search & Download Video Downloader Script Country on Sale Advanced Polls Phone Upload/SMS Scripts PhotoCube Script SlideShow Creation Script Create Custom Smiley Script Short URLs & Subdomains Put your text on images Watermark & Image Hosting Joomla Components Low Cost Scripts
Partners
Online HTML Editor
Wordpress Themes
Broadband Speed Test
Wireless Networking Store
San Francisco Taxi
Free Adwords Tutorial


Browser-Dependent Stylesheets Print E-mail

Simply copy the below code into the head of your PHP document. Remember, the page your working on must have a .php extension, and your server must be running PHP. Like in the above code, you need to specify the path of the two stylesheets. I've done so below in red.

<?
if ($name = strstr ($HTTP_USER_AGENT, "MSIE"))
{
?>
<link rel="stylesheet" xhref="internet-explorer-stylesheet.css">
<?
}
else if ($name = strstr ($HTTP_USER_AGENT, "Netscape"))
{
?>
<link rel="stylesheet" xhref="netscape-stylesheet.css">
<?
}
else
{
?>
<link rel="stylesheet" xhref="other-stylesheet.css">
<?
}
?>

Credit: www.spoono.com 





Reddit!Del.icio.us!Facebook!Slashdot!Netscape!Technorati!StumbleUpon!Newsvine!Furl!Yahoo!Ma.gnolia!Free social bookmarking plugins and extensions for Joomla! websites!
 
< Prev   Next >
Services
Script Installation
Hosting
Free Image Hosting
PageRank Checker
Login Form
On Sale
RSS Media Grabber - Get 100s of Videos
RSS Media Grabber - Get 100s of Videos
$129.00
$12.90
You Save: 90.00%
Add to Cart
Home Announcements Support Newsletter Forum PHP Articles PHP Tutorials Scripts FAQs Free Scripts Links Contacts
Copyrighted © 2008 phppod.com