Active X Mouse Events Structured Graphics Control Included

  • Slides: 12
Download presentation
Active X – Mouse Events

Active X – Mouse Events

Structured Graphics Control ¬Included in Internet Explorer v 5. 0 ¬Add to page with

Structured Graphics Control ¬Included in Internet Explorer v 5. 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 Java. Script error and a

Netscape ¬Does not work in Netscape ¬You get a Java. Script error and a blank page ¬Yet another reason to avoid Netscape

Mouse Events ¬Structured Graphics control can process the DHTML mouse events

Mouse Events ¬Structured Graphics control can process the DHTML mouse events

Mouse Events -2 ¬ONMOUSEUP ¬ONMOUSEDOWN ¬ONMOUSEMOVE ¬ONMOUSEOVER ¬ONMOUSEOUT ¬ONCLICK ¬ONDBLCLICK

Mouse Events -2 ¬ONMOUSEUP ¬ONMOUSEDOWN ¬ONMOUSEMOVE ¬ONMOUSEOVER ¬ONMOUSEOUT ¬ONCLICK ¬ONDBLCLICK

Example ¬bounce 2. html (Fig 30. 6 pg 1021)

Example ¬bounce 2. html (Fig 30. 6 pg 1021)

Points to Ponder ¬You must set Structured Graphics Control to capture mouse events –

Points to Ponder ¬You must set Structured Graphics Control to capture mouse events – Inside OBJECT tag – <PARAM NAME= “Mouse. Event. Enabled” VALUE = “ 1”>

External Files ¬Use set of method call in separate source file and invoke by

External Files ¬Use set of method call in separate source file and invoke by calling <SCRIPT FOR=“ball” EVENT=“ONCLICK” LANGUAGE=“Java. Script”> ball. Source. URL = “newoval. txt”; </SCRIPT>

Example Script ¬ newoval. txt

Example Script ¬ newoval. txt

Scaling Example ¬Scaling Example

Scaling Example ¬Scaling Example

Further Exploration ¬www. microsoft. com/directx/dxm/help/da/d efault. htm

Further Exploration ¬www. microsoft. com/directx/dxm/help/da/d efault. htm

Questions (True or False) Active X works in Netscape. You must explicitly enable mouse

Questions (True or False) Active X works in Netscape. 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. 1. 2.