设为首页加入收藏代码_兼容各浏览器ie系列Firefox
測試可用的.?
設為首頁加入收藏代碼如下:?
?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>設為首頁加入收藏代碼_k686綠色軟件-www.k686.com</title> </head> <body> <mce:script type="text/javascript"><!-- function addFav() { //加入收藏夾if (document.all) {window.external.addFavorite('http://www.k686.com', 'k686綠色軟件');}else if (window.sidebar) {window.sidebar.addPanel('k686綠色軟件', 'http://www.k686.com', "" );}} function SetHome(obj){try{obj.style.behavior='url(#default#homepage)';obj.setHomePage('http://www.k686.com');}catch(e){if(window.netscape){try{netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");}catch(e){alert("抱歉,此操作被瀏覽器拒絕!/n/n請在瀏覽器地址欄輸入“about:config”并回車然后將[signed.applets.codebase_principal_support]設置為'true'");};}else{alert("抱歉,您所使用的瀏覽器無法完成此操作。/n/n您需要手動將'http://www.k686.com/'設置為首頁。");};}; };// --></mce:script> <a href="javascript:void(0);" mce_href="javascript:void(0);" οnclick="SetHome(this)">設為首頁</a> <a href="javascript:;" mce_href="javascript:;" οnclick="addFav()">加入收藏</a> <strong><a href="http://www.k686.com/" mce_href="http://www.k686.com/" title="k686綠色軟件">k686綠色軟件</a></strong> </body> </html> ?
總結
以上是生活随笔為你收集整理的设为首页加入收藏代码_兼容各浏览器ie系列Firefox的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Google云计算原理学习架构图
- 下一篇: TeeChart Pro VCL,提供高