Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Anyone use fitFlash script? Need help

Status
Not open for further replies.

surfertide

Technical User
May 24, 2006
6
US
I've been trying to use the fitFlash script. It works to some extend. I can resize the swf file in the browser but somehow i have blank columns left and right. Meaning that the swf doesn't fill the browser window on its entirely. Here's the code:

----------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "<html xmlns=" lang="en" xml:lang="en">
<head>
<title>RDS Marketing Group-Take 5</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<style type="text/css">
<!--
body {
height: 100%;
width: 100%;
margin: 0;
padding: 0;
}
-->
</style>

<script type="text/javascript" src="js/swfobject.js"></script>
<script type="text/javascript" src="js/fitflash.js"></script>
<script type="text/javascript">
swfobject.embedSWF("swf/index.swf", "myContent", "1000", "567", "9.0.0", "1280");
</script>

</head>
<body>
<div id="myContent">
Alternative content
</div>
<script type="text/javascript">
// <![CDATA[
FitFlash('myContent',1000,567);
// ]]>
</script>
</body>
</html>
-----------------------
The link for a sample is:


Please someone help me...
Thanks
aaron
 
If all you want is to fill the browser why don't you change the height and width of the swf to 100% in your html code
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top