这种效果要怎么实现?
<script language="JavaScript" type="text/javascript">var AllForumNameList=getCookie("ForumNameList");
var NowForumName="<option value='ShowForum.asp?ForumID=<%=ForumID%>'><%=ForumName%></option>";
if(AllForumNameList.indexOf(NowForumName)==-1){document.cookie= "ForumNameList" + "=" + escape(NowForumName+AllForumNameList);}
document.write("<select onchange='location=this.options[this.selectedIndex].value;'><option>最近访问的...</option>" + AllForumNameList+ "</select>");
</script>
这为下拉方式的,我想将它改成文字直接连接方式的要怎么改. 请指教
页:
[1]