I need my site to display a sign that only appears to users who do not have flash installed, that the need to go to
http://www.adobe.com/shockwave/downl...ShockwaveFlash
and get flahs before using the site.
Thank you!
I need my site to display a sign that only appears to users who do not have flash installed, that the need to go to
http://www.adobe.com/shockwave/downl...ShockwaveFlash
and get flahs before using the site.
Thank you!
Canemasters
www.canemasters.com
...and if they don't feel like getting Flash installed, or for some reason can't, you don't want to sell to them?
Best practice is to allow at least basic functional use to anybody visiting your site. You can enhance the experience with flash or javascript if you want, but there should be a way to use your site without them.
So it would be best practice to make an alternate .jpg header so users can at least get around... Sounds good. I'll have to make one, but that should be no problem. I'll worry how to make it work after I get it made.
Thank you.
Canemasters
www.canemasters.com
Now this is several years old, not sure how it's done now. And based on Macromedia not Adobe Flash, but I would assume it's similar because this script still works. JOhn ><>
Code:<MAP NAME="slideshow"> <AREA COORDS="0,0,0,0" HREF="#"> </MAP> <SCRIPT language=JavaScript1.1> <!-- if ( MM_FlashCanPlay ) { document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'); document.write(' codebase="http://download.macromedia.com/pub/s...ersion=6,0,0,0" '); document.write(' ID="script" WIDTH="460" HEIGHT="200" ALIGN="">'); document.write(' <PARAM NAME=movie VALUE="http://www.trackermarine.com/gifs/PhotoPresentation.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=FF0000> '); document.write(' <EMBED src="http://www.trackermarine.com/gifs/PhotoPresentation.swf" quality=high bgcolor=FF0000 '); document.write(' swLiveConnect=FALSE WIDTH="460" HEIGHT="200" 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="http://www.trackermarine.com/gifs/frontGraphic.jpg" WIDTH="460" HEIGHT="200" usemap="#slideshow" BORDER=0>'); } //--> </SCRIPT><NOSCRIPT><IMG SRC="Noah_Images/BANNERS/frontGraphic[1].jpg" USEMAP="#slideshow" BORDER=0 width="460" height="200"></NOSCRIPT>
Newest Site: ChargerPros - Stuff4Toys
This part went at the top of the page just below the
</head>
<body>
Code:<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'); } //--> </SCRIPT>
Newest Site: ChargerPros - Stuff4Toys
Okay, I'm calling up my flash with:
I've gone ahead and made a jpg of the header. What do I do to make it call up this .jpg file if they do not have a flash browser? I'm thinking I have to do it in the swfobject.js file...?<script type="text/javascript" src="includes/templates/canemasters/jscript/jscript_swfobject.js"></script>
<div id="flashcontent">
<strong>You need to upgrade or install Adobe Flash Player in order to properly navigate our web site. VISIT --->
<a href="http://www.adobe.com/go/getflashplayer" target="_blank">www.Adobe.com</a>
</div></strong>
<script type="text/javascript">
var so = new SWFObject("includes/templates/canemasters/images/flash/header.swf", "header", "800", "185", "6", "#ffffff");
so.write("flashcontent");
</script>
Canemasters
www.canemasters.com
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Here's another one, (a little more current) this one loads the frontF.jpg first then the flash loads over the top. I don't have the java for the top of the page for this one. See it at www.trackboats.com .
I have not seen this site with out Flash, so I don't know how it reacts withoutCode:<div style="width:950px; height:300px; border-bottom:2px solid #000;"><img src="images/frontF.jpg" border="0"></div> <div id="homeSlideShow" style="width:950px; height:300px; position:absolute; top:83px; z-index:99;"></div> <script type="text/javascript"> var FO = { movie:"/images/homeSlideShow.swf", width:"950", height:"300", majorversion:"7", build:"0", wmode:"transparent" }; UFO.create(FO, "homeSlideShow"); </script>
Last edited by Stuff4Toys; 16 Aug 2007 at 02:26 PM. Reason: Spell Check
Newest Site: ChargerPros - Stuff4Toys
Hey DrByte
So I tried playing with the later code from trackerboats.com and made a little web page to duplicate it.
When the page loads the frontF.jpg loads low on the screen and then the flash pushes it up and loads in the lower position. How did they get it to load over the top? Next is this ufo.js available to the public somewhere?Code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script language="JavaScript" type="text/javascript" src="http://www.trackerboats.com/JavaScript/ufo.js"></script> </head> <body> <div style="width:950px; height:300px; border-bottom:2px solid #000;"><img src="http://www.trackerboats.com/images/frontF.jpg" border="0"></div> <div id="homeSlideShow" style="width:950px; height:300px; position:absolute; top:83px; z-index:99;"></div> <script type="text/javascript"> var FO = { movie:"http://www.trackerboats.com/images/homeSlideShow.swf", width:"950", height:"300", majorversion:"7", build:"0", wmode:"transparent" }; UFO.create(FO, "homeSlideShow"); </script> </body> </html>
Newest Site: ChargerPros - Stuff4Toys