|
在网上看见很多人在问这个,就写了这篇文章。
在Flash中实现“设为首页”和“加为收藏”功能是使用Get URL结合javascript来实现的。
设为首页代码:
on (release) { getURL("javascript:void (document.links[0].style.behavior='url(#default#homepage)');void document.links[0].setHomePage('http://www.webjx.com/');", "_self", "POST"); }
加为收藏代码:
on (release) { getURL("javascript:window.external.AddFavorite('http://www.downcodes.com/','源码网')"); } (出处:源码网)
|