纯纯于动* 发表于 2004-12-31 00:33:29

调查表!

&ltHTML&gt&ltHEAD&gt&ltTITLE&gt中国安防论坛&lt/TITLE&gt&ltlink rel=&quotstylesheet&quot href=&quotborder.css&quot&gt&ltscript language=&#106avascript&gtvar EFlag = 1;var ValidationPassed = true;function check() { if(form1.topic.&#118alue == &acute&acute) { alert(&acute标题不得为空!&acute); form1.topic.focus(); return false; } if(form1.content.&#118alue == &acute&acute) { alert(&acute内容不得为空!&acute); form1.content.focus(); return false; } } function storeCaret (textEl) { if (textEl.createTextRange)textEl.caretPos = document.selection.createRange().duplicate();}function insertHTML2(html) { LEADEDT.focus(); if (!validateMode()) return; if (LEADEDT.document.selection.type.toLowerCase() != &quotnone&quot) LEADEDT.document.selection.clear() ; LEADEDT.document.selection.createRange().pasteHTML(html) ;LEADEDT.focus(); }function addcontent(str1,str2) { if(EFlag == 1) { form1.content.focus(); if ((document.selection)&&(document.selection.type== &quotText&quot)) { var range= document.selection.createRange(); var ch_text=range.text; range.text= str1 + ch_text + str2; }else { document.form1.content.&#118alue=document.form1.content.&#118alue+str1+str2; form1.content.focus(); } }// else{insertHTML2(str1+str2);return;} }&lt/script&gt&lt/HEAD&gt&ltBODY leftMargin=0 topMargin=0 &#111nkeydown=&quotif(event.keyCode==13&&event.ctrlKey)document.form1.submit();&quot &gt&ltTABLE class=tableborder1 cellSpacing=0 cellPadding=0 align=center&gt &ltTR&gt &ltTD width=1&gt&lt/TD&gt &ltTH class=TopDarkNav width=* height=9&gt &ltTABLE width=&quot100%&quot&gt&ltTR&gt&ltTD bgcolor=#CEDBE7&gt &lt/TD&gt&lt/TR&gt&lt/TABLE&gt &lt/TH&gt &ltTD width=1&gt&lt/TD&gt &lt/td&gt &ltTR&gt
页: [1]
查看完整版本: 调查表!