<Script Language=JavaScript> function doChange(objText, objDrop){ if (!objDrop) return; var str = objText.value; var arr = str.split("|"); objDrop.length=0; for (var i=0; i<arr.length; i++){ objDrop.options[i] = new Option(arr[i], arr[i]); } } </Script> <table width="650" border="1" cellpadding="5" cellspacing="0" bordercolor="#CCCCCC" style="border-collapse:collapse;"> <form method="POST" name="myform"> <tr> <td width="100" valign="top">内容:</td> <td valign="top"> <textarea name="Content" style="display:none"></textarea> <IFRAME ID="eWebEditor1" SRC="WebEditor/ewebeditor.htm?id=Content&style=standard500&savepathfilename=DefaultPicUrl" FRAMEBORDER="0" SCROLLING="no" WIDTH="500" HEIGHT="350"></IFRAME></td> </tr> <tr> <td width="100">首页图片:</td> <td><input name="DefaultPicUrl" type="text" id="DefaultPicUrl" size="50" maxlength="120" onChange="doChange(this,DefaultPicList)"> <label> <input name="nopic" type="button" id="nopic" value="不指定首页图片" onclick="DefaultPicUrl.value='';" /> </label> <br> <select name="DefaultPicList" id="select" onChange="DefaultPicUrl.value=this.value;" style="width:362px;"> <option selected>从上传图片中选择首页图片</option> </select></td> </tr> </form> </table>