命名为postreplysubmitbtn1,就好!
<div class="pk-row" style="margin-bottom:30px;left:0;bottom:0;width:100%;padding:0.25rem 0;background-color:white;z-index:97;"> <form style="margin-left:35px;" method="post" action="index.php?c=post&type=reply&return=#"> <input type="hidden" name="rid" value="{$readdata['id']}" /> <div style="margin-bottom:7px" class="pk-w-sm-9 aui-padded-l-15 aui-padded-r-15"> <input type="text" name="content" autocomplete="off" class="search-input aui-font-size-14 pk-width-all" placeholder=" 评论~" style="border:solid 2px #E7E7E7 ;border-radius:5px ;margin-left:20px;color:#333;height:2.4rem;" > </div> <div style="margin-top:3px" class="pk-w-sm-3"> <button style="width:60px" class="kjhf" id="postreplysubmitbtn1" >回复</button> </div> <div style="width:155px">{loadVerifycode('postreply','')}</div> </form> </div>2】 这句就是我调用的 验证码 <div style="width:155px">{loadVerifycode('postreply','')}</div>
function.php文件里 找到了 loadVerifycode调用的代码:看不懂了id
function loadVerifycode($page, $t = '') { global $_G; $_G['APP']['VERIFYCODE']['TYPE'] = $page; if ($_G['SET']['APP_VERIFYCODE_LOAD'] && InArray($_G['SET']['APP_VERIFYCODE_PAGE'], $page) && !InArray($_G['USER']['QUANXIAN'], 'noverifycode')) { if ($t) { $t = '-' . $t; } if ($_G['SET']['APP_VERIFYCODE_OPENSLIDING']) { return template('verifycode:sliding' . $t, true); } else { return template('verifycode:verifycode' . $t, true); } } }
3】验证码插件里的verifycode.html文件找到了 验证码和空格的源码
<div class="pk-row"> <div class="pk-w-sm-12 pk-margin-bottom-15"> <input type="text" class="pk-textbox" name="verifycode" value="" placeholder="点击显示验证码" onfocus="document.getElementById('verifycodeimageobject').click();this.onfocus=''" required autocomplete="off" /> </div> <div class="pk-w-sm-12 pk-margin-bottom-15"> <img style="border: 1px solid #CECECE;" id="verifycodeimageobject" class="pk-max-width-all pk-cursor-pointer" src="template/default/img/null_88x32.png" onclick="this.src='index.php?c=app&a=verifycode:index&type={$_G['APP']['VERIFYCODE']['TYPE']}&rnd='+Math.random()" title="点击刷新"> </div> </div>
请问在哪里加个验证码 id呢 才不会冲突。。。