问题描述
我正在使用以下代码示例,并尝试使用Google条码字体返回返回的结果弹出式窗口:https://fonts.googleapis.com/css?family=Libre Barcode 39 Extended
我不知道该如何编码,因此弹出的脚本弹出窗口会显示使用该字体的结果。
<html>
<head>
<title>Form to Barcode Example</title>
</head>
<script LANGUAGE="JavaScript" type="text/javascript">
function display() {
DispWin = window.open('','NewWin','toolbar=no,status=no,width=300,height=200')
message = "<ul><li><b>NAME: </b>" + document.form1.yourname.value;
message += "<li><b>ADDRESS: </b>" + document.form1.address.value;
message += "<li><b>PHONE: </b>" + document.form1.phone.value + "</ul>";
DispWin.document.write(message);
}
</script>
</head>
<body>
<span style="font-family: Arial; font-weight: normal; font-style: normal; text-decoration: none; font-size: 14pt;"><h1>Form Example</h1>
Enter the following information. When you press the Display button,the data you entered will be displayed in a pop-up window showing the barcoded results.
<form name="form1">
<p><b>Name:</b> <input TYPE="TEXT" SIZE="20" NAME="yourname">
</p>
<p><b>Address:</b> <input TYPE="TEXT" SIZE="30" NAME="address">
</p>
<p><b>Phone: </b> <input TYPE="TEXT" SIZE="15" NAME="phone">
</p>
<p><input TYPE="BUTTON" VALUE="Display" onClick="display();"></p>
</form></span>
</body>
</html>
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)