收藏本站
自己設定設定網址和名稱
<a href="javascript:;" target="_blank" rel="external nofollow" target="_blank" rel="external nofollow" οnclick="javascript:window.external.AddFavorite('http://www.baidu.com','百度')" title="收藏本站到你的收藏夾"><font size="-1" color="#FFE09E">收藏本站</font></a>
目前頁面網址和title
<a href="javascript:void(0);" target="_blank" rel="external nofollow" onClick="window.external.AddFavorite(document.location.href,document.title)">加入收藏</a>
設為首頁
這個我不太喜歡,但還是有需求的,呵呵~~!
圖檔連結:
<a style="cursor:hand" οnclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.baidu.com');">
<img width=16 height=16 images/Logo.gif">
<u> 設為首頁</u>
</a>
文字連結:
<a οnclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.baidu.com');" href="#" target="_blank" rel="external nofollow" >設為首頁</a>
按鈕:
<input type="button" value="設為首頁 " οnclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.baidu.com');" href="javascript:;" target="_blank" rel="external nofollow" target="_blank" rel="external nofollow" >
打開頁面或離開頁面時設為首頁或收藏,就是在<body>裡加一個onload或onunload事件。
這個實在太惡心,我要抵制,就不具體寫了。一些高版本的IE也不支援這個功能了。呵呵~~~~~~~~~
再加一個郵件連結
<a href="mailto:[email protected]">與我聯系</a>