Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

302 lines
10 KiB

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <html>
  3. <head>
  4. <title>out of box experience</title>
  5. <LINK REL="stylesheet" TYPE="text/css" HREF="oobestyl.css">
  6. <script language=jscript>
  7. var MsEulaRadioSticky = null;
  8. var MyEulaRadioSticky = null;
  9. var Parent_g;
  10. function AdjustTextArea(textArea)
  11. {
  12. // 96.0 is the normal DPI
  13. var fScaleFactor=96.0 / screen.deviceXDPI;
  14. textArea.rows=Math.floor(fScaleFactor * textArea.rows);
  15. textArea.cols=Math.floor(fScaleFactor * textArea.cols);
  16. }
  17. function MyEulaLoadMe()
  18. {
  19. window.parent.EulaLoadMe();
  20. Parent_g = window.parent.g;
  21. AdjustTextArea(Parent_g.txtEULA);
  22. if (Parent_g.EulaOEMSpan.style.display == "inline")
  23. {
  24. AdjustTextArea(Parent_g.txtEULA2);
  25. Parent_g.btnNext.onclick = MyEulaOnNext;
  26. Parent_g.radioAgree.onclick = MyEulaRadioClicked;
  27. Parent_g.radioDisAgree.onclick = MyEulaRadioClicked;
  28. Parent_g.MsEulaButtons.style.display = "inline";
  29. MsEulaRadioSticky = window.external.API.get_RegValue(
  30. window.parent.HKEY_LOCAL_MACHINE,
  31. window.parent.OOBE_MAIN_REG_KEY + "\\TEMP",
  32. "MsEula");
  33. if (MsEulaRadioSticky == 1)
  34. {
  35. Parent_g.radioMsAgree.checked = true;
  36. }
  37. else if (MsEulaRadioSticky == 2)
  38. {
  39. Parent_g.radioMsDisAgree.checked = true;
  40. }
  41. else
  42. {
  43. MsEulaRadioSticky = null;
  44. }
  45. MyEulaRadioSticky = window.external.API.get_RegValue(
  46. window.parent.HKEY_LOCAL_MACHINE,
  47. window.parent.OOBE_MAIN_REG_KEY + "\\TEMP",
  48. "MyEula");
  49. if (MyEulaRadioSticky == 1)
  50. {
  51. Parent_g.radioAgree.checked = true;
  52. }
  53. else if (MyEulaRadioSticky == 2)
  54. {
  55. Parent_g.radioDisAgree.checked = true;
  56. }
  57. else
  58. {
  59. MyEulaRadioSticky = null;
  60. }
  61. if (MsEulaRadioSticky && MyEulaRadioSticky)
  62. {
  63. ShowNextButton();
  64. }
  65. }
  66. }
  67. function MyEulaOnNext()
  68. {
  69. window.parent.EulaObj.set_EULAAcceptance =
  70. (Parent_g.radioAgree.checked && Parent_g.radioMsAgree.checked);
  71. try
  72. {
  73. window.parent.GoNext();
  74. }
  75. catch (e)
  76. {
  77. }
  78. }
  79. function MyEulaRadioClicked()
  80. {
  81. var MsEulaSelected =
  82. Parent_g.radioMsAgree.checked ||
  83. Parent_g.radioMsDisAgree.checked;
  84. if (MsEulaSelected)
  85. {
  86. MsEulaRadioSticky = (Parent_g.radioMsAgree.checked) ? 1 : 2;
  87. window.external.API.set_RegValue(
  88. window.parent.HKEY_LOCAL_MACHINE,
  89. window.parent.OOBE_MAIN_REG_KEY + "\\TEMP",
  90. "MsEula",
  91. MsEulaRadioSticky
  92. );
  93. }
  94. var MyEulaSelected =
  95. Parent_g.radioAgree.checked ||
  96. Parent_g.radioDisAgree.checked;
  97. if (MyEulaSelected)
  98. {
  99. MyEulaRadioSticky = (Parent_g.radioAgree.checked) ? 1 : 2;
  100. window.external.API.set_RegValue(
  101. window.parent.HKEY_LOCAL_MACHINE,
  102. window.parent.OOBE_MAIN_REG_KEY + "\\TEMP",
  103. "MyEula",
  104. MyEulaRadioSticky
  105. );
  106. }
  107. if (MsEulaSelected && MyEulaSelected)
  108. {
  109. ShowNextButton();
  110. }
  111. window.parent.OnClick();
  112. }
  113. function ShowNextButton()
  114. {
  115. var NextButton = Parent_g.btnNext;
  116. if(NextButton.disabled)
  117. {
  118. NextButton.onmouseover = window.parent.HandleNextButtonMouseOver;
  119. NextButton.onmouseout = window.parent.HandleNextButtonMouseOut;
  120. NextButton.onmousedown = window.parent.HandleNextButtonMouseDown;
  121. NextButton.className="newbuttonsNext";
  122. NextButton.disabled = false;
  123. NextButton.focus();
  124. }
  125. }
  126. </script>
  127. </head>
  128. <body style="background-Color: transparent; background-repeat: no-repeat;" TABINDEX=-1
  129. onload="MyEulaLoadMe(); window.parent.Agent_Activate('Eula');"
  130. onunload="window.parent.Agent_Deactivate();">
  131. <table border=0 cellpadding=0 cellspacing=0 width=100% height=100%>
  132. <tr>
  133. <td ID=leftmargincell width=7%></td>
  134. <td ID=maincell valign=middle class="text-primary">
  135. <br><br>
  136. <span class="title">
  137. <ID id=NewEulaTitle>The End User License Agreement</ID>
  138. </span>
  139. <br><br>
  140. <span ID="EULA_par1_MSonly" class="text-primary" style="display:none;">
  141. <ID id="txtNewEulaPar1">The End User License Agreement (EULA) describes your legal rights regarding your use of Windows.</ID>
  142. </span>
  143. <span ID="EULA_par1_MS_OEM" class="text-primary" style="display:none;">
  144. <ID id="txtNewEulaPar2">The End User License Agreements (EULAs) describes your legal rights regarding your use of Windows.</ID>
  145. </span>
  146. <!-- MS EULA Text Area-->
  147. <span ID="EulaSpan" class="text-primary">
  148. <br><br>
  149. <ID id="txtNewEula1">You must accept this agreement to continue to use Windows.</ID>
  150. <br>
  151. <textarea id=txtEULA cols=110 rows=8 name="eula" READONLY TABINDEX=1 class="text-primary" style="background-color:#7295e4; padding:10;" onfocus="window.parent.HandleTextAreaFocus();window.parent.OnFocus();" onblur="window.parent.HandleTextAreaBlur();">
  152. </textarea>
  153. </SPAN>
  154. <!-- MS EULA Radio Buttons -->
  155. <SPAN ID="MsEulaButtons" style="display:none;">
  156. <br>
  157. <SPAN ID="Ms_Accept_EulaText1" class="text-primary">
  158. <ID id="txtMsAcceptEula1">Do you accept the terms of the EULA?</ID>
  159. </SPAN>
  160. <SPAN TABINDEX=-1 CLASS="contents">
  161. &nbsp;&nbsp;&nbsp;
  162. <input TABINDEX=2 ACCESSKEY="A" ID="radioMsAgree" name="MsAgreement" type="radio" onClick="MyEulaRadioClicked();" onfocus="window.parent.OnFocus();">
  163. <LABEL TABINDEX=-1 id="Ms_EULA_Agree" for="radioMsAgree">
  164. <ID id="txtMsNewEula13a">Yes, I <u>a</u>ccept</ID>
  165. </LABEL>
  166. &nbsp;&nbsp;&nbsp;
  167. <input TABINDEX=3 ACCESSKEY="D" ID="radioMsDisAgree" name="MsAgreement" type="radio" value=false onClick="MyEulaRadioClicked();" onfocus="window.parent.OnFocus();">
  168. <LABEL TABINDEX=-1 id="Ms_EULA_DisAgree" for="radioMsDisAgree">
  169. <ID id="txtMsNewEula15a">No, I <u>d</u>on't accept</ID>
  170. </LABEL>
  171. </SPAN>
  172. <br>
  173. </SPAN>
  174. <!-- OEM EULA Text Area -->
  175. <span ID="EulaOEMSpan" class="text-primary" style="display:none;">
  176. <br>
  177. <ID id="txtNewEula2">You must also accept this agreement to continue to use Windows.</ID>
  178. <br>
  179. <textarea id=txtEULA2 cols=110 rows=8 name="eula2" READONLY TABINDEX=4 class="text-primary" style="background-color:#7295e4; padding:10;" onfocus="window.parent.HandleTextAreaFocus();window.parent.OnFocus();" onblur="window.parent.HandleTextAreaBlur();">
  180. </textarea>
  181. </SPAN>
  182. <br>
  183. <span ID="AcceptMS_EulaText" class="text-primary" style="display:none;">
  184. <ID id="txtAcceptMSEula">Do you accept the terms of the EULA?</ID>
  185. </span>
  186. <span ID="AcceptMSOEM_EulaText" class="text-primary" style="display:none;">
  187. <ID id="txtAcceptMSOEMEula">Do you accept the terms of the EULA?</ID>
  188. </span>
  189. <!-- My EULA Radio Buttons -->
  190. <SPAN TABINDEX=-1 CLASS="contents">
  191. &nbsp;&nbsp;&nbsp;
  192. <input TABINDEX=3 ID="radioAgree" name="Agreement" type="radio" onClick="window.parent.EulaRadioClicked(); window.parent.OnClick();" onfocus="window.parent.OnFocus();">
  193. <LABEL TABINDEX=-1 ACCESSKEY="Y" id="EULA_Agree" for="radioAgree">
  194. <span ID="EULA_MSonly_accept" class="text-primary" style="display:none;">
  195. <ID id="txtNewEula13a"><u>Y</u>es, I accept</ID>
  196. </span>
  197. <span ID="EULA_MS_OEM_accept" class="text-primary" style="display:none;">
  198. <ID id="txtNewEula13b"><u>Y</u>es, I accept</ID>
  199. </span>
  200. </LABEL>
  201. &nbsp;&nbsp;&nbsp;
  202. <input TABINDEX=4 ID="radioDisAgree" name="Agreement" type="radio" value=false onClick="window.parent.EulaRadioClicked(); window.parent.OnClick();" onfocus="window.parent.OnFocus();">
  203. <LABEL TABINDEX=-1 ACCESSKEY="O" id="EULA_DisAgree" for="radioDisAgree">
  204. <span ID="EULA_MSonly_decline" class="text-primary" style="display:none;">
  205. <ID id="txtNewEula15a">N<u>o</u>, I don't accept</ID>
  206. </span>
  207. <span ID="EULA_MS_OEM_decline" class="text-primary" style="display:none;">
  208. <ID id="txtNewEula15b">N<u>o</u>, I don't accept</ID>
  209. </span>
  210. </LABEL>
  211. </SPAN>
  212. <br><br>
  213. <span ID="ToContinueNextSpn" style="display:none">
  214. <script>
  215. document.write(window.parent.g_ClickNextStr);
  216. </script>
  217. </span>
  218. <span ID="ToContinueFinishSpn" style="display:none">
  219. <table ID=tabl2 tabindex=-1 border=0 style="position:absolute; left:35%; top:84%">
  220. <tr>
  221. <td class=EulaMsgWidth></td>
  222. <td class="text-primary" ID=NextText>
  223. <ID id="neweulacnt">To continue, click <b>Finish</b></id>
  224. </td>
  225. </tr>
  226. </table>
  227. </span>
  228. <!-- Navigation buttons -->
  229. <table border=0 class="newbuttonposition">
  230. <tr>
  231. <td width=10>&nbsp;&nbsp;</td>
  232. <td><BUTTON ID="btnBack" class="newbuttonsBack" TABINDEX=7 ACCESSKEY="B" style="visibility:visible;"></BUTTON></td>
  233. <td nowrap valign=middle class="text-primary"><span id="BackBtnLocalText" style="visibility:visible;"><label for=btnBack><id id="LocalBtnBack_Text"><u>B</u>ack</id></label></span></td>
  234. <td width=99%>&nbsp;</td>
  235. <td nowrap valign=middle class="text-primary"><span id="SkipBtnLocalText" style="visibility:hidden;"><label for=btnSkip><id id="LocalBtnSkip_Text"><u>S</u>kip</id></label></span></td>
  236. <td><BUTTON ID="btnSkip" class="newbuttonsSkip" TABINDEX=-1 ACCESSKEY="S" style="visibility:hidden;"></BUTTON></td>
  237. <td width=10>&nbsp;&nbsp;</td>
  238. <td nowrap valign=middle class="text-primary">
  239. <span id="NextBtnLocalText" style="display:none;"><label for=btnNext><id id="LocalBtnNext_Text"><u>N</u>ext</id></label></span>
  240. <span id="FiniBtnLocalText" style="display:none;"><label for=btnFinish><id id="LocalBtnFini_Text"><u>F</u>inish</id></label></span>
  241. </td>
  242. <td>
  243. <BUTTON ID="btnNext" class="newbuttonsNext" TABINDEX=8 ACCESSKEY="N" style="display:none;"></BUTTON>
  244. <BUTTON ID="btnFinish" class="newbuttonsNext" TABINDEX=8 ACCESSKEY="F" style="display:none;"></BUTTON>
  245. </td>
  246. </tr>
  247. </table>
  248. </td>
  249. </tr>
  250. </table>
  251. </body>
  252. </html>