
July 4th, 2008, 03:10 PM
|
|
Registered User
|
|
Join Date: Jul 2008
Posts: 1
Time spent in forums: 9 m 58 sec
Reputation Power: 0
|
|
|
Seemingly simple problem with aligning SWF movie in browsers
Hi all!
I have embedded a swf file in an xhtml document. I used dreamweaver to modify my xhtml doc, so I could center (vertically and horizontally) in all browser windows. I tried the easy dreamweaver "align" tool- didn't work. I figured the simplest way would be to put it in a table and center the table. When I do this, it looks centered in dreamweaver, but when I post on my website, it is still top left corner. I'm going crazy- any ideas???
Here is the code:
Code:
<html xmlns="(URL address blocked: See forum rules)" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>swaddle</title>
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
</head>
<body bgcolor="#6bb9c2">
<!--url's used in the movie-->
<!--text used in the movie-->
<!--
wholesale entry retail entry
-->
<!-- saved from url=(0013)about:internet -->
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
AC_FL_RunContent(
'codebase', '(URL address blocked: See forum rules)=9,0,0,0',
'width', '550',
'height', '400',
'src', 'swaddle',
'quality', 'high',
'pluginspage', '(URL address blocked: See forum rules)
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'swaddle',
'bgcolor', '#ffffff',
'name', 'swaddle',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'swaddle',
'salign', ''
); //end AC code
}
</script>
<noscript>
<table width=100% height=100% border=0 cellpadding=0 cellspacing=0>
<tr align=center valign=middle><td><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="(URL address blocked: See forum rules)=9,0,0,0" name="swaddle" width="550" height="400" align="default" id="swaddle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="swaddle.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="swaddle.swf" width="550" height="400" align="default" quality="high" bgcolor="#ffffff" name="swaddle" allowscriptaccess="sameDomain" allowfullscreen="false" type="application/x-shockwave-flash" pluginspage="(URL address blocked: See forum rules)" />
</object></td>
</tr></table>
</noscript>
</body>
</html>
|