Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Plugin Detection Question???

Status
Not open for further replies.

TigerGirl7

Programmer
Apr 8, 2003
152
US
Hi,

I created a video that I want to play on my homepage. I created two versions: one for Flash 6, and one for Flash 8. I love how the Flash 8 video looks, but I want to have a fall back for users who only have Flash 6 installed.

Using Deconcept's SWFObject - - it looks like I can detect whether the user has the Flash 8 plugin, and if not redirect the user to an alternate page where they can see the Version 6 video.

Is this the best way to do this? I was hoping there's be a way to display an alternate swf file depending on the user's version of Flash.

I'm also very concerned about any SEO implications with this method (if any).

Cheers!
 
SWF Object is currently (arguably) the best choice for embedding SWF in HTML.

I don't think there are any differences between SWF Object and other methods in terms of SEO - I don't think SE care about code.

Kenneth Kawamoto
 
I'm trying to setup my page so that users who don't have the Flash 8+ plugin are redirected to Google (this is just for testing purposes).

I'm using the following code but it doesn't seem to work:

<html xmlns=" xml:lang="en" lang="en">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>home_f6</title>
<!-- SWFObject embed by Geoff Stearns geoff@deconcept.com -->
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
var so = new SWFObject("home_f8.swf", "mymovie", "259", "236", "8", " "#336699", );
so.write("flashcontent");

</script>

</head>
 
First of all you can't create a Flash object inside of the HTML <head> tag. Put it in <body>.

Secondly, SWF Object Javascript writes <object>/<embed> tags in the specified element. In your HTML there aren't any. If you want to use [tt]so.write("flashcontent");[/tt] then you have to have <div id="flashcontent"></div>.

Anyway you must read the instruction:

Kenneth Kawamoto
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top