Active X – Mouse Events. Structured Graphics Control Included in Internet Explorer v5.0 Add to...

12
Active X – Mouse Events

Transcript of Active X – Mouse Events. Structured Graphics Control Included in Internet Explorer v5.0 Add to...

Page 1: Active X – Mouse Events. Structured Graphics Control  Included in Internet Explorer v5.0  Add to page with the OBJECT tag  Accessible via scripting.

Active X – Mouse Events

Page 2: Active X – Mouse Events. Structured Graphics Control  Included in Internet Explorer v5.0  Add to page with the OBJECT tag  Accessible via scripting.

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

Page 3: Active X – Mouse Events. Structured Graphics Control  Included in Internet Explorer v5.0  Add to page with the OBJECT tag  Accessible via scripting.

Netscape

Does not work in NetscapeYou get a JavaScript error and a blank

pageYet another reason to avoid Netscape

Page 4: Active X – Mouse Events. Structured Graphics Control  Included in Internet Explorer v5.0  Add to page with the OBJECT tag  Accessible via scripting.

Mouse Events

Structured Graphics control can process the DHTML mouse events

Page 5: Active X – Mouse Events. Structured Graphics Control  Included in Internet Explorer v5.0  Add to page with the OBJECT tag  Accessible via scripting.

Mouse Events -2

ONMOUSEUP ONMOUSEDOWNONMOUSEMOVEONMOUSEOVERONMOUSEOUTONCLICKONDBLCLICK

Page 6: Active X – Mouse Events. Structured Graphics Control  Included in Internet Explorer v5.0  Add to page with the OBJECT tag  Accessible via scripting.

Example

bounce2.html (Fig 30.6 pg 1021)

Page 7: Active X – Mouse Events. Structured Graphics Control  Included in Internet Explorer v5.0  Add to page with the OBJECT tag  Accessible via scripting.

Points to Ponder

You must set Structured Graphics Control to capture mouse events

– Inside OBJECT tag– <PARAM NAME= “MouseEventEnabled”

VALUE = “1”>

Page 8: Active X – Mouse Events. Structured Graphics Control  Included in Internet Explorer v5.0  Add to page with the OBJECT tag  Accessible via scripting.

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>

Page 9: Active X – Mouse Events. Structured Graphics Control  Included in Internet Explorer v5.0  Add to page with the OBJECT tag  Accessible via scripting.

Example Script

newoval.txt

Page 10: Active X – Mouse Events. Structured Graphics Control  Included in Internet Explorer v5.0  Add to page with the OBJECT tag  Accessible via scripting.

Scaling Example

Scaling Example

Page 11: Active X – Mouse Events. Structured Graphics Control  Included in Internet Explorer v5.0  Add to page with the OBJECT tag  Accessible via scripting.

Further Exploration

www.microsoft.com/directx/dxm/help/da/default.htm

Page 12: Active X – Mouse Events. Structured Graphics Control  Included in Internet Explorer v5.0  Add to page with the OBJECT tag  Accessible via scripting.

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.