Flash to take the view to fullscreen

亡梦爱人 提交于 2019-12-02 09:03:13

问题


I need a link to invoke a flash movie (with javascript) that takes the view to full screen, and show the page content. Exactly as if the user has pressed F11. Is there such flash movie?

Edit
This is different from what the flash player does on Youtube and other video sites in that the flash movie has no content to show and after the page goes fullscreen I want the normal page content to be displayed. The only role of the flash object would be invoking the fullscreen mode.


回答1:


JavaScript (and therefore Flash) does not have access to activating full-screen mode (and thank god it doesn't!).

The best you can do is measure the user's screen size and open a new window that emulates this layout.

See: How to make the window full screen with Javascript (stretching all over the screen)




回答2:


No. Flash full screen mode (which can only be triggered with a click) is independent from browser full screen mode (which not all browsers have anyway).



来源:https://stackoverflow.com/questions/5706317/flash-to-take-the-view-to-fullscreen

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!