日期:2014-05-16  浏览次数:20332 次

JS 收集

//判读一个对象是否存在

if(document.getElementById("ytlx")){}else{}

?

//在页面获取鼠标点击的位置

??function show_coords(event)
??{
??????x=event.clientX
????? y=event.clientY
????? alert("X 坐标: " + x + ", Y 坐标: " + y)
??}

<body onmousedown="show_coords(event)">

?

//是js同步加载

DWREngine.setAsync(false);