復制代碼<a onclick="this.style.behavior=’url(#default#homepage)’;this.setHomePage(’’);" href="">設為首頁</a>
2.按鈕型:
復制代碼<input TYPE="button" VALUE=" 設為首頁 " onclick="this.style.behavior=’url(#default#homepage)’;this.setHomePage(’’);" href="t">
3.離開時自動提示設為首頁:
復制代碼<body onunload="BASEBody.style.behavior=’url(#default#homepage)’;if(!(BASEBody.isHomePage(’’)))BASEBody.setHomePage(’t’);">
4.打開網頁就提示是否設為主頁:
復制代碼<script language="javascript"> function myhomepage(){ this.homepage.style.behavior=’url(#default#homepage)’;this.homepage.sethomepage(’’); } </script> <p align="center"><a href="" name="homepage" onclick="myhomepage();"></a>
1.圖片鏈接
復制代碼<a style="cursor:hand" onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('');"><img width=16 height=16 border=0 src="images/Logo.gif"><u> 設為首頁</u></a>
2.文字型:
復制代碼<a onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('');" href="#">設為首頁</a>
3.按鈕型:
復制代碼<input TYPE="button" VALUE=" 設為首頁 " onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('');" href="#">
4.離開時自動提示設為首頁
復制代碼<body onunload="BASEBody.style.behavior='url(#default#homepage)';if(!(BASEBody.isHomePage('')))BASEBody.setHomePage('');">
5.鼠標指向時提示設為首頁
復制代碼<A href="/" onmouseover="this.style.behavior='url(#default#homepage)';this.setHomePage('');" target="_blank">設為首頁</A>
-------------------------------------------------------------------------------
加入收藏代碼
1.
復制代碼<a href="#" onclick="javascript:window.external.AddFavorite('','蘋果壁紙資源')" title="收藏本站到妳的收藏夾"><font size="-1" color="#FFE09E">收藏本站</font></a>
2.
復制代碼<a href="javascript:void(0);" onClick="window.external.AddFavorite(document.location.href,document.title)">加入收藏</a>
加入頻道
復制代碼<a href="typhoon.cdf")>加入頻道</a>
郵件鏈接
復制代碼<a href="mailto:xuan_web@hotmail.com">與我聯系</a>
再將下面代碼加入<body>內:
復制代碼onload="myhomepage();"
即:
復制代碼<body onload="myhomepage();">