Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

Vertically center embedded flash video?

1 reply [Last post]

Hey everyone!

I have just uploaded the JWPlayer to my site in an attempt to stream my demo reel, but have run into a tiny snag. I should state my disclaimer that you will never find a bigger html/java noob than myself, so thanks in advance for your patience. I'm attempting to center the video I have in the middle (vertically) of the screen. The horizontal alignment is already there, but for some reason I just can't seem to get the video in the middle of the web page. If you want to have a visual cue to what I'm talking about, then go to http://www.jmoorman.com/DemoReel.htm

Here's my source:

<HTML>
<HEAD>
<TITLE>The Reel Deal</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<script type="text/javascript" src="http://www.jmoorman.com/DemoReel/swfobject.js"></script>

<div id="player" align="center" valign="middle">
<embed src="player.swf" width=480 height=360>
</div>
<script type="text/javascript">
var so = new SWFObject('http://www.jmoorman.com/DemoReel/player.swf','mpl','480','360','9');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addParam('flashvars','&author=J.Moorman&description=Animation Demo Reel&duration=2:03&file=http://www.jmoorman.com/DemoReel/DemoReel.flv');
so.write('player');
</script>
</HEAD>
<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 ONLOAD="preloadImages();">
</BODY>
</HTML>
</BODY>
</HTML>

Thanks in advance for your help!