在线手写板功能地址代码|汉字汉语在线手写输入地址代码
很简单看下面
汉字汉语在线手写输入点右边的手写就可以
这个地方下面就可以点了,上面是图片
需要代码的同学请直接下面复制
<form name="f" action="s">
<input type="text" name="wd" id="kw" maxlength="100">
<span id="sx">手写</span>
</form>
<script language="javascript">
var w = window,d = document,n = navigator,k = d.f.wd
if (w.attachEvent) {
w.attachEvent("onload", function() {k.focus();})
} else {
w.addEventListener('load', function() {k.focus()},true)
};
var hw = {};
hw.i = d.getElementById("sx");
var il = false;
if (/msie (\d+\.\d)/i.test(n.userAgent)) {
hw.i.setAttribute("unselectable", "on")
} else {
var sL = k.value.length;
k.selectionStart = sL;
k.selectionEnd = sL
}
hw.i.onclick = function(B) {
var B = B || w.event;
B.stopPropagation ? B.stopPropagation() : (B.cancelBubble = true);
if (d.selection && d.activeElement.id && d.activeElement.id == "kw") {
hw.hasF = 1
} else {
if (!d.selection) {
hw.hasF = 1
}
}
if (!il) {
var A = d.createElement("script");
A.setAttribute("src", "http://www.zzsky.cn/effect/images/hwInput.js");
d.getElementsByTagName("head")[0].appendChild(A);
il = true;
}
};
</script>
很简单看下面
汉字汉语在线手写输入点右边的手写就可以
<form name="f" action="s">
<input type="text" name="wd" id="kw" maxlength="100">
<span id="sx">手写</span>
</form>
<script language="javascript">
var w = window,d = document,n = navigator,k = d.f.wd
if (w.attachEvent) {
共有 0 条评论