一、點擊即可把你的網(wǎng)站添加到瀏覽器的收藏菜單下
<spanstyle="CURSOR: hand"
onClick="window.external.addFavorite('你的域名','你的網(wǎng)站名')"
title="你的網(wǎng)站名">收藏本站</span>
二 、點擊即可把你的網(wǎng)站設(shè)置為瀏覽器的起始頁
<span
strhref="/blog/window.location.href";this.style***havior='url(#default#homepage)';this.setHomePage('你的域名');"
style="CURSOR:hand">設(shè)為首頁</span>
三 、瀏覽器的狀態(tài)欄里出現(xiàn)一個字接一個字往左跑的歡迎語!
<scriptlanguage="JavaScript">
<!--
functionstatusMessageObject(p,d) {
this.msg =MESSAGE
this.out = ""
this.pos =POSITION
this.delay =DELAY
this.i =0
this.reset =clearMessage
}
functionclearMessage() {
this.pos =POSITION
}
var POSITION= 100
var DELAY =5
var MESSAGE= "你要顯示的文字,如:歡迎來到博客代碼 "
var scroll =new statusMessageObject()
functionscroller() {
for(scroll.i = 0; scroll.i < scroll.pos; scroll.i++) {
scroll.out+= " "
}
if(scroll.pos >= 0)