在Flash中添加“设为首页”“加为收藏”
时间:[2007-1-22 16:34:41] 作者:作者不详
在网上看见很多人在问这个,就写了这篇文章。
在Flash中实现“设为首页”和“加为收藏”功能是使用Get URL结合javascript来实现的。
设为首页代码:
以下是引用片段:
on (release) {
getURL("javascript:void(document.links[0].style.behavior='url(#default#homepage)');void document.links[0].setHomePage('http://homepage.yeskyk.com/');", "_self", "POST");
}
加为收藏代码:
以下是引用片段:
on (release) {
getURL("javascript:window.external.AddFavorite('http://homepage.yesky.com/','网页陶吧')");
}
【声明】本站刊载的《在Flash中添加“设为首页”“加为收藏”》一文如果有侵害你权益的情况,请联系我们。我们将及时采取措施。
QQ:44637339 Email:just6@163.com Tel:13355163107 Lining studios