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网页,在转入其它页之前的事件
|
|