在Flash中实现“设为首页”和“加为收藏”功能是使用Get URL结合javascript来实现的。
设为首页代码:
on (release) {
getURL("javascript:void(document.links[0].style.behavior='url(#default#homepage)');void document.links[0].setHomePage('http://www.67sj.com.cn');", "_self", "POST");
}
加为收藏代码:
on (release) {
getURL("javascript:window.external.AddFavorite('http://www.67sj.com.cn','67设计')");
--------------------------------------------------------
把中间红色部分修改下就行了,自己会修改吧。
设为首页代码:
on (release) {
getURL("javascript:void(document.links[0].style.behavior='url(#default#homepage)');void document.links[0].setHomePage('http://www.67sj.com.cn');", "_self", "POST");
}
加为收藏代码:
on (release) {
getURL("javascript:window.external.AddFavorite('http://www.67sj.com.cn','67设计')");
--------------------------------------------------------
把中间红色部分修改下就行了,自己会修改吧。