当前位置:主页 > >

在Flash中添加“设为首页”、“加为收藏”的方法

时间:2021-08-05 08:30:58 | 栏目: | 点击:

如何?在Flash中实现“设为首页”和“加为收藏”功能是使用Get URL结合JavaScript来实现的。
  设为首页代码:
on (release) {
getURL("javascript:void(document.links[0].style.behavior='url(#default#homepage)');void document.links[0].setHomePage('http://www.showhs.com/');", "_self", "POST");
}
  加为收藏代码:
on (release) {
getURL("javascript:window.external.AddFavorite('https://www.jb51.net/','脚本之家')");

其实很简单,就上面这么两段代码。。[Stage.showmenu=false] 

您可能感兴趣的文章:

相关文章