2013-08-03 65 views
0

有人能給我提供一些HTML/Javascript,讓我做到以下幾點:如何在特定尺寸的新瀏覽器窗口中打開Flash視頻?

當我點擊一個鏈接,它會:

  1. 打開一個新的瀏覽器窗口中播放的Flash視頻在特定的大小(即640x480)
  2. 新的瀏覽器窗口將居中在電腦屏幕上。
  3. 如果我點擊最大化窗口,它會調整它全部使用全屏幕。
+0

解決方案這是在線視頻,如YouTube或VIMEO?或者它是本地的? – designtocode

+0

它是AWS上的在線Flash視頻。這是我的同事放置它的地方。 – Simon

回答

0

對於第一個問題,嘗試這樣

<!DOCTYPE html> 
<html> 
<head> 
<script> 
    function openWin() 
    { 
     myWindow=window.open('','','width=640,height=480'); 
     myWindow.document.write("<p>This is 'myWindow'</p>"); 
     myWindow.focus(); 
    } 
</script> 
</head> 
<body> 

    <a href="#" onclick="openWin()">click</a> 

</body> 
</html> 

對於第二個問題,看到這個線程Open new window on center of screen with this javascript?

的最後一個問題,你可以看到在http://www.longtailvideo.com/blog/26517/using-the-browsers-new-html5-fullscreen-capabilities/

相關問題