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

suresh kumar asureshkumar_1983 at yahoo.co.in
Mon Sep 11 10:43:30 CDT 2006


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);
   
                  

 				
---------------------------------
 Find out what India is talking about on  - Yahoo! Answers India 
 Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20060911/a67c036a/attachment.htm>


More information about the Javascript mailing list