Add Bookmark (for IE only) 做法: 把下列文字加入網頁並作出修改(藍色為須修改之部份) <a href="javascript:window.external.AddFavorite('http://page.to/hung','Welcome!')">Add Bookmark</a>
網頁選擇清單 做法: 把下列文字加入網頁並作出修改(藍色為須修改之部份) <form> <select name="select" onChange="window.open(this.form.select.options[this.form.select.selectedIndex].value,'_blank','');"> <option value="#" selected>- My Webpage - <option value="http://page.to/hung">My Webpage <option value="#">- Other Linkage - <option value="http://www.info.gov.hk">Hong Kong GOV </select> </form>
圖片轉換 做法: 把下列文字加入網頁並作出修改(藍色為須修改之部份) <a href="#" onMouseOver="pic.src='cchess/21.gif';" onMouseOut="pic.src='cchess/11.gif';"> <img alt="" src="cchess/11.gif" name="pic" border=0> </a>
顯示文字 做法: 把下列文字加入網頁並作出修改(藍色為須修改之部份) <a href="#" onmouseover='document.theform.thetext.value="You did it!"; document.theform.atext.value=""' onmouseout='document.theform.thetext.value=""; document.theform.atext.value="Thank you for move the mouse on the words to test this demo."'> Please point the mouse at here</a> <form name="theform"> <input type="text" name="thetext" size=20><br> <textarea rows=5 cols=20 wrap="virtual" name="atext"></textarea> </form>
查看ICQ狀態 做法: 把下列文字加入網頁並作出修改(藍色為須修改之部份) <form name="icqform"> <a href="#" onClick="icqname.src='http://wwp.icq.com/scripts/online.dll?icq='+document.icqform.icqtext.value+'&img=2'; return false"> <img name="icqname" src="//wwp.icq.com/scripts/online.dll?icq=25531879&img=2" border=0> </a><br> <input type="text" name="icqtext" value="25531879" size=15> </form>
回前頁按鈕 做法: 把下列文字加入網頁並作出修改(藍色為須修改之部份) <form> <input type="button" value="BACKWARD" onClick="history.go(-1)"> <input type="button" value="RELOAD" onClick="history.go(0)"> <input type="button" value="FORWARD" onClick="history.go(1)"> </form>
做法: 請把cursorlogo.txt這個檔案的內容加入網頁並作出修改(藍色為須修改之部份) ... ... var showText = 'Like this logo?<br><img src="Hung.gif" border=0>'; ... ... (抱歉, 因文件較大, 未能在此較詳細地作出指示)
|