Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi
I need help to redirect people that use my homepage and don't have Flashplayer installed. My idea is that they should be redirected to a page with no flash on.
my code look like this :
<script type="text/javascript" src="swfobject.js"></script><!--Checking for flashplayer--><div> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="800" height="600" id="myFlashContent"> <param name="movie" value="untitled.swf" /> <!--[if !IE]>--> <object type="application/x-shockwave-flash" data="untitled.swf" width="800" height="600"> <!--<![endif]--> <a href="/en/industry-division.aspx"> <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /> </a> <!--[if !IE]>--> </object> <!--<![endif]--> </object></div>
But instead of link to get the flashplayer I want them to atomatic get to the page without flash.
Can anyone help me with the code for that??
Anita
Anita,
I haven't tested it but something like this should work: (Note: This uses swfobject 2)
<div id="myContent"> <p>Alternative content</p></div><script type="text/javascript">var flashvars = {};var params = {};var attributes = {};if(swfobject.hasFlashPlayerVersion("8.0.0")){ swfobject.embedSWF("untitled.swf", "myContent", "800", "600", "9.0.0","expressInstall.swf", flashvars, params, attributes);} else { window.location = "http://umbraco.org";}</script>
swfobject documentation: http://code.google.com/p/swfobject/wiki/documentation
Hope this helps,
--Donald
Hi Donald
Thanks for your quick reply.
It was excatly what I was looking for. Now I just have to figure out, how to put it into a macro running the menu bar. :-)
Hi Anita,
alternatively you can use the noscript> tags to output content that doesn't need JS/Flash, this way you can have both content on one page.
Just thought I might post an alternative, Donald's solution will work fine though.
Cheers,Sascha
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How to redirect to a new page if no flashplayer
Hi
I need help to redirect people that use my homepage and don't have Flashplayer installed. My idea is that they should be redirected to a page with no flash on.
my code look like this :
<script type="text/javascript" src="swfobject.js"></script>
<!--Checking for flashplayer-->
<div>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="800" height="600" id="myFlashContent">
<param name="movie" value="untitled.swf" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="untitled.swf" width="800" height="600">
<!--<![endif]-->
<a href="/en/industry-division.aspx">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
</a>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
But instead of link to get the flashplayer I want them to atomatic get to the page without flash.
Can anyone help me with the code for that??
Anita
Anita,
I haven't tested it but something like this should work: (Note: This uses swfobject 2)
swfobject documentation: http://code.google.com/p/swfobject/wiki/documentation
Hope this helps,
--
Donald
Hi Donald
Thanks for your quick reply.
It was excatly what I was looking for. Now I just have to figure out, how to put it into a macro running the menu bar. :-)
Anita
Hi Anita,
alternatively you can use the noscript> tags to output content that doesn't need JS/Flash, this way you can have both content on one page.
Just thought I might post an alternative, Donald's solution will work fine though.
Cheers,
Sascha
is working on a reply...