实现html验证码
<div class="J_after" style="display:none;">
<input type="hidden" id="J_down" data-link="http://sc.chinaz.com/">
<div class="checkcode">
<input type="text" id="J_codetext" placeholder="Type Here" maxlength="4">
<canvas class="J_codeimg" id="myCanvas" onclick="createCode()">
Your browser does not support the canvas element.
</canvas>
</div>
<input type="button" value="Submit" class="btn-code" onClick="validate();">
<input type="button" value="Cancel" class="btn-code btn-no">
</div>
</div>
评论