Forums / General Questions / adobe flash required message

adobe flash required message

Locked

Views: 4,853

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
15 Aug 2007, 3:39 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: adobe flash required message

...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.

15 Aug 2007, 3:57 PM
#3
stuff4toys avatar

stuff4toys

Totally Zenned

Join Date:
May 2007
Location:
SW Florida
Posts:
1,062
Plugin Contributions:
1

Re: adobe flash required message

canemasters:

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/download/download.cgi?P1_Prod_Version=ShockwaveFlash

and get flahs before using the site.

Thank you!
Don't remember how now, but 4 or 5 years ago I had a flash panel on a website, and had an "Alternate Image" for viewers that didn't have flash. It consisted of a static graphic that fit in the same place as the Flash presentation.

Newest Site: ChargerPros - Stuff4Toys

15 Aug 2007, 5:23 PM
#4
canemasters avatar

canemasters

Zen Follower

Join Date:
Mar 2007
Posts:
444
Plugin Contributions:
0

Re: adobe flash required message

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

15 Aug 2007, 7:14 PM
#5
stuff4toys avatar

stuff4toys

Totally Zenned

Join Date:
May 2007
Location:
SW Florida
Posts:
1,062
Plugin Contributions:
1

Re: adobe flash required message

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 ><>

 
<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="[URL]http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0[/URL]" ');
  document.write(' ID="script" WIDTH="460" HEIGHT="200" ALIGN="">');
  document.write(' <PARAM NAME=movie VALUE="[URL]http://www.trackermarine.com/gifs/PhotoPresentation.swf[/URL]"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=FF0000>  '); 
  document.write(' <EMBED src="[URL]http://www.trackermarine.com/gifs/PhotoPresentation.swf[/URL]" quality=high bgcolor=FF0000  ');
  document.write(' swLiveConnect=FALSE WIDTH="460" HEIGHT="200" NAME="script" ALIGN=""');
  document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="[URL="http://www.macromedia.com/go/getflashplayer%22%3E'"]http://www.macromedia.com/go/getflashplayer">'[/URL]);
  document.write(' </EMBED>');
  document.write(' </OBJECT>');
 } else{
  document.write('<IMG SRC="[URL]http://www.trackermarine.com/gifs/frontGraphic.jpg[/URL]" 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

15 Aug 2007, 7:21 PM
#6
stuff4toys avatar

stuff4toys

Totally Zenned

Join Date:
May 2007
Location:
SW Florida
Posts:
1,062
Plugin Contributions:
1

Re: adobe flash required message

This part went at the top of the page just below the

</head> <body>
 
<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

16 Aug 2007, 12:56 AM
#7
canemasters avatar

canemasters

Zen Follower

Join Date:
Mar 2007
Posts:
444
Plugin Contributions:
0

Re: adobe flash required message

Okay, I'm calling up my flash with:

<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>

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...?

Canemasters
www.canemasters.com

16 Aug 2007, 4:29 AM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: adobe flash required message

canemasters:

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...?

Look again at LibertyFlag's first posting of code ... see the <NOSCRIPT> section after the <SCRIPT>....</SCRIPT> stuff ? That's what you need.

.
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.

16 Aug 2007, 1:24 PM
#9
stuff4toys avatar

stuff4toys

Totally Zenned

Join Date:
May 2007
Location:
SW Florida
Posts:
1,062
Plugin Contributions:
1

Re: adobe flash required message

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 .

 
<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>

I have not seen this site with out Flash, so I don't know how it reacts without

Newest Site: ChargerPros - Stuff4Toys

16 Aug 2007, 1:58 PM
#10
stuff4toys avatar

stuff4toys

Totally Zenned

Join Date:
May 2007
Location:
SW Florida
Posts:
1,062
Plugin Contributions:
1

Re: adobe flash required message

Hey DrByte
So I tried playing with the later code from trackerboats.com and made a little web page to duplicate it.

 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"[URL]http://www.w3.org/TR/html4/loose.dtd[/URL]">
<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="[URL="http://www.trackerboats.com/JavaScript/ufo.js%22%3E%3C/script"]http://www.trackerboats.com/JavaScript/ufo.js"></script[/URL]>
</head>
<body>
<div style="width:950px; height:300px; border-bottom:2px solid #000;"><img src="[URL]http://www.trackerboats.com/images/frontF.jpg[/URL]" 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:"[URL]http://www.trackerboats.com/images/homeSlideShow.swf[/URL]", width:"950", height:"300", majorversion:"7", build:"0", wmode:"transparent" };
 UFO.create(FO, "homeSlideShow");
</script>
</body>
</html>

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?

Newest Site: ChargerPros - Stuff4Toys

16 Aug 2007, 4:15 PM
#11
canemasters avatar

canemasters

Zen Follower

Join Date:
Mar 2007
Posts:
444
Plugin Contributions:
0

Re: adobe flash required message

Wow, this is really lame. I've tried the suggestions listed on this page, and noting is working. It simply wont load an alternate image if flash is not installed. I've tried the <noscript> function, but nothing is working. I'm thinking about taking the flash out of the site entirely. I'm not about to loose customers just because they don't have flash installed. @#*@!! It took me 2 weeks to finish that header!

Canemasters
www.canemasters.com

16 Aug 2007, 5:07 PM
#13
canemasters avatar

canemasters

Zen Follower

Join Date:
Mar 2007
Posts:
444
Plugin Contributions:
0

Re: adobe flash required message

WOOHOO! FIXED IT!

Used this code:

<script type="text/javascript" src="includes/templates/canemasters/jscript/swfobject.js"></script> <object type="application/x-shockwave-flash" data="includes/templates/canemasters/images/flash/header.swf" width="800" height="185"> <param name="movie" value="includes/templates/canemasters/images/flash/header.swf" /> <img src="includes/templates/canemasters/images/header.jpg" width="800" height="185" alt="header" title="header"/></object>

Now I just have to include an image map for the .jpg header
I've done that before though.

Canemasters
www.canemasters.com

16 Aug 2007, 5:56 PM
#14
canemasters avatar

canemasters

Zen Follower

Join Date:
Mar 2007
Posts:
444
Plugin Contributions:
0

Re: adobe flash required message

Just a follow up for anybody needing this info:

I basically wanted to have a flash header, but for those people who did not have flash, I wanted a .jpg version of the header to show up. It wouldn't be as functional, but it's still better than nothing. I also needed to use an image map with the .jpg to make everything clickable. Here's how I did it. Make sure you are using overides on the tpl_header.php file!!!

<script type="text/javascript" src="includes/templates/canemasters/jscript/swfobject.js"></script> <object type="application/x-shockwave-flash" data="includes/templates/canemasters/images/flash/header.swf" width="800" height="185"> <param name="movie" value="includes/templates/canemasters/images/flash/header.swf" /> <img src="includes/templates/canemasters/images/header.jpg" border="0" width="800" height="185" ISMAP USEMAP="#headermap"/></object>

<map id ="headermap" name="headermap">
<area shape="poly" coords="48,6,39,31,122,31,131,6" href="index.php" title="" />
<area shape="poly" coords="138,6,129,31,213,31,222,5,138,5" href="index.php?main_page=page&id=3&chapter=0" title="" />
<area shape="poly" coords="228,5,312,5,302,33,218,33" href="index.php?main_page=page&id=4&chapter=0" title="" />
<area shape="poly" coords="318,5,402,5,392,32,308,32" href="index.php?main_page=page&id=20&chapter=0" title="" />
<area shape="poly" coords="407,5,493,5,482,32,398,32" href="index.php?main_page=page&id=7&chapter=0" title="" />
<area shape="poly" coords="497,6,581,6,571,32,488,32" href="index.php?main_page=page&id=13&chapter=0" title="" />
<area shape="poly" coords="587,5,673,5,662,33,578,33" href="index.php?main_page=contact_us" title="" />
<area shape="poly" coords="679,6,761,6,751,32,668,32" href="index.php?main_page=login&zenid=e1cdb7491df4***193c7f9c6f3fcbd" title="" />
</map>

Should help anybody wanting to do the same thing.

Good luck! :clap:

Canemasters
www.canemasters.com

16 Aug 2007, 6:39 PM
#15
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: adobe flash required message

It's good to see this laid out in full - thanks for posting.

One comment: you should not have a zenid hardcoded in the login link.