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;
}
}上面的代碼我把鼠標(biāo)坐標(biāo)在title里顯示,但是我點(diǎn)擊后腿拽無(wú)法顯示,求大神幫我看看,謝謝。
qq拖拽那一節(jié),我的代碼無(wú)法拖拽
續(xù)寫(xiě)不盡的未來(lái)3319689
2016-10-07 22:02:02