home *** CD-ROM | disk | FTP | other *** search
/ Beweegwijzer / beweegwijzer.iso / setup / _SETUP.1 / beweegwijzer.hta < prev    next >
Encoding:
Text File  |  2002-04-11  |  3.3 KB  |  100 lines

  1. <!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
  2.  
  3. <html>
  4. <head>
  5. <title>Beweegwijzer</title>
  6.  
  7. <hta:application id="appWin" 
  8.   applicationname="Beweegwijzer"
  9.   border="none"
  10.   boderstyle="none"
  11.   caption="no"
  12.   icon="start.ico"
  13.   showintaskbar="yes"
  14.   singleinstance="yes"
  15.   sysmenu="none"
  16.   minimizebutton="no"
  17.   maximizebutton="no"
  18.   windowstate="maximize"
  19. />
  20.  
  21. <style type="text/css">
  22. </style>
  23.  
  24. <script language="JavaScript">
  25. var dataPath = ''; // Waar bevinden zich de audio, video, en assets
  26. var userDataFileName = '';
  27. var xmlUserData = new ActiveXObject("Microsoft.XMLDOM");
  28. var userRoot;
  29. var userName = '';
  30. var goPage = 'menu.html';
  31. var soundSettings = 1;
  32.  
  33. function getProfiel(n) {
  34.   userDataFileName = "gebruikers/gebruiker_"+n+".xml";
  35.   xmlUserData.load(userDataFileName);
  36.   if (xmlUserData.documentElement) {
  37.     userRoot = xmlUserData.documentElement;
  38.     }
  39.   else {
  40.     xmlUserData.load("data/gebruiker.xml"); // template
  41.     userRoot = xmlUserData.documentElement;  
  42.     }
  43.   }
  44.  
  45. function emptyProfiel(n) {
  46.   userDataFileName = "gebruikers/gebruiker_"+n+".xml";
  47.   xmlUserData.load("data/gebruiker.xml"); // template
  48.   userRoot = xmlUserData.documentElement;
  49.   }
  50.   
  51. function putProfiel(n,geslacht,leeftijd,lengte,gewicht) {
  52.   userRoot.selectSingleNode("naam").text = n;
  53.   userRoot.selectSingleNode("geslacht").text = geslacht;
  54.   userRoot.selectSingleNode("leeftijd").text = leeftijd;
  55.   userRoot.selectSingleNode("lengte").text = lengte;
  56.   userRoot.selectSingleNode("gewicht").text = gewicht;          
  57.   xmlUserData.save(userDataFileName); // template
  58.   }
  59.  
  60. function quitProfiel() {
  61.   AppPage.location.href = goPage;
  62.   }
  63.  
  64. function loadfirstPage() {
  65.   xPos = (((screen.availWidth-640)/2)<2)?-2:(screen.availWidth-640)/2;
  66.   yPos = (((screen.availHeight-480)/2)<2)?-2:(screen.availHeight-480)/2;
  67.     
  68.   AppWindow.style.pixelLeft = xPos;
  69.   AppWindow.style.pixelTop = yPos;
  70.     
  71.   CreditsImg.style.pixelLeft = xPos+135;
  72.   CreditsImg.style.pixelTop = yPos+100;  
  73.   
  74.   startString = appWin.commandLine;
  75.  
  76.   if (startString.indexOf("-cdrom",0) != -1) {
  77.     driveLetter = startString.slice(startString.indexOf("-cdrom",0)+7,startString.indexOf("-cdrom",0)+8) + ':';
  78.     dataPath = driveLetter + '\\beweegwijzer\\';
  79.     }
  80.  
  81.   AppPage.location.href = "animatie.html";
  82.   
  83.   }
  84. </script>
  85.  
  86. <body id="mainbody" onload="loadfirstPage()" scroll="no" bgcolor="#ffffff" onselectstart="return false;" oncontextmenu="return false;">
  87. <bgsound id="snd" src="" loop="0">
  88. <img onClick="window.close()" src="images/black.gif" id="CreditsImg" style="visibility:hidden; position:absolute; left:135px; top:75px; width:370px; height:360px; filter:blendTrans(Duration=4)" border="0">
  89.  
  90. <div id="AppWindow" tabindex="-1" style="visibility:hidden; position:absolute; left:0px; top:0px; width:640; height:480; background-image:url('images/default.bmp'); z-index:1">
  91.   <iframe id="AppPage" src="black.html" frameborder=0 style="position:absolute; width:640; height:480" application="yes"></iframe> 
  92. </div>
  93.  
  94. <div id="PrintWindow" style="visibility:visible; position:absolute; left:0px; top:-256px; width:640; height:200; z-index:1">
  95.   <iframe id="PrintPage" src="black.html" frameborder=0 style="position:absolute; width:640; height:80" application="yes"></iframe> 
  96. </div>
  97.  
  98. </body>
  99. </html>
  100.