首页 > 办公 > Flash > 正文

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

2024-09-12 17:50:47
字体:
来源:转载
供稿:网友
如何?在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.VeVb.com/','武林网')");

其实很简单,就上面这么两段代码。。[Stage.showmenu=false] 
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表