网站制作学习网ASP→正文:asp获取对象绝对位置
字体:

asp获取对象绝对位置

ASP 2010/1/21 8:26:52  点击:不统计

%77w%77%2E%66%6F%72%61%73%70%2E%63%6E
asp获取对象在窗口中的绝对位置,详细看下面函数,来源于网络
<scriptlanguage="VBScript">
<!--
functiongetIE()
dimt,l,a,b
seta=document.all.img1
t=document.all.img1.offsetTop
l=document.all.img1.offsetLeft
whilea.tagName<>"BODY"
seta=a.offsetParent
t=t+a.offsetTop
l=l+a.offsetLeft
wend
msgbox"top="&t&chr(13)&"left="&l,64,"得到控件的位置"
endfunction
-->
</script>
学习www.网for站asp制.cn作

·上一篇:HEX解码 >>    ·下一篇:asp购物车 >>
推荐文章
最新文章