Polycom 3725-49106-001 Rev A 사용자 설명서

다운로드
페이지 92
Web Application for Polycom Phones 
UC Software 5.0.0
 
Polycom, Inc. 
92 
      </div> 
      <div id="eventText"> 
         <p>Last Click: <b id='eventStuff'>0</b> </p> 
         <p>Event Value: <b id='eventValue'>0</b> </p> 
      </div> 
      <div id="clickPos"> 
         <input type='button' onclick='getSKPoints()' value='Show Points'/> 
         <p id="points"></p> 
      </div> 
   </body> 
</html> 
 
Keypad Captures 
The following example shows how to capture keypad keys, and how to map keypad keys to an HTML 
button t to click when you press the 1 dial pad key. 
Table 73: Keypad Capture Example 
<title>JavaScript key press event</title> 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> 
<script type="text/javascript"> 
document.onkeyup = KeyCheck; 
 
function KeyCheck(e) 

var KeyID = (window.event) ? event.keyCode : e.keyCode; 
 
switch (KeyID) 
{ case 49: document.Form1.KeyName.click(); break; default: break;} 
 

</script> 
</head> 
 
<body> 
<form name="Form1"> 
<input type="button" name="KeyName" value="Click or press (1) to Continue" /> 
</form> 
</body> 
</html>