<html> <body> <OBJECT id="PSKPrn"classid="clsid:81C07687-3353-4ABA-B108-94BCE81E5CBA"codebase="/PSKPrn_94BCE81E5CBA.ocx#version=1,0,0,3"width="0"height="0"> </OBJECT> <OBJECT id="test"classid="clsid:56CA65E0-2077-44F1-A022-FF23CC891B23"codebase="/scan_FF23CC891B23.ocx#version=1,0,0,7"width="0"height="0"> </OBJECT> <SCRIPT LANGUAGE="Javascript" type = "text/javascript"> function CheckKey() { if(event.keyCode == 13){ var namevalue=document.getElementById("text").value; <!--alert(namevalue);--> alert(namevalue); document.getElementById("text").value=""; } } function Print() { //������Ե��ÿؼ�����֪���� PSKPrn.OpenPort("POSTEK C168 200s"); PSKPrn.PTKClearBuffer(); PSKPrn.PTKSetLabelHeight(240, 20); PSKPrn.PTKSetLabelWidth(400); PSKPrn.PTKSetDarkness(10); PSKPrn.PTKSetPrintSpeed(4); PSKPrn.PTKDrawBar2DPdf417(26,26,400,240,1,0,2,4,33,7,0,0, "���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������յ���Ѷ��"); PSKPrn.PTKPrintLabel(1, 2); PSKPrn.ClosePort(); } function GetVersion() { test.GetActiveXInfo(); } </SCRIPT> <input type="text" name="text" onkeydown="CheckKey()"/><br/> <input type="button" name="button" value="��ӡ" onClick="Print()"/><input type="button" name="button" value="ActvieX�汾" onClick="GetVersion()"/> </body> </html>