if(!window.card){
window.card = "<object classid='clsid:4B3CB088-9A00-4D24-87AA-F65C58531039' id='SynCardOcx1' codeBase='SynCardOcx.CAB#version=1,0,0,1' width='102' height='126' ></object>";
$('body').append(window.card);
$('head').append("<script language='javascript' for='SynCardOcx1' event='CardIn( State );'></script>");
}
setTimeout(function(){
var str = SynCardOcx1.FindReader();
var nRet;
SynCardOcx1.SetReadType(0);
nRet = SynCardOcx1.ReadCardMsg();
if(nRet==0)
{
Forguncy.Page.getCell("name").setValue(SynCardOcx1.NameA);
Forguncy.Page.getCell("sex").setValue(SynCardOcx1.Sex);
Forguncy.Page.getCell("minzu").setValue(SynCardOcx1.Nation);
Forguncy.Page.getCell("birthday").setValue(SynCardOcx1.Born);
Forguncy.Page.getCell("address").setValue(SynCardOcx1.Address);
Forguncy.Page.getCell("cardId").setValue(SynCardOcx1.CardNo);
Forguncy.Page.getCell("yxq").setValue(SynCardOcx1.UserLifeB);
Forguncy.Page.getCell("fzjg").setValue(SynCardOcx1.Police);
Forguncy.Page.getCell("yxqe").setValue(SynCardOcx1.UserLifeE);
}
}, 100);
是要修改这段JS的代码是吗? |