修改评论的方法
2009-11-25 站长 站长日志
<script> function CheckPl(obj) { if(obj.saytext.value=="") { alert("您没什么话要说吗?"); obj.saytext.focus(); return false; } return true; } </script> <div class="commentsList"> <table width="95%" border="0" align="center" cellpadding="3" cellspacing="0"> <form action="[!--news.url--]e/enews/index.php" method="post" name="saypl" id="saypl" onSubmit="return CheckPl(document.saypl)"> <tr> <td>用户名:<input name="username" type="text" class="inputText1" id="username" value="" size="20" /></td> <td style="display:none;"><input name="nomember" type="checkbox" id="nomember" value="1" checked="checked" /></td> </tr> <tr> <td> <textarea name="saytext" cols="80" rows="3" id="saytext" class="inputText2"></textarea></td> </tr> <tr> <td> <script src="[!--news.url--]d/js/js/plface.js"></script></td> </tr> <tr> <td> <input name="imageField" type="image" src="/e/data/images/postpl.gif" border="0" /> <input name="id" type="hidden" id="id" value="[!--id--]" /> <input name="classid" type="hidden" id="classid" value="[!--classid--]" /> <input name="enews" type="hidden" id="enews" value="AddPl" /> <input name="repid" type="hidden" id="repid" value="0" /> <input type="hidden" name="ecmsfrom" value="[!--titleurl--]"></td> </tr> </form> </table> </div>