菜鸟请教高手~~~~

dullren1 2003-01-02 11:13:00
window对象中有几个属性不明白:
locationbar.visible
personabar.visible
statusbar.visible
toolbar.visible
看书中的说明,知道几个属性表示的含义,可是它们应该怎么用?


newX = window.event.x + document.body.scrollLeft;
newY = window.event.y + document.body.scrollTop;
知道这个两条语句的作用是返回鼠标的位置,可是event.x和scroolLeft、scroolTop的含义找了半天也没找到。
哪位知道??劳驾讲的详细些~~~
...全文
28 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
wangxj0600 2003-01-03
  • 打赏
  • 举报
回复
scrollLeft : Sets or retrieves the distance between the left edge of the object and the leftmost portion of the content currently visible in the window.
x:Sets or retrieves the x-coordinate, in pixels, of the mouse pointer's position relative to the parent element.
wangxj0600 2003-01-03
  • 打赏
  • 举报
回复
locationbar.visible
personabar.visible
statusbar.visible
toolbar.visible
这些都是那N4+的属性,控制浏览器的位置栏,菜单栏个人拦和工具栏是否可见。
meizz 2003-01-02
  • 打赏
  • 举报
回复
http://www.lostinet.com/download/reference/HTMLREF.CHM 2.42M

87,994

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧