The code given below helps to persuade a user to start WebMoney Keeper application. The code contains the ActiveX element, and therefore it can work only in Internet Explorer browser, to enable ActiveX elements in Netscape Navigator browser you should install the necessary plug-in.
At the page the code will look as follows:
After the code is executed the variable wminstneed is set to -1, if WebMoney Keeper is installed on the computer, otherwise it is set to 0 or 1 depending on the fact "if the user has asked" the client to install the Keeper. According to the result it's possible to propose the user without WebMoney Keeper to visit the page containing description of all the conviniences of using Webmoney Transfer and the link to the WebMoney Keeper installation page.
The example of using the result of the code is given below. Clicking the button shows the information massage telling whether WebMoney Keeper is installed on the computer.
Feature! The string <PARAM NAME="nState" VALUE=1> is included in the code of the ActiveX element mentioned above. This string defines the work mode. The rest of the modes (1,2, 4, 8, 16, etc.) are described in the other subsections. The modes can be combined (their values are added) in order to perform several funcation at the same time. Thus in the mode 35 (1+2+32) ActiveX element will check whether WebMoney Keeper is installed and started on the client's computer, and besides it will work as a statistics counter.