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.
<!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.
http://www.myHTMLsite.com