摘要:
var oEvent=ev||event; oDiv.style.left=oEvent.clientX+'px'; oDiv.style.top=oEvent.clientY+'px';
阅读全文
posted @ 2012-02-13 15:22
仙梦之飘
阅读(154)
推荐(0)
编辑
摘要:
function hasContain(arr, num){var i=0;for(i=0;i<arr.length;i++){if(arr[i]==num){return true;}}return false;}var arr=[1,2,3,4,1,5,6,4,8];var aResult=[];var i=0;for(i=0;i<arr.length;i++){if(!hasContain(aResult, arr[i])){aResult.push(arr[i]);}}alert(aResult);
阅读全文
posted @ 2012-02-13 14:53
仙梦之飘
阅读(137)
推荐(0)
编辑
摘要:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb23
阅读全文
posted @ 2012-02-13 11:08
仙梦之飘
阅读(1206)
推荐(0)
编辑