如何用actionscript将页面设为首页

来源:百度知道 编辑:UC知道 时间:2024/05/24 23:44:58
如何用actionscript将页面设为首页

一,用getURL的方法:

首页:
on (release) {
getURL("javascript:void(document.links[0].style.behavior='url(#default#homepage)');void document.links[0].setHomePage('http://www.flashempire.com/');", "_self", "POST");
}

收藏夹:
on (release) {
getURL("javascript:void window.external.AddFavorite('http://www.flashempire.com','闪客帝国');", "_self", "POST");
}

二,用fscommand的方法,有点复杂

1,先在flash的按钮上添加代码:

首页:
on (release) {
fscommand("setHomePage", "http://www.flashempire.com");
}

收藏夹:
on (release) {
fscommand("addFavorite", "