Active X - PowerPoint PPT Presentation

About This Presentation
Title:

Active X

Description:

Add to page with the OBJECT tag. Accessible via scripting ... Structured Graphics control can process the DHTML mouse events. Mouse Events -2. ONMOUSEUP ... – PowerPoint PPT presentation

Number of Views:30
Avg rating:3.0/5.0
Slides: 13
Provided by: randall82
Learn more at: http://granite.sru.edu
Category:
Tags: active | dhtml

less

Transcript and Presenter's Notes

Title: Active X


1
Active X Mouse Events
2
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

3
Netscape
  • Does not work in Netscape
  • You get a JavaScript error and a blank page
  • Yet another reason to avoid Netscape

4
Mouse Events
  • Structured Graphics control can process the DHTML
    mouse events

5
Mouse Events -2
  • ONMOUSEUP
  • ONMOUSEDOWN
  • ONMOUSEMOVE
  • ONMOUSEOVER
  • ONMOUSEOUT
  • ONCLICK
  • ONDBLCLICK

6
Example
  • bounce2.html (Fig 30.6 pg 1021)

7
Points to Ponder
  • You must set Structured Graphics Control to
    capture mouse events
  • Inside OBJECT tag
  • ltPARAM NAME MouseEventEnabled VALUE 1gt

8
External Files
  • Use set of method call in separate source file
    and invoke by calling
  • ltSCRIPT FORball EVENTONCLICK
    LANGUAGEJavaScriptgt ball.SourceURL
    newoval.txt
  • lt/SCRIPTgt

9
Example Script
  • newoval.txt

10
Scaling Example
  • Scaling Example

11
Further Exploration
  • www.microsoft.com/directx/dxm/help/da/default.htm

12
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 ltPARAMgt may be user defined and in
    any order.
Write a Comment
User Comments (0)
About PowerShow.com