Joke Collection Website - Blessing messages - How to use jquery idcode.js verification code

How to use jquery idcode.js verification code

I find that the people who answer the questions now are really bored and won't write all the answers?

This JS first quotes:

& ltlink href = " Scripts/idcode/jquery . idcode . CSS " rel = " style sheet " type = " text/CSS "/& gt;

& ltscript src = " Scripts/idcode/jquery . idcode . js " type = " text/JavaScript " & gt; & lt/script & gt;

Then load it:

& ltscript type = " text/JavaScript " & gt;

$ (document). ready(function () {

$ . idcode . set code();

});

& lt/script & gt;

Then go to its JS file and specify the ID of the input verification code box.

Var setting = {

e:“idcode”,

codeType:{ name:' follow ',len: 4},

Code prompt: "Refresh?" ,

InputID: 'Txtidcode'// This is the text box ID of your page input verification code.

};

Then the page elements:

& ltlabel class ="lblVerification "> verification code

& ltinput type = " text " id = " Txtidcode " class = " txt verification "/& gt。

& ltspan id="idcode " >& lt/span>。

Finally, JS calls: Varisby = $. idcode.validatecode (); Returns true or false. So you can verify