日期:2009-07-09  浏览次数:21048 次

不足之处:
1.我没有权力贴图,如果有了图片,相信大家对这种技术应该比较容易理解。
2.还有这段代码并没有完全列出风格设置的全部,还有其他部分功能将不段的完善。                                                        
<HTML>
<head>
<title>发言区</title>
<SCRIPT language=javascript>
function dologin()
    {
    var doc = document.fmain;
    var text = frames.comment.document.body.innerText;            
    var HTML = frames.comment.document.body.innerHTML;
    if(doc.subject.value=="")
          {
            alert("You must enter subject");
          doc.subject.focus();
          return false;
          }
    if(doc.subject.length>200)
          {
            alert("The subject is larger,pls increame it");
          doc.subject.focus();
          return false;
          }
    if ((HTML == "") || (text == ""))            
    {            
        frames.comment.focus();            
        alert("You must enter Comment");            
        return false;            
    }            
    document.fmain.comment.value = HTML;            
    return true;
    }
</SCRIPT>
</head>
<body>
<table>                                   
<form action="saveword.ASP" method="post" name="fmain" onsubmit="return dologin()">                                   
      <tr bgcolor="#09C165">