<html>
<body>
<table border="0" bgcolor="#ebebeb" width="600" cellspacing="5"
cellpadding="5" style="font-family:verdana;font-size:8pt;"
align="center">
<tr><td bgcolor="f8f8f8">
The following example shows all buttons and their current states.
Click them to call their functions.
</td></tr>
<tr><td style="font-family:verdana;font-size:8pt;">
<pre>
<SCRIPT TYPE="text/javascript">
window.external.InitScriptInterface();
skdir = SiteKiosk.SiteKioskDirectory;
function btisenabled(buttonid)
{
if (SiteKioskWebBrowser.IsButtonVisible(buttonid))
{
btactstatus = "<b>Angezeigt</b>";
if (!SiteKioskWebBrowser.IsButtonEnabled(buttonid))
btactstatus += " aber momentan deaktiviert";
}
else btactstatus = "Nicht angezeigt";
return btactstatus;
}
function bswitch(buttonid, newstate)
{
if (buttonid == 2)
{
if (newstate == 0) bback.src = skdir +
"skins\\default\\img\\small\\zurueck_n.gif";
if (newstate == 1) bback.src = skdir +
"skins\\default\\img\\small\\zurueck_o.gif";
if (newstate == 2) bback.src = skdir +
"skins\\default\\img\\small\\zurueck_p.gif";
}
if (buttonid == 1)
{
if (newstate == 0) bforward.src = skdir +
"skins\\default\\img\\small\\vorwaerts_n.gif";
if (newstate == 1) bforward.src = skdir +
"skins\\default\\img\\small\\vorwaerts_o.gif";
if (newstate == 2) bforward.src = skdir +
"skins\\default\\img\\small\\vorwaerts_p.gif";
}
if (buttonid == 3)
{
if (newstate == 0) bstop.src = skdir +
"skins\\default\\img\\small\\stop_n.gif";
if (newstate == 1) bstop.src = skdir +
"skins\\default\\img\\small\\stop_o.gif";
if (newstate == 2) bstop.src = skdir +
"skins\\default\\img\\small\\stop_p.gif";
}
if (buttonid == 4)
{
if (newstate == 0) brefresh.src = skdir +
"skins\\default\\img\\small\\aktualisieren_n.gif";
if (newstate == 1) brefresh.src = skdir +
"skins\\default\\img\\small\\aktualisieren_o.gif";
if (newstate == 2) brefresh.src = skdir +
"skins\\default\\img\\small\\aktualisieren_p.gif";
}
if (buttonid == 5)
{
if (newstate == 0) bhome.src = skdir +
"skins\\default\\img\\small\\startseite_n.gif";
if (newstate == 1) bhome.src = skdir +
"skins\\default\\img\\small\\startseite_o.gif";
if (newstate == 2) bhome.src = skdir +
"skins\\default\\img\\small\\startseite_p.gif";
}
if (buttonid == 6)
{
if (newstate == 0) bsearch.src = skdir +
"skins\\default\\img\\small\\suchen_n.gif";
if (newstate == 1) bsearch.src = skdir +
"skins\\default\\img\\small\\suchen_o.gif";
if (newstate == 2) bsearch.src = skdir +
"skins\\default\\img\\small\\suchen_p.gif";
}
if (buttonid == 7)
{
if (newstate == 0) bprint.src = skdir +
"skins\\default\\img\\small\\drucken_n.gif";
if (newstate == 1) bprint.src = skdir +
"skins\\default\\img\\small\\drucken_o.gif";
if (newstate == 2) bprint.src = skdir +
"skins\\default\\img\\small\\drucken_p.gif";
}
if (buttonid == 8)
{
if (newstate == 0) bemail.src = skdir +
"skins\\default\\img\\small\\email_n.gif";
if (newstate == 1) bemail.src = skdir +
"skins\\default\\img\\small\\email_o.gif";
if (newstate == 2) bemail.src = skdir +
"skins\\default\\img\\small\\email_p.gif";
}
if (buttonid == 9)
{
if (newstate == 0) bprog.src = skdir +
"skins\\default\\img\\small\\programme_n.gif";
if (newstate == 1) bprog.src = skdir +
"skins\\default\\img\\small\\programme_o.gif";
if (newstate == 2) bprog.src = skdir +
"skins\\default\\img\\small\\programme_p.gif";
}
if (buttonid == 10)
{
if (newstate == 0) bmediam.src = skdir +
"skins\\default\\img\\small\\webcam_n.gif";
if (newstate == 1) bmediam.src = skdir +
"skins\\default\\img\\small\\webcam_o.gif";
if (newstate == 2) bmediam.src = skdir +
"skins\\default\\img\\small\\webcam_p.gif";
}
if (buttonid == 11)
{
if (newstate == 0) blogout.src = skdir +
"skins\\default\\img\\small\\ausloggen_n.gif";
if (newstate == 1) blogout.src = skdir +
"skins\\default\\img\\small\\ausloggen_o.gif";
if (newstate == 2) blogout.src = skdir +
"skins\\default\\img\\small\\ausloggen_p.gif";
}
if (buttonid == 12)
{
if (newstate == 0) bclose.src = skdir +
"skins\\default\\img\\small\\exit_n.gif";
if (newstate == 1) bclose.src = skdir +
"skins\\default\\img\\small\\exit_o.gif";
if (newstate == 2) bclose.src = skdir +
"skins\\default\\img\\small\\exit_p.gif";
}
}
if (SiteKioskWebBrowser.IsButtonVisible(2))
{
if (SiteKioskWebBrowser.IsButtonEnabled(2))
document.write("<a href='javascript:SiteKioskWebBrowser." +
"GoBack()'><img border='0' hspace='2' name='bback' src='" +
skdir + "skins\\default\\img\\small\\zurueck_n.gif'" +
"onmouseover='bswitch(2,1)' onmouseout='bswitch(2,0)'" +
"onmousedown='bswitch(2,2)' onmouseup='bswitch(2,0)'></a>");
else
document.write("<img border='0' hspace='2' name='bback' src='" +
skdir + "skins\\default\\img\\small\\zurueck_d.gif'>");
}
if (SiteKioskWebBrowser.IsButtonVisible(1))
{
if (SiteKioskWebBrowser.IsButtonEnabled(1))
document.write("<a href='javascript:SiteKioskWebBrowser." +
"GoForward()'><img border='0' hspace='2' name='bforward' src='" +
skdir + "skins\\default\\img\\small\\vorwaerts_n.gif'" +
"onmouseover='bswitch(1,1)' onmouseout='bswitch(1,0)'" +
"onmousedown='bswitch(1,2)' onmouseup='bswitch(1,0)'></a>");
else
document.write("<img border='0' hspace='2' name='bforward' src='" +
skdir + "skins\\default\\img\\small\\vorwaerts_d.gif'>");
}
if (SiteKioskWebBrowser.IsButtonVisible(3))
{
if (SiteKioskWebBrowser.IsButtonEnabled(3))
document.write("<a href='javascript:SiteKioskWebBrowser.Stop()'>" +
"<img border='0' hspace='2' name='bstop' src='" +
skdir + "skins\\default\\img\\small\\stop_n.gif'" +
"onmouseover='bswitch(3,1)' onmouseout='bswitch(3,0)'" +
"onmousedown='bswitch(3,2)' onmouseup='bswitch(3,0)'></a>");
else
document.write("<img border='0' hspace='2' name='bstop' src='" +
skdir + "skins\\default\\img\\small\\stop_d.gif'>");
}
if (SiteKioskWebBrowser.IsButtonVisible(4))
{
if (SiteKioskWebBrowser.IsButtonEnabled(4))
document.write("<a href='javascript:SiteKioskWebBrowser." +
"Refresh()'><img border='0' hspace='2' name='brefresh' src='" +
skdir + "skins\\default\\img\\small\\aktualisieren_n.gif'" +
"onmouseover='bswitch(4,1)' onmouseout='bswitch(4,0)'" +
"onmousedown='bswitch(4,2)' onmouseup='bswitch(4,0)'></a>");
else
document.write("<img border='0' hspace='2' name='brefresh' src='" +
skdir + "skins\\default\\img\\small\\aktualisieren_d.gif'>");
}
if (SiteKioskWebBrowser.IsButtonVisible(5))
{
if (SiteKioskWebBrowser.IsButtonEnabled(5))
document.write("<a href='javascript:SiteKioskWebBrowser." +
"GoHome()'><img border='0' hspace='2' name='bhome' src='" +
skdir + "skins\\default\\img\\small\\startseite_n.gif'" +
"onmouseover='bswitch(5,1)' onmouseout='bswitch(5,0)'" +
"onmousedown='bswitch(5,2)' onmouseup='bswitch(5,0)'></a>");
else
document.write("<img border='0' hspace='2' name='bhome' src='" +
skdir + "skins\\default\\img\\small\\startseite_d.gif'>");
}
if (SiteKioskWebBrowser.IsButtonVisible(6))
{
if (SiteKioskWebBrowser.IsButtonEnabled(6))
document.write("<a href='javascript:SiteKioskWebBrowser." +
"Navigate(SiteKiosk.URLs.Search, false)'><img border='0'" +
"hspace='2' name='bsearch' src='" + skdir +
"skins\\default\\img\\small\\suchen_n.gif'" +
"onmouseover='bswitch(6,1)' onmouseout='bswitch(6,0)'" +
"onmousedown='bswitch(6,2)' onmouseup='bswitch(6,0)'></a>");
else
document.write("<img border='0' hspace='2' name='bsearch'" +
"src='" + skdir + "skins\\default\\img\\small\\suchen_d.gif'>");
}
if (SiteKioskWebBrowser.IsButtonVisible(7))
{
if (SiteKioskWebBrowser.IsButtonEnabled(7))
document.write("<a href='javascript:SiteKioskWebBrowser." +
"Print()'><img border='0' hspace='2' name='bprint' src='" +
skdir + "skins\\default\\img\\small\\drucken_n.gif'" +
"onmouseover='bswitch(7,1)' onmouseout='bswitch(7,0)'" +
"onmousedown='bswitch(7,2)' onmouseup='bswitch(7,0)'></a>");
else
document.write("<img border='0' hspace='2' name='bprint' src='" +
skdir + "skins\\default\\img\\small\\drucken_d.gif'>");
}
if (SiteKioskWebBrowser.IsButtonVisible(8))
{
if (SiteKioskWebBrowser.IsButtonEnabled(8))
document.write("<a href='javascript:SiteKioskWebBrowser." +
"Navigate(SiteKiosk.URLs.Email, false)'><img border='0'" +
"hspace='2' name='bemail' src='" + skdir +
"skins\\default\\img\\small\\email_n.gif'" +
"onmouseover='bswitch(8,1)' onmouseout='bswitch(8,0)'" +
"onmousedown='bswitch(8,2)' onmouseup='bswitch(8,0)'></a>");
else
document.write("<img border='0' hspace='2' name='bemail'" +
"src='" + skdir + "skins\\default\\img\\small\\email_d.gif'>");
}
if (SiteKioskWebBrowser.IsButtonVisible(9))
{
if (SiteKioskWebBrowser.IsButtonEnabled(9))
document.write("<a href='javascript:SiteKioskWebBrowser." +
"Navigate(SiteKiosk.URLs.Applications, false)'><img" +
"border='0' hspace='2' name='bprog' src='" + skdir +
"skins\\default\\img\\small\\programme_n.gif'" +
"onmouseover='bswitch(9,1)' onmouseout='bswitch(9,0)'" +
"onmousedown='bswitch(9,2)' onmouseup='bswitch(9,0)'></a>");
else
document.write("<img border='0' hspace='2' name='bprog' src='" +
skdir + "skins\\default\\img\\small\\programme_d.gif'>");
}
if (SiteKioskWebBrowser.IsButtonVisible(10))
{
if (SiteKioskWebBrowser.IsButtonEnabled(10))
document.write("<a href='javascript:SiteKioskWebBrowser." +
"Navigate(SiteKiosk.URLs.MediaMail, false)'><img border='0'" +
"hspace='2' name='bmediam' src='" + skdir +
"skins\\default\\img\\small\\webcam_n.gif'" +
"onmouseover='bswitch(10,1)' onmouseout='bswitch(10,0)'" +
"onmousedown='bswitch(10,2)' onmouseup='bswitch(10,0)'></a>");
else
document.write("<img border='0' hspace='2' name='bmediam'" +
"src='" + skdir + "skins\\default\\img\\small\\webcam_d.gif'>");
}
if (SiteKioskWebBrowser.IsButtonVisible(11))
{
if (SiteKioskWebBrowser.IsButtonEnabled(11))
document.write("<a href='javascript:SiteKiosk.Logout()'>" +
"<img border='0' hspace='2' name='blogout' src='" +
skdir + "skins\\default\\img\\small\\ausloggen_n.gif'" +
"onmouseover='bswitch(11,1)' onmouseout='bswitch(11,0)'" +
"onmousedown='bswitch(11,2)' onmouseup='bswitch(11,0)'></a>");
else
document.write("<img border='0' hspace='2' name='blogout'" +
"src='" + skdir + "skins\\default\\img\\small\\ausloggen_n.gif'>");
}
if (SiteKioskWebBrowser.IsButtonVisible(12))
{
if (SiteKioskWebBrowser.IsButtonEnabled(12))
document.write("<a href='javascript:SiteKiosk.Quit()'>" +
"<img border='0' hspace='2' name='bclose' src='" +
skdir + "skins\\default\\img\\small\\exit_n.gif'" +
"onmouseover='bswitch(12, 1)' onmouseout='bswitch(12, 0)'" +
"onmousedown='bswitch(12, 2)' onmouseup='bswitch(12, 0)'></a>");
else
document.write("<img border='0' hspace='2' name='bclose' src='" +
skdir + "skins\\default\\img\\small\\exit_d.gif'>");
}
document.writeln("\n");
document.writeln("Back: " + btisenabled(2));
document.writeln("Forward: " + btisenabled(1));
document.writeln("Stop: " + btisenabled(3));
document.writeln("Refresh: " + btisenabled(4));
document.writeln("Start: " + btisenabled(5));
document.writeln("Search: " + btisenabled(6));
document.writeln("Print: " + btisenabled(7));
document.writeln("Email: " + btisenabled(8));
document.writeln("Programs: " + btisenabled(9));
document.writeln("Mediamail: " + btisenabled(10));
document.writeln("Logout: " + btisenabled(11));
document.write("Close: " + btisenabled(12));
</SCRIPT>
</pre>
</td></tr>
</table>
</body>
</html>
|