phone.html 988 B

123456789101112131415161718192021222324252627282930313233
  1. <HTML>
  2. <HEAD>
  3. <TITLE>ActiveX Demo - Phonebook</TITLE>
  4. </HEAD>
  5. <BODY>
  6. <H1>Simple Phone Book</H1>
  7. <OBJECT
  8. CLASSID="CLSID:E67D346B-2A5B-11D0-ADBA-00C01500554E"
  9. id=PhoneBook
  10. >
  11. </OBJECT>
  12. This page uses a small (40K) non-visual control which provides access
  13. to a phone book which also might run on a remote computer. This ActiveX
  14. control has been implemented with the DTC Component Pascal compiler.
  15. <P>
  16. Enter a name or a phone number and press the corresponding button:
  17. <P>
  18. <INPUT TYPE="text" NAME = "NameField" SIZE=20>
  19. <INPUT TYPE=BUTTON VALUE="Lookup by Name" NAME="NameBtn">
  20. <INPUT TYPE=BUTTON VALUE="Lookup by Number" NAME="NumberBtn">
  21. <SCRIPT LANGUAGE=VBScript>
  22. Sub NameBtn_Onclick
  23. alert "Phone number of " & NameField.value & ": " & PhoneBook.LookupByName(NameField.value)
  24. End Sub
  25. Sub NumberBtn_Onclick
  26. alert "Name of line " & NameField.value & ": " & PhoneBook.LookupByNumber(NameField.value)
  27. End Sub
  28. </SCRIPT>
  29. </BODY>
  30. </HTML>