Active X – Mouse Events. Structured Graphics Control Included in Internet Explorer v5.0 Add to...
-
Upload
brooke-wright -
Category
Documents
-
view
212 -
download
0
Transcript of Active X – Mouse Events. Structured Graphics Control Included in Internet Explorer v5.0 Add to...
Active X – Mouse Events
Structured Graphics Control
Included in Internet Explorer v5.0Add to page with the OBJECT tagAccessible via scriptingPrimarily for visual presentation not for
displaying data or content
Netscape
Does not work in NetscapeYou get a JavaScript error and a blank
pageYet another reason to avoid Netscape
Mouse Events
Structured Graphics control can process the DHTML mouse events
Mouse Events -2
ONMOUSEUP ONMOUSEDOWNONMOUSEMOVEONMOUSEOVERONMOUSEOUTONCLICKONDBLCLICK
Example
bounce2.html (Fig 30.6 pg 1021)
Points to Ponder
You must set Structured Graphics Control to capture mouse events
– Inside OBJECT tag– <PARAM NAME= “MouseEventEnabled”
VALUE = “1”>
External Files
Use set of method call in separate source file and invoke by calling<SCRIPT FOR=“ball” EVENT=“ONCLICK”
LANGUAGE=“JavaScript”>ball.SourceURL = “newoval.txt”;
</SCRIPT>
Example Script
newoval.txt
Scaling Example
Scaling Example
Further Exploration
www.microsoft.com/directx/dxm/help/da/default.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 <PARAM> may be user defined
and in any order.