捣乱程序的原代码!
本来想整理一下格式再发表的,可是整理后就说抱歉,你的大作发表失败,只能如此了.

########################################################
<!DOCTYPEHTMLPUBLIC"-//W3C//DTDHTML4.0Transitional//EN">
<htmlxmlns:v="urn:schemas-microsoft-com:vml">
<STYLE>
v\:*{
Behavior:url(#default#VML)
}
</STYLE>
<head>
<scriptlanguage="javascript">
functionsetVml(){
vartempx=event.x-276;
vartempy=event.y-171;
if(theLastVal.value!=""&&theLastVal.value!=null){
div1.appendChild(document.createElement("<v:linestyle='position:absolute' from="+theLastVal.value+" to="+tempx+","+tempy+"dashstyle='Dot'/>"));
}
theLastVal.value=tempx+","+tempy;
} function setVal(){ alert("完成!!!! 可以继续!"); theLastVal.value=""; }
</script>
</head>
<BODY>
<inputtype="hidden"value=""id="theLastVal">
刚刚学了点JavaScript,在这上面编个小程序试试!<br>
<fontcolor=red>你可以用鼠标在黑色框中绘出你的图形,试试吧!打开网页后<b>请用方向键的向下键向下调三</b>下,以便使程序能运行完美!(双击结束)</font><br>
看到效果了吗,还有鼠标的坐标!here->
<input type=text id=zuobiao size=6 disabled='true' value="0,0"><br>
哈哈~~^*^
<div style='width:600;height:400;background-color:white;border:1solidgray;color:black;' onClick="setVml();" id="div1" onmousemove='zuobiao.value=(event.x-276)+","+(event.y-171);' ondblclick='setVal();'>
</div>
</BODY>
</HTML>
meiking   2004-09-13 16:59:52 评论:0   阅读:1167   引用:0
原代码. @2004-09-13 17:02:21  mk..
本来想整理一下再发的,可是整理后就发不出来了!
原代码. @2004-09-13 17:01:39  mk..
<!DOCTYPEHTMLPUBLIC"-//W3C//DTDHTML4.0Transitional//EN">
<htmlxmlns:v="urn:schemas-microsoft-com:vml">
<STYLE>
v\:*{
Behavior:url(#default#VML)
}
</STYLE>
<head>
<scriptlanguage="javascript">
functionsetVml(){
vartempx=event.x-276;
vartempy=event.y-171;
if(theLastVal.value!=""&&theLastVal.value!=null){ div1.appendChild(document.createElement("<v:linestyle='position:absolute'
from="+theLastVal.value+"
to="+tempx+","+tempy+"dashstyle='Dot'/>"));
}
theLastVal.value=tempx+","+tempy;
}
</script>
</head>
<BODY>
<inputtype="hidden"value=""id="theLastVal">
刚刚学了点JavaScript,在这上面编个小程序试试!<br>
<fontcolor=red>你可以用鼠标在黑色框中绘出你的图形,试试吧!打开网页后<b>请用方向键的向下键向下调三</b>下,以便使程序能运行完美!</font><br>
看到效果了吗,还有鼠标的坐标!here-><inputtype=textid=zuobiaosize=6disabled='true'value="0,0"><br>
哈哈~~^*^
<divstyle='width:600;height:400;background-color:white;border:1solidgray;color:black;'
onClick="setVml();"
id="div1"
onmousemove='zuobiao.value=(event.x-276)+","+(event.y-171);'
ondblclick="setVal();">
</div>
</BODY>
</HTML>

发表评论>>

署名发表(评论可管理,不必输入下面的姓名)

姓名:

主题:

内容: 最少15个,最长1000个字符

验证码: (如不清楚,请刷新)

谢智的个人博客 @CSS by self