網站內容越來越多,找尋不易,就可運用這個方法. 以下是應用Google 的搜尋功能,而做出自己網內搜尋的功能

<form style="margin-top:4px;margin-bottom:4px" method="get" name="searchform" action="http://www.google.com/search" target="_blank">使用Google搜尋站內文章
<input type="hidden" name="sitesearch" value="ethan0620.blogspot.com" />輸入關鍵字<input alt="search" type="text" style="width:100px" name="as_q" size="20"><input style="width:30px;font-weight:bold; cursor:pointer;" type="submit" value="Go"></form>

記得把當中紅色url的字換成自己網址,就OK囉。

Snap1.jpg 

arrow
arrow
    全站熱搜

    雞蛋貓異想世界 發表在 痞客邦 留言(1) 人氣()