This script will detect if a user has flash, if not, a picture will be displayed. However, there is an error somewhere because it will not work with Mozilla, it works fine however in IE.
Here is the entire code for the page.
Code:<?php
ob_start( 'ob_gzhandler' );
?>
<html>
<head>
<title>.:. Mr. Bob's Web Design .:. Support .:. Web Design, Hosting, Marketing, Search Engine Submissions, Web Site Optimization, Guaranteed Search Engine Submission, For everyone!</title>
<meta name="resource-type" content="document">
<meta name="distribution" content="GLOBAL">
<meta name="description" content="A low cost Web Design service. We also offer Web Hosting, and Web Site Marketing(including search engine submissions that guarantee search engine placement). A one stop perfect solution for all types of Web Sites.">
<meta name="copyright" content="Mr. Bob's Web Design @ 2000, 2001, 2002, 2003">
<meta name="keywords" content="web page design, web design, design, business, media, communications, animation, graphics, marketing, page, designers, search engine sumbissions, seach engine, site optimization, hosting, low cost hosting, cheap hosting, solution, guarantee">
<meta name="author" content="Mr. Bob's Web Design">
<meta http-equiv="Reply-To" content="[email protected]">
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="content-language" content="en">
<meta name="rating" content="General">
<meta name="revisit-after" content="15 Days">
<META NAME="ROBOTS" CONTENT="Index, Follow">
<style>
td{font-family:Tahoma;font-size:11px;color:#ffffff}
</style>
<LINK rel = STYLESHEET
href = "scripts/main.css"
Type = "text/css" >
<script src="scripts/pop_up.js"
type="text/javascript"></script>
</head>
<body topmargin="0" leftmargin="0" bottommargin="0" rightmargin="0">
<table cellpadding="0" cellspacing="0" border="0" height="100%">
<tr>
<td rowspan="10" width="50%" height="100%" background="images/line1.jpg" style="background-position:right top; background-repeat:repeat-y"></td>
<td rowspan="10" width="1" bgcolor="#000000"></td>
<td valign="top" height="100%" bgcolor="#4F555B">
<table cellpadding="0" cellspacing="0" border="0" height="100%">
<tr>
<td valign="top">
<SCRIPT LANGUAGE=JavaScript1.1>
<!--
var MM_contentVersion222 = 6;
var plugin2 = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin2 ) {
var words = navigator.plugins["Shockwave Flash"].description.split(" ");
for (var i = 0; i < words.length; ++i)
{
if (isNaN(parseInt(words[i])))
continue;
var MM_PluginVersion2 = words[i];
}
var MM_FlashCanPlay2 = MM_PluginVersion2 >= MM_contentVersion2;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0
&& (navigator.appVersion.indexOf("Win") != -1)) {
document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
document.write('on error resume next \n');
document.write('MM_FlashCanPlay2 = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion222)))\n');
document.write('</SCR' + 'IPT\> \n');
}
if ( MM_FlashCanPlay2 ) {
document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000');
document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" ');
document.write(' ID="script" WIDTH="230" HEIGHT="131" ALIGN="">');
document.write(' <PARAM NAME=movie VALUE="flash/logo.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#4F555C> ');
document.write(' <EMBED src="flash/logo.swf" quality=high bgcolor=#4F555C ');
document.write(' swLiveConnect=FALSE WIDTH="230" HEIGHT="131" usemap="#logo" ALIGN=""');
document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
document.write(' </EMBED>');
document.write(' </OBJECT>');
} else{
document.write('<IMG SRC="images/welcomesp.gif" WIDTH="230" HEIGHT="131" usemap="#logo" BORDER=0>');
}
//-->
</script>
<NOSCRIPT><IMG SRC="images/welcomesp.gif" WIDTH="230" HEIGHT="131" usemap="#logo" BORDER=0></noscript>
</td>
<td><img src="images/topConnector.jpg" width="5" height="131"></td>
</tr>
<tr>
<td colspan="2">
<a title="Web Design" href="design/index.php" alt="Web Design">
<img src="images/web_design_s.png" border="0" width="235" height="95"></a></td>
</tr>
<tr>
<td colspan="2">
<a title="Web Hosting" href="hosting/index.php">
<img src="images/web_hosting_s.png" border="0" width="235" height="101"></a></td>
</tr>
<tr>
<td colspan="2">
<a title="Web Marketing" href="marketing/index.php">
<img src="images/web_marketing_s.png" border="0" width="235" height="103"></a></td>
</tr>
<tr>
<td colspan="2">
<a title="Developers" href="dev/index.php">
<img src="images/developers_s.png" border="0" width="235" height="95"></a></td>
</tr>
<tr>
<td colspan="2">
<script language="javascript" src="http://mrbobdouglas.com/livehelp/livehelp_js.php?department=1"></script></td>
</tr>
<tr>
<form action="">
<td colspan="2" width="235" height="79" background="images/login_bg.jpg" valign="top">
<div style="padding-top:15px;padding-left:35px;">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td style="font-size:10px;">Username</td>
<td style="padding-left:12px;">
<input type="text" style="width:80;height:20" size="20"></td>
</tr>
<tr><td height="3"></td></tr>
<tr>
<td style="font-size:10px;">Password</td>
<td style="padding-left:12px;">
<input type="password" style="width:80;height:20" size="20"></td>
</tr>
</table>
</div>
</td>
</form>
</tr>
<tr>
<td colspan="2">
<img src="images/login_enter.jpg" usemap="#enter" border="0" width="235" height="30"></td>
<map name="enter">
<area shape="rect" coords="70,0,155,25" href="">
</map>
</tr>
<tr>
<td height="100%" valign="top">
</td>
</tr>
<tr>
<td colspan="2">
<img src="images/bottoms1.jpg" width="235" height="25"></td>
</tr>
</table>
</td>
<td valign="top" height="100%" background="images/bgs.jpg">
<table cellpadding="0" cellspacing="0" border="0" height="100%">
<tr>
<td>
<SCRIPT LANGUAGE=JavaScript1.1>
<!--
var MM_contentVersion = 6;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
var words = navigator.plugins["Shockwave Flash"].description.split(" ");
for (var i = 0; i < words.length; ++i)
{
if (isNaN(parseInt(words[i])))
continue;
var MM_PluginVersion = words[i];
}
var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0
&& (navigator.appVersion.indexOf("Win") != -1)) {
document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
document.write('on error resume next \n');
document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
document.write('</SCR' + 'IPT\> \n');
}
if ( MM_FlashCanPlay ) {
document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000');
document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" ');
document.write(' ID="script" WIDTH="545" HEIGHT="292" ALIGN="">');
document.write(' <PARAM NAME=movie VALUE="flash/support.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#4F555C> ');
document.write(' <EMBED src="flash/support.swf" quality=high bgcolor=#4F555C ');
document.write(' swLiveConnect=FALSE WIDTH="545" HEIGHT="292" NAME="script" ALIGN=""');
document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
document.write(' </EMBED>');
document.write(' </OBJECT>');
} else{
document.write('<IMG SRC="images/welcomesp.gif" WIDTH="545" HEIGHT="292" usemap="#script" BORDER=0>');
}
//-->
</script>
<NOSCRIPT><IMG SRC="images/welcomesp.gif" WIDTH="545" HEIGHT="292" usemap="#script" BORDER=0></noscript>
</td>
</tr>
<tr>
<td><img src="images/subheaderTop.jpg" width="545" height="35"></td>
</tr>
<tr>
<td width="485" height="100%" background="images/bgs1.jpg" style="background-repeat:no-repeat;background-position:top;padding-top:10px;padding-bottom:10px;padding-left:55px;">
<div style="padding-top:10px;padding-left:20px;padding-right:20px;">
If you need to contact
our support team, please use the information below:<p> </p>
<p>
Contact Information<hr color="#80A4C0">
<p></p>
<dl>
<dd>Phone: 480-205-9218</dd>
<dd>E-Mail:
<a class="Menu" href="mailto:[email protected]">
[email protected]</a>
</dd>
<dd>Contact Form:
<a onclick="NewWindow(this.href,'Info','570','400','yes','left');return false" onfocus="this.blur()" class="menu" href="form.htm">Contact Form</a>.</dd>
<dd>
<a class="menu" target="_blank" href="http://mrbobdouglas.com/livehelp/livehelp.php?department=1">
Live Help</a>! Click to speak directly to a live support agent.</dd>
<dt> </dt>
</dl>
<p>A representative usually responds within the hour.</p>
<p> </p>
<p>We hope to hear from you soon. Sales operators are available
24/7 through our automatic sales form, as well as e-mail.</p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</div>
</td>
</tr>
<tr>
<td><img src="images/subheaderBottom.jpg" width="545" height="35"></td>
</tr>
</table>
</td>
<td rowspan="10" width="1" bgcolor="#000000"></td>
<td rowspan="10" width="50%" height="100%" background="images/line2.jpg" style="background-position:left top; background-repeat:repeat-y"></td>
</tr>
<tr>
<td colspan="2">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="305" height="39" background="images/copywrite.gif">
<p align="center">
</td>
<td><a href="index.php">
<img src="images/footer/f_home.jpg" border="0" width="71" height="39"></a><a href="support.php"><img src="images/footer/f_support.jpg" border="0" width="62" height="39"></a><a href="contact_us.php"><img src="images/footer/f_contact_us.jpg" border="0" width="74" height="39"></a><a href="design/index.php"><img src="images/footer/f_design.jpg" border="0" width="52" height="39"></a><a href="hosting/index.php"><img src="images/footer/f_hosting.jpg" border="0" width="60" height="39"></a><a href="marketing/index.php"><img src="images/footer/f_marketing.jpg" border="0" width="59" height="39"></a><a href="resellers/index.php"><img border="0" src="images/footer/f_resellers.gif" width="51" height="39"></a><a href="portfolio/index.php"><img border="0" src="images/footer/f_portfolio.gif" width="46" height="39"></a></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>