Questions

Answer

How to display alternative content when there is no Flash support

To display an alternative content when there is no Flash support, like a browser that doesn't have Adobe Flash Player plugin installed or an Apple mobile device like iPhone or iPad, you have to add the alternative content between the component's opening DIV tag and closing DIV tag.

This is an example for 3D Banner FX:

<div id="Div3DBannerFX">Alternative content here</div>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
 var flashvars = {};
 var params = {};
 params.base = "";
 params.scale = "noscale";
 params.salign = "tl";
 params.wmode = "transparent";
 params.allowFullScreen = "true";
 params.allowScriptAccess = "always";
 swfobject.embedSWF("3DBannerFX.swf", "Div3DBannerFX", "600", "374", "9.0.0", false, flashvars, params);
</script>

You can use custom HTML code instead of Alternative content here in the above code, like this example that show you how to display an image if there is no Flash support.

<div id="Div3DBannerFX"><img src="banner.jpg" /></div>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
 var flashvars = {};
 var params = {};
 params.base = "";
 params.scale = "noscale";
 params.salign = "tl";
 params.wmode = "transparent";
 params.allowFullScreen = "true";
 params.allowScriptAccess = "always";
 swfobject.embedSWF("3DBannerFX.swf", "Div3DBannerFX", "600", "374", "9.0.0", false, flashvars, params);
</script>

For WordPress or Joomla websites you can find out in the install instructions how to display alternative content.

Comments

  • Page:
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • >
  • loading comments...

almaidah801

Posted 3 years ago

hai, i have a problem…

i want to open my swf files in my browser (online) but it doesn’t work. In local host the swf is work fine but when into online i get nothing.

here’s the xml code :

<?xml version=“1.0” encoding=“UTF-8”?>
<preloader src=“materi_panca indera_tes_xml2.swf” width=“1024” height=“768” bgcolor=“0×000000” color=“0xFFFFFF” />

and here’s in my html’s code :

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
<html xmlns=“http://www.w3.org/1999/xhtml” lang=“en” xml:lang=“en”> <head> <meta http-equiv=“Content-Type” content=“text/html; charset=iso-8859-1” /> <script type=“text/javascript” src=“swfobject.js”></script> </head>
<body>
<script type=“text/javascript”></script>
<object classid=“clsid:D27CDB6E-AE6D-11cf-96B8-444553540000”
codebase=“http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0” width=“1024” height=“768”>
<param name=“movie” value=“preloader.swf” />
<param name=“quality” value=“high” />
<param name=“allowFullScreen” value=“true” />
<embed src=“preloader.swf”
quality=“high”
type=“application/x-shockwave-flash”
width=“1024”
height=“768”
pluginspage=“http://www.macromedia.com/go/getflashplayer” />
</embed>
</object>
</body>
</html>

i’ve tried but still i got nothing. Could you help me, please? i really wait your answer. Thanks before.

SHREE RAJAN BENADIKAR

Posted 4 years ago

hi,i want to buy iball slide 7803 q900.But when i check online it is showing “browser support flash——no”.i require flash for share chart analysis.So pls let me know the solution so that i can use this tablet with flash support

Jasmine

Posted 4 years ago

i want to use bidvertiser, propellar, clicksor and qadbara ad banners in my blog.

i want to display alternate ads like first bidvertiser second propeller third clicksor and so on,

Please help me to achieve this i am newbie

Bartol Buncic

Posted 4 years ago

Hi,
I have a question. If I want for a web page to show an image called ˝Logo˝ instead of Flash content, how would it look like?
I have read a lot of posts and am not sure where actually to put it. I guess it is very simple.
If you do not have the time I would appreciate a little bit of help, thanks in advance!
Here is the part of the code;

<object classid=“clsid:d27cdb6e-ae6d-11cf-96b8-444553540000” codebase=“http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0” width=“100%” height=“100%” id=“flash” align=“middle”>
<param name=“allowScriptAccess” value=“sameDomain” />
<param name=“movie” value=“flash.swf” />
<param name=“quality” value=“high” />
<param name=“scale” value=“noscale” />
<param name=“salign” value=“t” />
<param name=“bgcolor” value=”#1889d7” />
<embed src=“flash.swf” quality=“high” scale=“noscale” salign=“t” bgcolor=”#1889d7” width=“100%” height=“100%” name=“flash” align=“middle” allowScriptAccess=“sameDomain” type=“application/x-shockwave-flash” pluginspage=“http://www.macromedia.com/go/getflashplayer” />
</object>
</noscript>
</td> </tr>
</table>

Denis

Posted 5 years ago

How to display alternative content when there is no Flash support

Hello,
Can you help me to finish this script please
19 additional images in the same folder (_fields/01png +02.png + ........ to 20.png)

<div id=“Div3DCarouselMenuAS2FX”><img src=”_fields/01.png” /></div>
<script type=“text/javascript” src=”_fields/swfobject.js”></script>
<script type=“text/javascript”> var flashvars = {}; var params = {}; params.base = “_fields”; params.scale = “noscale”; params.salign = “tl”; params.wmode = “transparent”; params.allowFullScreen = “true”; params.allowScriptAccess = “always”; swfobject.embedSWF(”_fields/3DCarouselMenuAS2FX.swf”, “3DCarouselMenuAS2FX”, “600”, “374”, “9.0.0”, false, flashvars, params);
</script>

FlashXML Support

Hi. I can’t see the problem. Can you be more explicit?

  • loading comments...
  • Page:
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • >

Do you have a question?

you will get an answer in 24 hours, tops.

(required) Only alphanumeric characters allowed
(required) (will not be published)
Please type a message! Your message is too long! Either try to keep within 1500 characters, or contact our support team via email at support [at] flashxml.net.
(will not be published)
You mistyped the two words!
Can't read? Change the image
Format your comments using Textile: *bold*, _italic_, "link text":address, @code@
Connect to us on Facebook Follow us on Twitter Subscribe to our RSS feed
Copyright © FlashXML.net 2009 - 2019