arteye
12-15-2008, 01:20 AM
I've used the old version of swfobject (1.5) and someone helped me earlier update my page code using 2.1 rather than the old version of swfobject.
The thing is I want the use of swfobject to be dynamic and the code I seem to have here is the static version. I went and read up on the documentation of the new version of swfobject (http://code.google.com/p/swfobject/wiki/documentation) and have toyed with updating it to what I want but I just can't seem to nail it.
Can someone help me update this code to utilize the dynamic version? THANKS SO MUCH!
<!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></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="includes/swfobject21.js"></script>
<script type="text/javascript" src="includes/swffit.js"></script>
<script type="text/javascript">
swfobject.registerObject("myId", "8.0.0", "swfobject/expressInstall.swf");
swffit.fit("myId",964,850);
</script>
<style type="text/css">
/* hide from ie on mac \*/
html {
height: 100%;
overflow: hidden;
}
#flashcontent {
height: 100%;
}
#alert {
background: #666;
border: #FFF 1px solid;
margin: 50px;
padding: 20px;
color: #FFF;
font-family: verdana, arial, helvetica;
font-size: 12px;
}
/* end hide */
body, object, embed, #flashcontent {
height: 100%;
width: 100%;
margin: 0;
padding: 0;
background-color: #000000;
}
object {
display: block;
}
</style>
</head>
<body>
<div id="flashcontent">
<object id="myId" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%">
<param name="movie" value="sgmain.swf" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="sgmain.swf" width="100%" height="100%">
<!--<![endif]-->
<div id="alert">Please install or update Flash...</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
</body>
</html>
The thing is I want the use of swfobject to be dynamic and the code I seem to have here is the static version. I went and read up on the documentation of the new version of swfobject (http://code.google.com/p/swfobject/wiki/documentation) and have toyed with updating it to what I want but I just can't seem to nail it.
Can someone help me update this code to utilize the dynamic version? THANKS SO MUCH!
<!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></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="includes/swfobject21.js"></script>
<script type="text/javascript" src="includes/swffit.js"></script>
<script type="text/javascript">
swfobject.registerObject("myId", "8.0.0", "swfobject/expressInstall.swf");
swffit.fit("myId",964,850);
</script>
<style type="text/css">
/* hide from ie on mac \*/
html {
height: 100%;
overflow: hidden;
}
#flashcontent {
height: 100%;
}
#alert {
background: #666;
border: #FFF 1px solid;
margin: 50px;
padding: 20px;
color: #FFF;
font-family: verdana, arial, helvetica;
font-size: 12px;
}
/* end hide */
body, object, embed, #flashcontent {
height: 100%;
width: 100%;
margin: 0;
padding: 0;
background-color: #000000;
}
object {
display: block;
}
</style>
</head>
<body>
<div id="flashcontent">
<object id="myId" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%">
<param name="movie" value="sgmain.swf" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="sgmain.swf" width="100%" height="100%">
<!--<![endif]-->
<div id="alert">Please install or update Flash...</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
</body>
</html>