下拉链接

<select onchange="if(this.options[this.selectedIndex].value!='' && this.options[this.selectedIndex].value!='友情链接'){window.open(this.options[this.selectedIndex].value);}">
           <option selected>友情链接</option>            
         <c:forEach items="${list_links}" var="FriendlyLink" >
           <option value='<c:out value='${FriendlyLink.url}' />'><c:out value='${FriendlyLink.name}' /></option>               
     </c:forEach>
</select>

你可能感兴趣的:(链接)