Grandstream GXV3140 GMI Guide User Manual
Page 32

Grandstream Networks, Inc.
GMI HTML SDK and API Guide
Page 32 of 43
www.grandstream.com
Last Updated: 09/2010
$
bgcolor
[
2
]
=
'
#3AC23A
';
$
bgcolor
[
3
]
=
'
#D1D238
';
$
bgcolor
[
4
]
=
'
#EE0EF2
';
$
bgcolor
[
5
]
=
'
#ff0000
';
$
bgcolor
[
6
]
=
'
#3EF812
';
$
bgcolor
[
7
]
=
'
#F9E4C5
';
// for basic functions, you won't need to change anything after this, though you
might want to. It's pretty ugly as it stands.
?>
<
html
><
head
><
title
>
Vote
</
title
>
<
link
href
=
'../css/main.css'
type
=
'text/css'
rel
=
'stylesheet'
>
<
script
language
=
"javascript"
src
=
"../js/GMI.js"
></
script
>
<
script
language
=
"javascript"
>
//This function process es key events. Here, only F4 key stroke is processed, and
returns to the last page visited.
function
softkey_process
(
keyCode
)
{
parent
.
document
.title =
"myvote-iframe, in softkey_process, keyCode = "
+
keyCode;
switch
(
keyCode
)
{
case
112
:
//F1 process here;
case
13
:
//Enter process here
break
;
case
113
:
//F2 process here;
break
;
case
114
:
//F3 process here;
break
;
case
115
:
//F4 process here
GMIEngine.historypage
(-1)
;
break
;