[Javascript] how can i display movie in center of the browser verically and horizontally

Peter Brunone peter at brunone.com
Mon Sep 11 11:25:55 CDT 2006


		   This may be a silly question, but is the table (or surrounding element) smaller than 640x480?  setting a visible border on your tables and other elements will usually help you to troubleshoot this.

Cheers,

Peter

				From: suresh kumar asureshkumar_1983 at yahoo.co.in

		Hi to all,
		           I want to display the movie in the center of the browser both vertically and horozontally,but right now its displaying center -horizontally but not verically. i also tired out valign='middle' but its not working for me.i dont know the reason.can any some help me

		this is my code

		<table width="100%" height='100%'  width='100%' cellSpacing='0px' cellPadding='0px' border='0px' cellborder='0' cellmargin='0'>

		<tr align="center" valign='middle'> 

		<td id="frame1" height='100%' width='100%' align="center" valign='middle'>

<div id="iedisplayarea" style="position:absolute;visibility:visible;z-index:2;top:0%; left:0; overflow:hidden;width:100%;height:100%;" >

		</td></tr></table>

		this.picObj = document.createElement('EMBED');  

 this.picObj.setAttribute('id',"aShow"); 

 this.picObj.setAttribute('width','640');  

 this.picObj.setAttribute('height' ,'480');  

 this.picObj.src = 'movie.mpeg';

 oDis=document.getElementById('iedisplayarea');

 this.picObj= oDis.appendChild(this.picObj);

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20060911/a6730c57/attachment.htm>


More information about the Javascript mailing list