找回密码
 注册
搜索
热搜: 回贴

ArcIMS学习之 HTML Viewer笔记:Javascript纪要

2009-12-16 01:42| 发布者: admin| 查看: 24| 评论: 0|原作者: 云天青

  1.另一个Frame中的JavaScript变量:
var 可在其他框架中使用:
Frame名.变量名 来调用
  2.中
-- Table Row
-- Table Data
  3.元素
提示
  4.DOM 模型
+ forms[]
| images[]
+ frames [] -- document -| anchors[]
| document | ...
| navigator + applets[]
window --| history | status 属性
+ location
  5.事件
1> onClick ,onLoad 等不是 事件处理函数(event handler)而是 事件 (event);
2> 对照表
------------------+------------------------
Object | Event
------------------+------------------------
window,FrameSet | onLoad
Frame | onUnload
------------------+------------------------
Button,IMG,Frame | onClick
| onMouseDown
| onMouseUp
| onMouseMove
------------------+------------------------
3>事件处理函数
function startUp(){
document.onmousedown = maptool;//maptool是函数名
}
function maptool(){
...
}

4>
event.clientX
event.clientY 鼠标坐标,相对于包容窗口左上角
event.offsetX
event.offsetY 鼠标坐标,相对于源元素位置

5>onUnload事件含义:
Browser已经离开使用框架、document网页,在转入其它页之前的事件

最新评论

QQ|小黑屋|最新主题|手机版|微赢网络技术论坛 ( 苏ICP备08020429号 )

GMT+8, 2024-9-30 07:28 , Processed in 0.131709 second(s), 12 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.