Hi everyone, 

I have recently built a non-flash version of my website that I would like 
to be able to implement a detect and redirect to. I have tried multiple 
methods after reading the SWFObject docmentation and still havent been able 
to get it to work.

The js file for SWFobject resides under pathway js/swfobject.js

I have tried using fo.vars redirctURL, If/else methods, etc. 

I used dynamic publishing with the generator and tried to include a 
redirect in the alternate method to no avail.

All I need is a simple redirect. I.E. if the user has FP 6.0 or higher, 
they get directed to the flash site. For lower flash versions, or no flash 
at all they get directed to the non-flash site.

Any help would be greatly appreciated:

Here is the main chunk of code I have been working with, excluding all the 
other HTML stuff on the site:

<head>
<script>
if (swfobject.hasFlashPlayerVersion("7.0.0")) {
// User has flash

   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" 
/>
  <script type="text/javascript" src="js/swfobject.js"></script>
  <script type="text/javascript">
   var flashvars = {};
   var params = {};
   params.quality = "best";
   params.bgcolor = "ebebea";
   var attributes = {};
   attributes.id = "non-flash";
   swfobject.embedSWF("flash/menu_vf8.swf", "Non-flash", "980", "190", 
"6.0.0", false, flashvars, params, attributes);
  </script>
        
 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <script type="text/javascript" src="js/swfobject.js"></script>
  <script type="text/javascript">
   var flashvars = {};
   var params = {};
   params.quality = "best";
   params.bgcolor = "ebebea";
   var attributes = {};
   attributes.id = "non-flash 1";
   swfobject.embedSWF("flash/slideshow_vf8.swf", "Non-flash 1", "980", 
"486", "6.0.0", false, flashvars, params, attributes);
  </script>

} else {
// User does not have flash
window.location="non-flash/index.html";
}
</script>
 </head>
<body id="page1">
<div id="main">
<!-- header -->
<body>
<div id="Non-flash">
</div>

<div id="Non-flash 1">
</div>
</body> 

-- 
You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/swfobject/-/JnETa8_NuV8J.
To post to this group, send email to swfobject@googlegroups.com.
To unsubscribe from this group, send email to 
swfobject+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en.

Reply via email to