<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>下拉列表的选定</title> </head> <body> <mce:style><!-- .userData {behavior:url(#default#userdata);} --></mce:style><style mce_bogus="1"> .userData {behavior:url(#default#userdata);}</style> <select id="select1" class="userData"> <option value="1">option1</option> <option value="2">option2</option> <option value="3">option3</option> <option value="4">option4</option> </select> <mce:script type="text/javascript"><!-- var obj=document.all.select1; obj.setAttribute("sSelectValue",2); obj.save("oSltIndex"); window.attachEvent('onload',loadSelectedIndex) function loadSelectedIndex(){ obj.load("oSltIndex"); obj.selectedIndex=obj.getAttribute("sSelectValue"); } // --></mce:script> </body> </html>