⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 applettest.html

📁 maskbarcode 条形码的工具
💻 HTML
字号:
<html>
<head>
<title>MaskBarcode Applet Test</title>
</head>
<body>
<center>
<applet 
codebase="." 
archive="maskbarcode.jar" 
code="com.mask.util.barcode.BarCodeApplet" 
name="AppletTest" 
width="100%" 
height="100" 
>
<param name="barcode" value="6901010101098">
<param name="barType" value="EAN13">
</applet>
<a href="javascript:test();">Test</a>
<form name="form1">
<table width="100%" border="1">
  <tr>
    <td width="20%">barType</td>
    <td width="80%">
    <select name="barType">
    <option value="CODE39">CODE39</option>
    <option value="CODE39EXT">CODE39EXT</option>
    <option value="INTERLEAVED25">INTERLEAVED25</option>
    <option value="CODE11">CODE11</option>
    <option value="CODABAR">CODABAR</option>
    <option value="MSI">MSI</option>
    <option value="UPCA">UPCA</option>
    <option value="IND25">IND25</option>
    <option value="MAT25">MAT25</option>
    <option value="CODE93">CODE93</option>
    <option value="EAN13" selected>EAN13</option>
    <option value="EAN8">EAN8</option>
    <option value="UPCE">UPCE</option>
    <option value="CODE128">CODE128</option>
    <option value="CODE93EXT">CODE93EXT</option>
    <option value="POSTNET">POSTNET</option>
    <option value="PLANET">PLANET</option>
    <option value="UCC128">UCC128</option>
    </select>
    条码类型
    </td>
  </tr>
  <tr>
    <td width="20%">code</td>
    <td width="80%"><input type="text" name="barcode" value="6901010101098">条码内容</td>
  </tr>
  <tr>
    <td width="20%">st</td>
    <td width="80%">
    <select name="st"><option value="y" selected>y</option><option value="n">n</option></select>
    是否显示条码内容
    </td>
  </tr>
  <tr>
    <td width="20%">textFont</td>
    <td width="80%"><input type="text" name="textFont" value="Arial|PLAIN|11">条码文本的字体,格式&lt;font name&gt;|&lt;style&gt;|&lt;size&gt;</td>
  </tr>
  <tr>
    <td width="20%">fontColor</td>
    <td width="80%"><input type="text" name="fontColor" value="BLACK">条码文本的颜色</td>
  </tr>
  <tr>
    <td width="20%">barColor</td>
    <td width="80%"><input type="text" name="barColor" value="BLACK">条码的颜色</td>
  </tr>
  <tr>
    <td width="20%">backColor</td>
    <td width="80%"><input type="text" name="backColor" value="WHITE">图片背景颜色</td>
  </tr>
  <tr>
    <td width="20%">rotate</td>
    <td width="80%">
    <select name="rotate"><option value="0" selected>0</option><option value="90">90</option><option value="180">180</option><option value="270">270</option></select>
    条码旋转角度
    </td>
  </tr>
  <tr>
    <td width="20%">barHeightCM</td>
    <td width="80%"><input type="text" name="barHeightCM" value="1">条码的高度</td>
  </tr>
  <tr>
    <td width="20%">x</td>
    <td width="80%"><input type="text" name="x" value="0.03">narrow bars的宽度</td>
  </tr>
  <tr>
    <td width="20%">n</td>
    <td width="80%"><input type="text" name="n" value="2">wide bars与narrow bars</td>
  </tr>
  <tr>
    <td width="20%">leftMarginCM</td>
    <td width="80%"><input type="text" name="leftMarginCM" value="0.3">条码与图片左右边的距离</td>
  </tr>
  <tr>
    <td width="20%">topMarginCM</td>
    <td width="80%"><input type="text" name="topMarginCM" value="0.2">条码与图片上下边的距离</td>
  </tr>
  <tr>
    <td width="20%">checkCharacter</td>
    <td width="80%">
    <select name="checkCharacter"><option value="y" selected>y</option><option value="n">n</option></select>
    是否自动计算check character
    </td>
  </tr>
  <tr>
    <td width="20%">checkCharacterInText</td>
    <td width="80%">
    <select name="checkCharacterInText"><option value="y" selected>y</option><option value="n">n</option></select>
    条码内容是否自动计算check character
    </td>
  </tr>
  <tr>
    <td width="20%">Code128Set</td>
    <td width="80%">
    <select name="Code128Set"><option value="0" selected>0</option><option value="A">A</option><option value="B">B</option><option value="C">C</option></select>
    CODE128中使用的字符集
    </td>
  </tr>
  <tr>
    <td width="20%">UPCESytem</td>
    <td width="80%">
    <select name="UPCESytem"><option value="0" selected>0</option><option value="1">1</option></select>
    UPCE中使用的编码系统
    </td>
  </tr>
</table>
</form>
<a href="javascript:test();">Test</a>
</center>
</body>
</html>
<script language="javascript">
function test()
{
document.AppletTest.setParameter("barType",form1.barType.value);
document.AppletTest.setParameter('code',form1.barcode.value);
document.AppletTest.setParameter('st',form1.st.value);
document.AppletTest.setParameter('textFont',form1.textFont.value);
document.AppletTest.setParameter('fontColor',form1.fontColor.value);
document.AppletTest.setParameter('barColor',form1.barColor.value);
document.AppletTest.setParameter('backColor',form1.backColor.value);
document.AppletTest.setParameter('rotate',form1.rotate.value);
document.AppletTest.setParameter('barHeightCM',form1.barHeightCM.value);
document.AppletTest.setParameter('x',form1.x.value);
document.AppletTest.setParameter('n',form1.n.value);
document.AppletTest.setParameter('leftMarginCM',form1.leftMarginCM.value);
document.AppletTest.setParameter('topMarginCM',form1.topMarginCM.value);
document.AppletTest.setParameter('checkCharacter',form1.checkCharacter.value);
document.AppletTest.setParameter('checkCharacterInText',form1.checkCharacterInText.value);
document.AppletTest.setParameter('Code128Set',form1.Code128Set.value);
document.AppletTest.setParameter('UPCESytem',form1.UPCESytem.value);
document.AppletTest.refresh();
}
</script>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -