<div class="codetitle"> <span><a style="CURSOR: pointer" data="12575" class="copybut" id="copybut12575" onclick="doCopy('code12575')"><u>复代码</u></a></span> 代码如下:</div> <div class="codebody" id="code12575"> <br><script src="jquery-1.9.1.js" 유형 ="텍스트/자바스크립트"></script> <br><script type="text/javascript"> <br>$(function () { <br>var ping = ''; <br>switch ($('#Select3 option:selected').text()) { <br>case '图文': ping = ' <img'; <BR>case '文本框': ping = '<입력 유형=텍스트'; break <BR>case '按钮': ping = '<입력 유형=버튼'; <BR>} <BR>$('#attrzhi').blur(function () { <BR>ping = ' '; <BR>ping = $('#Select2 옵션:선택됨').text(); <BR>ping = '='; <BR>ping = $('#attrzhi').val() <BR>}) <BR>$('#Button1').click(function () { <BR> ping = '/>'; <br>경고(ping) <br>$('#show').append(ping) <br>}) <br><br>}) /스크립트> <br></head> <br><본문> <br><form id="form1" runat="server"> <br><div> <br><테이블> <br><tr><td><!--什么东西--> 添加类型:</td><td><select id="Select3"> <br><option>사진</option> <br><option>文本框</option> <br><option>按钮</option> <br></select></td><td rowspan="5" id='show'></td></tr> <br><tr><td> <br><--需要设置的属性值--> <br>属性:</td><td> <select id="Select2"> <br><option>src</option> <br><옵션>너비</옵션> <br><option>높이</option> <br><옵션>제목</옵션> <br><옵션>값</옵션> <br><option>글꼴 크기</option> <br><옵션>색상</옵션> <br></select> <br></td></tr> <br><tr><td>属性值:</td><td><input id="attrzhi" type="text" /></td></tr> <br><tr><td colspan="2"><div id="showattr"></div></td></tr> <br><tr><td> 内容:</td><td><input id="Text1" type="text" /></td></tr> <br><tr><td> <br><input id="Button1" type="button" value="创建" /></td></tr> <br></테이블> <br></div> <br></form> <br></body> <br><br> </div>