# SWFobject2 alt HTML site redirect help

**URL:** https://forum.kirupa.com/t/swfobject2-alt-html-site-redirect-help/310184
**Category:** Uncategorized
**Created:** [June 3, 2010, 2:07pm UTC](https://forum.kirupa.com/t/swfobject2-alt-html-site-redirect-help/310184 "2010-06-03T14:07:03Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Terraform](https://avatars.discourse-cdn.com/v4/letter/t/ed8c4c/32.png) [@Terraform](https://forum.kirupa.com/u/Terraform)
#### Post date: [June 3, 2010, 2:07pm UTC](https://forum.kirupa.com/t/swfobject2-alt-html-site-redirect-help/310184/1 "2010-06-03T14:07:03Z")

</div>

Hey all  
I am still pretty new to the whole SWFObject thing  
and I have this code that is working great.  
but I have no idea where to put (or how to put) a link to an alt site  
for pc’s and devices that are not Flash enabled…

this is my current working code.

```auto

<!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>
		<title>version 3</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 = {
				bgcolor : "#000000",
				allowFullScreen : "true",
				scale :"noscale",
				allowScriptAccess : "always",
				swLiveConnect : "true"				
			};
			var attributes = {};
			swfobject.embedSWF("preview.swf", "myContent", "100%", "100%", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
		</script>
		<style type="text/css">
            html, body, div {
                height: 100%;
                overflow: hidden;
            }
            body {
                background: #000000;
                font: 86% Arial, sans-serif;
                margin: 0;                
            }
            #main {
                height: 100%;
            }
		</style>
	</head>
	<body bgcolor="#000000">		
		<div id="myContent">
			<h1>Alternative content</h1>
			<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
		</div>
	</body>
</html>

```

and say I want the user to be redirected to the address below if on a iPhone  
or some other thing that does not support flash.

```auto

http://www.myHTMLsite.com

```
