<script type="text/javascript">
function ShowVCode() {
var vcode= document.getElementById("validateimg");
var dt = new Date();
vcode.src = "/include/vdimgck.php?"+dt;
vcode.style.display = "inline";
}
function HideVCode() {
var vcode= document.getElementById("validateimg");
vcode.src = "这里填附件中那个图片在你主机上的地址";
vcode.style.display = "none";
}
</script>
然后修改验证码这一行,改成一下的即可
验证码:<input type='text' name='validate' size='4' class='ipt-txt' /><img src=http://www.dede58.com/"{dede:global.cfg_cmsurl /}/include/vdimgck.php" id="validateimg" style="display:none;" alt="验证码" />
最后,修改发表评论这一行。如下代码即可
<button type="button">发表评论</button>