復制代碼代碼如下:
<pre>
<div>
<select onchange="if (this.selectedIndex!=0) window.open(this.value)">
<option selected="selected">友情鏈接:</option>
<option value="http://www.baidu.com">百度</option>
<option value="http://www.google.com">谷歌</option>
</select>
</div>
</pre>