# The swfobject,and the missing main content

**URL:** https://forum.kirupa.com/t/the-swfobject-and-the-missing-main-content/325458
**Category:** Uncategorized
**Created:** [October 17, 2011, 8:56am UTC](https://forum.kirupa.com/t/the-swfobject-and-the-missing-main-content/325458 "2011-10-17T08:56:16Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![textureworks](https://avatars.discourse-cdn.com/v4/letter/t/919ad9/32.png) [@textureworks](https://forum.kirupa.com/u/textureworks)
#### Post date: [October 17, 2011, 8:56am UTC](https://forum.kirupa.com/t/the-swfobject-and-the-missing-main-content/325458/1 "2011-10-17T08:56:16Z")

</div>

I have been trying to build in alternative content into a flash website using  
SWFObject 2 HTML and JavaScript generator v1.2.  
The idea is to have alternative content appear if the request comes from a iphone or ipad.  
When I load the html from the swfobject generator the browser bypasses the main swf website and goes straight to the alternative content , that is even when view on a browser that has flash installed. I have included the html generated code .  
It would be great if someone can shed some light, thanks.  
\<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “[http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd](http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd)”\>  
\<html xmlns=“[http://www.w3.org/1999/xhtml](http://www.w3.org/1999/xhtml)” lang=“en” xml:lang=“en”\>  
\<head\>  
\<title\>\</title\>  
\<meta http-equiv=“Content-Type” content=“text/html; charset=iso-8859-1” /\>  
\<script type=“text/javascript” src=“swfobject.js”\>\</script\>  
\<script type=“text/javascript”\>  
var flashvars = {};  
var params = {};  
var attributes = {};  
attributes.align = “middle”;  
swfobject.embedSWF(“MichaelAngove.swf”, “AlternativeContent”, “100%”, “100%”, “9.0.0”, “expressInstall.swf”, flashvars, params, attributes);  
\</script\>  
\</head\>  
\<body\>  
\<div id=“AlternativeContent”\>  
\<a href=“[http://www.adobe.com/go/getflashplayer](http://www.adobe.com/go/getflashplayer)”\>  
\<img src=“[http://www.adobe.com/images/shared/download\_buttons/get\_flash\_player.gif](http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif)” alt=“Get Adobe Flash player” /\>  
\</a\>  
\</div\>  
\</body\>  
\</html\>
