<script type="text/javascript"> // 設(shè)置為主頁(yè) function SetHome(obj,vrl){ try{ obj.style.behavior='url(#default#homepage)';obj.setHomePage(vrl); } catch(e){ if(window.netscape) { try { netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); } catch (e) { alert("此操作被瀏覽器拒絕!\n請(qǐng)?jiān)跒g覽器地址欄輸入“about:config”并回車\n然后將 [signed.applets.codebase_principal_support]的值設(shè)置為'true',雙擊即可。"); } var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch); prefs.setCharPref('browser.startup.homepage',vrl); }else{ alert("您的瀏覽器不支持,請(qǐng)按照下面步驟操作:1.打開瀏覽器設(shè)置。2.點(diǎn)擊設(shè)置網(wǎng)頁(yè)。3.輸入:"+vrl+"點(diǎn)擊確定。"); } } } // 加入收藏 兼容360和IE6 function shoucang(sTitle,sURL) { try { window.external.addFavorite(sURL, sTitle); } catch (e) { try { window.sidebar.addPanel(sTitle, sURL, ""); } catch (e) { alert("加入收藏失敗,請(qǐng)使用Ctrl+D進(jìn)行添加"); } } } </script>
<li class="fore1"><a href="javascript:void(0)" onclick="SetHome(this,window.location)">設(shè)為首頁(yè)</a></li> <li class="ge">|</li> <li class="fore2"><a href="javascript:void(0)" onclick="shoucang(document.title,window.location)">加入收藏</a></li> <li class="ge">|</li>
<a href="javascript:window.external.AddFavorite(‘http://www.baidu.com‘,‘百度‘)">加入收藏</a>
<a onmouseover="window.external.addFavorite(‘http://www.baidu.com‘,‘百度‘)" target=_self href= >加入收藏</a>
<a style="cursor:hand" onclick="this.style.behavior=‘url(#default#homepage)‘; this.setHomePage(‘http://www.baidu.com/‘);"> <img width=16 height=16 border=0 src="images/house.png"> <u> Set as HomePage</u></a>
< a onclick="this.style.behavior=‘url(#default#homepage)‘;this.setHomePage(‘http://www.baidu.com/‘);" href="#">設(shè)為首頁(yè)</a>
< input TYPE="button" VALUE=" 設(shè)為首頁(yè) "onclick="this.style.behavior=‘url (#default#homepage)‘;this.setHomePage(‘http://www.baidu.com/‘);" href="#"> 離開時(shí)自動(dòng)提示設(shè)為首頁(yè) <body onunload="BASEBody.style.behavior=‘url(#default#homepage)‘;if(!(BASEBody.isHomePage (‘http://www.baidu.com/‘)))BASEBody.setHomePage(www.baidu.com//‘);">
<script language="javascript"> function myhomepage(){ this.homepage.style.behavior='url(#default#homepage)';this.homepage.sethomepage(‘http://www.baidu.com'); } </script> <p align="center"><a href="http://www.baidu.com/" name="homepage" onclick="myhomepage();"></a>
<A href="http://www.baidu.com/" onmouseover ="this.style.behavior='url(#default#homepage)';this.setHomePage(‘http://www.baidu.com/'); " target="_blank">設(shè)為首頁(yè)</A>
<a href="mailto:baidujishubu@163.com">電子信箱</a>
如對(duì)本文有疑問,請(qǐng)?zhí)峤坏浇涣髡搲?,廣大熱心網(wǎng)友會(huì)為你解答??! 點(diǎn)擊進(jìn)入論壇