function hqz(a,b){
var paren = b ? document.getElementById(b) : document;
var elses = new Array();
var son=paren.getElementsByTagName('*');
for(var i = 0;i<=son.length;i++){
if(a == son[i].className){
elses.push(son[i]);
}
}
return elses;
}
window.onload=tuoz();
function tuoz(){
var zhi = hqz("login_logo_webqq","loginPanel")[0];
zhi.onmousedown=djtd();
}
function djtd(){
document.onmousemove = function(event){
event = event || window.event;
document.title = event.clientX + "," + event.clientY;
}
}上面的代码我把鼠标坐标在title里显示,但是我点击后腿拽无法显示,求大神帮我看看,谢谢。
添加回答
举报
0/150
提交
取消