我为查询创建了一个简单的页面,但无法在<div id="bcode"></div>
和下面显示的表单之间建立链接:
<html><head>
<meta http-equiv="onallkeys" content="Javascript:doKeys('%s');">
<meta http-equiv="all_decoders" content="enabled">
<meta http-equiv="scannernavigate" content="Javascript:doScan('%s');">
<meta http-equiv="scanner" content="enabled">
<!--meta HTTP-Equiv="upce0" Content="enabled">
<meta HTTP-Equiv="upca" Content="enabled">
<meta HTTP-Equiv="upce0-ConvertToupca" Content="true">
<meta HTTP-Equiv="ean8" Content="enabled">
<meta HTTP-Equiv="ean13" Content="enabled">
<meta HTTP-Equiv="ean8-ConvertToEAN13" Content="true"-->
<meta http-equiv="scanner" content="AIM_TYPE_PRESENTATION">
</head>
<BODY onLoad="doSoftScan();">
<SCRIPT LANGAUGE="JavaScript">
var Generic = new ActiveXObject("SymbolBrowser.Generic");
function doSoftScan()
{
Generic.InvokeMetaFunction('scanner', 'start');
}
function doScan(data)
{
bcode.innerHTML = 'Scanned Code:<br> ' + data;
setTimeout("doSoftScan()", 1250);
}
</SCRIPT>
<div id="bcode"></div>
<form method="post" action="search_display.php?go" id="bcode">
<input type="text" name="name">
<input type="submit" name="submit" value="Search">
</form>
</BODY>
</HTML>
我尝试了它到我的MK500,它扫描但无法专注于文本框和显示。 我是这个html编程的新手,也许你可以对这一部分有所了解。
此致 伯特