Active X – Mouse Events
Structured Graphics Control Included in Internet Explorer v5.0 Add to page with the OBJECT tag Accessible via scripting Primarily for visual presentation not for displaying data or content
Netscape Does not work in Netscape You get a JavaScript error and a blank page Yet another reason to avoid Netscape
Mouse Events Structured Graphics control can process the DHTML mouse events
Mouse Events -2 ONMOUSEUP ONMOUSEDOWN ONMOUSEMOVE ONMOUSEOVER ONMOUSEOUT ONCLICK ONDBLCLICK
Example bounce2.html (Fig 30.6 pg 1021) bounce2.html (Fig 30.6 pg 1021)
Points to Ponder You must set Structured Graphics Control to capture mouse events –Inside OBJECT tag –
External Files Use set of method call in separate source file and invoke by calling ball.SourceURL = “newoval.txt”;
Example Script newoval.txtnewoval.txt
Scaling Example Scaling Example Scaling Example
Further Exploration efault.htm
Questions (True or False) 1. Active X works in Netscape. 2. You must explicitly enable mouse events in Active X for them to work. 3. All Active X code must be located inside the page. 4. Structured Graphics Control is primarily for displaying data and tables. 5. Names in the may be user defined and in any order.