如何用鼠标画出一个线 http://www.vbnc.net/nba23/js/m0002.htm 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <HTML><HEAD><META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0"><TITLE></TITLE></HEAD><BODY><div id=xx style="display:none;border:solid 1px black;position:absolute"></div></BODY></HTML><script>var x,y,s=falsefunction document.onselectstart(){return false;}function document.ondrag(){return false;}function document.onmouseup(){s=false}document.onmousedown=function() { x=document.body.scrollLeft+event.clientX y=document.body.scrollTop+event.clientY s=true //alert(x+"|"+y) }document.onmousemove=function() { if(s) { xx.style.display="" if(document.body.scrollLeft+event.clientX-x>0) { xx.style.width=document.body.scrollLeft+event.clientX-x xx.style.left=x } else { xx.style.width=document.body.scrollLeft+event.clientX xx.style.left=x-document.body.scrollLeft-event.clientX } if(document.body.scrollTop+event.clientY-y>0) { xx.style.height=document.body.scrollTop+event.clientY-y xx.style.top=y } else { xx.style.height=document.body.scrollTop+event.clientY xx.style.top=y-document.body.scrollTop-event.clientY } } }</script> <html xmlns:v="urn:schemas-microsoft-com:vml"><HEAD><style> v\:* { BEHAVIOR: url(#default#VML) }</STYLE><META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0"><TITLE></TITLE></HEAD><BODY><input onclick=alert(document.body.innerHTML)><v:polyline style="display:inline;position:absolute" points="" filled="false" onclick="alert(this.tagName)"/></BODY></HTML><script>var s=false,x=new Array(),tdocument.onmousedown=function(){ //x[0]=event.clientX+","+event.clientY+" " s=true }document.onmousemove=function(){ if(s) { xx=document.all.tags("polyline")[0] xx.style.display="" x[x.length]=event.clientX+","+event.clientY xx.points.value=x.join(" ") } }document.onmouseup=function(){s=false;}</script>一笔画,不爽 C# 父页面中点击连接,弹出子窗口(treeview架构),当选中treeview中复选框时,然后关闭子窗口,得到选择节点的值,且把得到的值,传给父页面的文本框 时间比较 谢谢! 在javacript内怎么给jsp代码中string变量赋值 求DOM API 求助!请问网页上那种关联选择的功能怎么做呢? 这年头连csdn的账号也会丢 javascript问题:求一简单正则表达式 求个Js正则 小问题——急 单击和双击一个记录的问题 如何在按纽点击事件(javascript)中将本页表单中的select选框源码完全复制过来? 请问javascript 可不可以取session中的数据
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE></TITLE>
</HEAD>
<BODY><div id=xx style="display:none;border:solid 1px black;position:absolute"></div></BODY>
</HTML>
<script>
var x,y,s=false
function document.onselectstart(){
return false;
}function document.ondrag(){
return false;
}
function document.onmouseup(){
s=false
}
document.onmousedown=function()
{
x=document.body.scrollLeft+event.clientX
y=document.body.scrollTop+event.clientY
s=true
//alert(x+"|"+y)
}document.onmousemove=function()
{
if(s)
{
xx.style.display=""
if(document.body.scrollLeft+event.clientX-x>0)
{
xx.style.width=document.body.scrollLeft+event.clientX-x
xx.style.left=x }
else
{
xx.style.width=document.body.scrollLeft+event.clientX
xx.style.left=x-document.body.scrollLeft-event.clientX
}
if(document.body.scrollTop+event.clientY-y>0)
{
xx.style.height=document.body.scrollTop+event.clientY-y
xx.style.top=y
}
else
{
xx.style.height=document.body.scrollTop+event.clientY
xx.style.top=y-document.body.scrollTop-event.clientY
}
}
}</script>
<HEAD>
<style>
v\:* { BEHAVIOR: url(#default#VML) }
</STYLE>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE></TITLE>
</HEAD>
<BODY>
<input onclick=alert(document.body.innerHTML)>
<v:polyline style="display:inline;position:absolute" points="" filled="false" onclick="alert(this.tagName)"/>
</BODY>
</HTML>
<script>
var s=false,x=new Array(),t
document.onmousedown=function(){
//x[0]=event.clientX+","+event.clientY+" "
s=true
}
document.onmousemove=function(){
if(s)
{
xx=document.all.tags("polyline")[0]
xx.style.display=""
x[x.length]=event.clientX+","+event.clientY
xx.points.value=x.join(" ")
}
}
document.onmouseup=function(){s=false;}
</script>
一笔画,不爽