在Flash中添加“設為首頁”、“加為收藏”的方法
更新時間:2007年03月20日 00:00:00 作者:
如何?在Flash中實現(xiàn)“設為首頁”和“加為收藏”功能是使用Get URL結合JavaScript來實現(xiàn)的。
設為首頁代碼:
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('http://chabaoo.cn/','腳本之家')");
}
其實很簡單,就上面這么兩段代碼。。[Stage.showmenu=false]
設為首頁代碼:
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('http://chabaoo.cn/','腳本之家')");
}
其實很簡單,就上面這么兩段代碼。。[Stage.showmenu=false]
您可能感興趣的文章:
- 設為首頁與加入收藏的JS代碼(多瀏覽器支持)
- javascript 設為首頁與加入收藏兼容多瀏覽器代碼
- javascript 加入收藏、設為首頁(IE,firefox兼容腳本之家版)
- 在Flash 設為首頁 加為收藏實現(xiàn)代碼
- JS 強制設為首頁的代碼
- javascript在firefox下設為首頁的代碼
- Flash 中"設為首頁"代碼
- 設為首頁 加入收藏的js代碼
- 強制設為首頁代碼
- js Firefox 加入收藏夾功能代碼 兼容Firefox 和 IE
- 一個可以兼容IE FF的加為首頁與加入收藏實現(xiàn)代碼
- javascript addBookmark 加入收藏 多瀏覽器兼容
- 通用的加入收藏夾代碼支持IE Firefox等瀏覽器
- 設為首頁加入收藏兼容360/火狐/谷歌/IE等主流瀏覽器的代碼