|
模拟Windows Listview的HTC组件(7) function resize() { with (bodySpan.style) { width = parseInt(element.clientWidth); height = parseInt(element.clientHeight) - 20; } } //内部函数,体滚动事件onscroll function bodyScroll() { header.style.marginLeft = (-window.event.srcElement.scrollLeft) ; } //取消选择 function cancelSelect() { with (window.event) { cancelBubble = true ; returnValue = false ; } return false ; } var downSpliterIndex = -1; var eventX1; var eventX2; //内部函数,分隔条点下 function splitterDown(index) { with (window.event) { eventX1 = parseInt(clientX); cancelBubble = true; returnValue = false; } element.setCapture(); downSpliterIndex = index; downType = 1; with (objSizeItem.style) { top = element.offsetTop; height = element.offsetHeight; posLeft = window.event.clientX - 3; visibility = "visible"; } } //内部函数,事件onmousemove
|