情感摇控器http://blog.yesky.com/Blog/suncunming/复制地址
公告栏

希望各位博友对天极博客多多提出自己的看法和建议,让我们一起把天极博客吵得闹翻天,让天极博客成为我们的网上冲浪的好地方。我们不怕错,怕的是不敢勇于面对。


博友提出方式:

1、在此博客中留言。

2、发邮件至tianjiblog@163.com

(私人邮箱)。

3、在天极博客里发表文章。

4、由于某些原因电话等其它联系方式占时不公开,因此对各位博友造成的不便非常抱歉!

控制面板
日历
<2008年2月>
SuMoTuWeThFrSa
272829303112
3456789
10111213141516
17181920212223
2425262728291
2345678
留言簿(0)
文章分类
文章档案

第一种方法:
不显示浏览器菜单栏、工具栏的全屏。这种全屏稍稍复杂,也与FLASH的设置无关,但要借 
助JavaScript来完成。方法是:在HTML文件中<head></head>间加入以下代码: 

<script language="JavaScript">  
<!--  
window.open("nfd.swf","","fullscreen=1,menubar=no,width=100%,height=100%")  
//-->  
</script> 


第二种方法:
也可以在SWF文件的第一帧Actions上的GETURL 命令上加上: 

javascript:window.open("nfd.swf","","fullscreen=1,menubar=no,width=800,height=600") 

这种全屏也是类似屏保,用ALT+F4或设置按钮退出。把fullscreen设为=0,则只是不显示浏览器菜 
单栏、工具栏的全屏。
还有一个写法: 
javascript:window.open("*.swf","","menubar=no, 
toolbar=no,location=no,status=no,fullscreen=yes") 

我个人推荐这种^_^


第三种方法:
稍麻烦一些,需要两个网页,呵呵*—*
你可以建立个空白网页加上代码:

<html>  
<script language="JavaScript"> 
window.open("*.htm","newwin","fullscreen=yes,status=no,location=no, 
toolbar=no,directories=no,menubar=no,resizable=yes,scrollbars=no"); 
</script> 
</html>


*.htm 你把他替换为你自己要全屏打开的网页就可以了


第四种方法:
这种方法更详细,还有步骤,不过我没有试过,你们可以先试一下啊。
我把操作步骤写下:
1、在Flashk中做好动画后,首先选择主菜单中的File Publish Settings(文件发布设置命令),弹出对话框,点击进入HTML项设置:设置Dimensions尺寸单位为Percent百分比;在宽,高中设置100。再点击发布按钮进行发布即可。这样,在你原文件处就会生成一个和动画同名的HTML文件。
2、建立一个空白的HTML页面blank.htm,只保留<html></html>标签部分。
3、建立一个有带框架的html文件show.html,页面html文本如下:

<html> 
<frameset rows="100%,*" framespacing="0" frameborder="no" border="0"> 
<frame name="top" src="动画名.html" frameborder="0" border="0"  
marginwidth="0" marginheight="0" leftmargin="0" rightmargin="0" topmargin="0"> 
<frame name="blank" src="blank.html" 
frameborder="0" border="0" marginwidth="0" marginheight="0" leftmargin="0" rightmargin="0" topmargin="0"> 
</frameset> 
</html>

该文件将页面分为两个框架,上面放动画名.html文件,下面放blank.html文件。
注:其中,动画名.html文件是在第一步中发布出来的相应的html文件。
4、建立一个带JavaScript脚本的html文件full.html。用这个文件打开show.html并
定义其显示窗口为全屏,不带菜单,滚动条,状态栏等。
该文件的html文本如下:

<html> 
<script language="JavaScript"> 
window.open("show.html","newwin","fullscreen=yes,status=no,location=no,toolbar=no, 
directories=no,menubar=no,resizable=yes,scrollbars=no"); 
</script> 
</html>

上面的第四步和第三种方法一样的


如何在FLASH中实现加入收藏夹与设为首页的效果
问: 如何用actionscript将页面设为首页和加入收藏夹? 
答: 一,用getURL的方法: 

设为首页: 

on (release) {  
getURL("getURL("javascript:void(document.links[0].style.behavior=’url(#default#homepage)’);void document.links[0].setHomePage(’http://您的网站地址/’);", "_self", "POST"); } 


加入收藏夹: 

on (release) {  
getURL("getURL("javascript:void window.external.AddFavorite(’http://您的网站地址’,’网站名称’);", "_self", "POST");} 


第二种方法是通过用fscommand的方法,比上面一个要复杂一些。首先在Flash的按钮上添加ActionScript脚本代码 
设为首页

on (release) { fscommand("setHomePage", "http://您的网站地址"); } 
加入收藏夹 

on (release) { fscommand("addFavorite", "http://网站地址|网站名称"); } 
在发布Flash动画时选上HTML,在Template下拉菜单中选择Flash with fscommand,发布出html页面接着要对发布出来的HTML页面进行修改,在HTML代码中找到这么一段 

// Handle all the the FSCommand messages in a Flash movie function sethomepage_DoFSCommand(command, args) { }  
这一段修改成// Handle all the the FSCommand messages in a  
Flash movie function sethomepage_DoFSCommand(command, args) {  
var sethomepageObj = InternetExplorer ? sethomepage : document.sethomepage; if (command == "setHomePage") { 
document.links[0].style.behavior = "url(#default#homepage)";  
document.links[0].setHomePage(args); } else if (command == "addFavorite") 
{ args = args.split("|"); window.external.AddFavorite(args[0], args[1]); 
最后,如果html里一个链接都没有,还需在<SCRIPT LANGUAGE=javascript>这句的前面添加一句 
<a href="javascript:"></a>


作者:小新 阅读() 评论()  编辑 发表于:2007-09-12 15:12
相关内容
文章评论

  • # re: 如何实现一打开网页,SWF文件全屏的效果
  • xiexie `^^
    天极博友 | 2008-02-04 11:53

    发表评论
    标题 *  
    姓名 *  
    内容 *  
       验证码: *       
           
    版权声明:天极是本Blog托管服务提供商。如本文牵涉版权问题,天极不承担相关责任,请版权拥有者直接与文章作者联系解决。
    Powered by:

    Copyright © 狼子