Leaked source code of windows server 2003
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.

540 lines
17 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. <style>
  7. .mousePos {position:absolute}
  8. .pointerMove {font-size : 9pt;
  9. font-family : Arial;
  10. font-weight : normal;
  11. color : navy;}
  12. .agentPosit {position:absolute;
  13. font-size : 9pt;
  14. font-family : Arial;
  15. font-weight : normal;
  16. color : white;
  17. line-height : 12pt;}
  18. </style>
  19. <script>
  20. var ArrowSw;
  21. var mouse_action;
  22. var g_sw1;
  23. g_sw1='0';
  24. function StartGlide1()
  25. {
  26. ArrowSw = false;
  27. if (!Is_Mouse_Hide_executed)
  28. {
  29. MouseImage.style.pixelLeft = 160;
  30. MouseImage.style.visibility = "visible";
  31. mouse_action = window.setInterval("Glide1()", 20);
  32. }
  33. }
  34. function Glide1()
  35. {
  36. if (!Is_Mouse_Hide_executed)
  37. {
  38. document.all.MouseImage.style.pixelTop += 1;
  39. document.all.MouseImage.style.pixelLeft -= 1;
  40. document.all.ArrowImage.style.pixelTop += 1;
  41. if (!ArrowSw)
  42. {
  43. document.all.ArrowImage.style.pixelLeft -= 1;
  44. ArrowSw = true;
  45. }
  46. else
  47. {
  48. ArrowSw = false;
  49. }
  50. if (ArrowImage.style.pixelLeft<=82)
  51. {
  52. Btn1Image.style.display="none";
  53. Btn2Image.style.display="inline";
  54. }
  55. if (MouseImage.style.pixelLeft<=125)
  56. {
  57. if (g_sw1=='0')
  58. {
  59. ClickhereImage.style.display="inline";
  60. Spn_ClickHereLarge.style.display="inline";
  61. MouseImage.style.pixelLeft=125;
  62. window.clearInterval(mouse_action);
  63. g_sw1='1';
  64. }
  65. else
  66. {
  67. Magnify.style.display="inline";
  68. Spn_ClickHere.style.display="inline";
  69. MouseImage.style.pixelLeft=125;
  70. window.clearInterval(mouse_action);
  71. g_sw1='1';
  72. }
  73. }
  74. }
  75. }
  76. function StartGlide2()
  77. {
  78. ArrowSw = false;
  79. if (!Is_Mouse_Hide_executed)
  80. {
  81. MouseImage.style.pixelLeft = 125;
  82. MouseImage.style.visibility = "visible";
  83. Spn_ClickHereLarge.style.display="none";
  84. ClickhereImage.style.display="none";
  85. GreenBtn.style.display="none";
  86. Magnify.style.display="none";
  87. mouse_action = window.setInterval("Glide2()", 20);
  88. }
  89. }
  90. function Glide2()
  91. {
  92. if (!Is_Mouse_Hide_executed)
  93. {
  94. document.all.MouseImage.style.pixelTop -= 1;
  95. document.all.MouseImage.style.pixelLeft += 1;
  96. document.all.ArrowImage.style.pixelTop -= 1;
  97. if (!ArrowSw)
  98. {
  99. document.all.ArrowImage.style.pixelLeft += 1;
  100. ArrowSw = true;
  101. }
  102. else
  103. {
  104. ArrowSw = false;
  105. }
  106. if (ArrowImage.style.pixelLeft>=82)
  107. {
  108. Btn2Image.style.display="none";
  109. Btn1Image.style.display="inline";
  110. }
  111. if (MouseImage.style.pixelLeft>=160)
  112. {
  113. MouseImage.style.pixelLeft=160;
  114. window.clearInterval(mouse_action);
  115. }
  116. }
  117. }
  118. var BlinkerCtr;
  119. var BlinkerSW1;
  120. BlinkerCtr=0;
  121. BlinkerSW1='0';
  122. function BtnBlinker()
  123. {
  124. if (!Is_Mouse_Hide_executed)
  125. btn_action = window.setInterval("ActualBlinker()", 500);
  126. }
  127. function ActualBlinker()
  128. {
  129. if (!Is_Mouse_Hide_executed)
  130. {
  131. if (BlinkerSW1=='0')
  132. {
  133. GreenBtn.style.display = "inline";
  134. BlinkerSW1='1';
  135. }
  136. else
  137. {
  138. GreenBtn.style.display = "none";
  139. BlinkerSW1='0';
  140. BlinkerCtr += 1;
  141. }
  142. if (BlinkerCtr >=4)
  143. {
  144. window.clearInterval(btn_action);
  145. }
  146. }
  147. }
  148. function FingerPusher()
  149. {
  150. if (!Is_Mouse_Hide_executed)
  151. fgr_action = window.setInterval("ActualPusher()", 1000);
  152. }
  153. var PusherCtr;
  154. PusherCtr=0;
  155. function ActualPusher()
  156. {
  157. if (!Is_Mouse_Hide_executed)
  158. {
  159. if (BlinkerSW1=='0')
  160. {
  161. Hand2.style.display = "none";
  162. Hand1.style.display = "inline";
  163. Btn3Image.style.display="none";
  164. Btn2Image.style.display="inline";
  165. BlinkerSW1='1';
  166. PusherCtr += 1;
  167. // we don't want to play the clicker the first time around.
  168. if (PusherCtr > 1)
  169. {
  170. PlayClicker();
  171. }
  172. }
  173. else
  174. {
  175. Hand1.style.display = "none";
  176. Hand2.style.display = "inline";
  177. Btn2Image.style.display="none";
  178. Btn3Image.style.display="inline";
  179. PlayClicker();
  180. BlinkerSW1='0';
  181. PusherCtr += 1;
  182. }
  183. if (PusherCtr >=7)
  184. {
  185. window.clearInterval(fgr_action);
  186. }
  187. }
  188. else
  189. {
  190. window.clearInterval(fgr_action);
  191. }
  192. }
  193. function ChangeText1()
  194. {
  195. var L_Whenthearrow_Text = "When the arrow is on top of the Next button, press and release (or &quot;click&quot;) the left mouse button. That's all there is to it!";
  196. MouseTextDescription.innerHTML = L_Whenthearrow_Text;
  197. }
  198. function ChangeText2()
  199. {
  200. var L_Ifyoureach_Text = "If you reach the edge of the mousepad, pick up the mouse and place it anywhere on the mousepad to continue.";
  201. MouseTextDescription.innerHTML = L_Ifyoureach_Text;
  202. }
  203. var bTranState = 0;
  204. var M_event1, M_event2, M_event3, M_event4, M_event5, M_event6, fgr_action
  205. function ToggleMouse_msg()
  206. {
  207. oTransContainer.filters[0].Apply();
  208. if (bTranState=='0')
  209. {
  210. oTransContainer.style.display="inline";
  211. bTranState = 1;
  212. oDIV2.style.visibility="visible";
  213. oDIV1.style.visibility="hidden";
  214. if (window.parent.document.dir == "rtl")
  215. MonitorImage2.style.display = "inline";
  216. else
  217. MonitorImage.style.display = "inline";
  218. oTransContainer.filters[0].Play();
  219. M_event1 = window.setTimeout(StartGlide1, 3000);
  220. M_event2 = window.setTimeout(StartGlide2, 7000);
  221. M_event3 = window.setTimeout(StartGlide1, 10000);
  222. T_event1 = window.setTimeout(ChangeText1, 13000);
  223. // M_event4 = window.setTimeout(BtnBlinker, 13000);
  224. M_event5 = window.setTimeout(FingerPusher, 17000);
  225. T_event2 = window.setTimeout(ChangeText2, 22000);
  226. M_event6 = window.setTimeout(ToggleMouse_msg, 29000);
  227. }
  228. else
  229. {
  230. bTranState = 0;
  231. oDIV2.style.visibility="hidden";
  232. oDIV1.style.visibility="visible";
  233. MouseImage.style.visibility="hidden";
  234. Btn1Image.style.visibility="hidden";
  235. Btn2Image.style.visibility="hidden";
  236. Btn3Image.style.visibility="hidden";
  237. ArrowImage.style.visibility="hidden";
  238. Spn_ClickHereLarge.style.visibility="hidden";
  239. ClickhereImage.style.visibility="hidden";
  240. Hand1.style.visibility="hidden";
  241. Hand2.style.visibility="hidden";
  242. Magnify.style.visibility="hidden";
  243. Spn_ClickHere.style.display="none";
  244. oTransContainer.filters[0].Play();
  245. window.setTimeout(StartMouseAgain, 13000);
  246. }
  247. }
  248. function PlayClicker()
  249. {
  250. }
  251. function mouseload()
  252. {
  253. /*
  254. // Check if g_DidWePassWelcomePage is true. This variable is declared and initially set to false in msobshel.htx
  255. // We will only show the mouse tutorial the first time the welcome page has appeared, we don't want the users
  256. // to see the mouse tutorial again if they click next on the welcome page and then back again...
  257. if (!window.parent.g_DidWePassWelcomePage)
  258. {
  259. if (window.parent.g_AgentDisabled)
  260. window.parent.PlayBackgroundMusic();
  261. // Check if MouseTutorial=1 in oobeinfo.ini, if so, show new mouse tutorial.
  262. //
  263. var MT_INIstr=window.parent.DirObj.get_DoMouseTutorial();
  264. if (MT_INIstr=="1")
  265. {
  266. if (window.top.screen.width > 800)
  267. {
  268. oTransContainer.style.top = 240;
  269. oTransContainer.style.left = 287;
  270. }
  271. else
  272. {
  273. oTransContainer.style.top = 160;
  274. oTransContainer.style.left = 175;
  275. }
  276. // Check if Agent (Merlin) is turned on in oobeinfo.ini, if so, start
  277. // the mouse tutorial X seconds after merlin is done with his stuff...
  278. //
  279. if (window.parent.g_AgentDisabled)
  280. window.setTimeout(ToggleMouse_msg, 13000);
  281. else
  282. window.setTimeout(ToggleMouse_msg, 55000);
  283. }
  284. }
  285. */
  286. }
  287. function StartMouseAgain()
  288. {
  289. // Reset all mouse settings.
  290. document.all.MouseImage.style.pixelTop = 240;
  291. document.all.MouseImage.style.pixelLeft = 160;
  292. document.all.ArrowImage.style.pixelTop = 150;
  293. document.all.ArrowImage.style.pixelLeft = 100;
  294. var L_slideyourmouse_Text = "Slide your mouse over the mousepad to move the arrow (or &quot;pointer&quot;) on the screen.";
  295. MouseTextDescription.innerHTML = L_slideyourmouse_Text;
  296. // Don't mess around with the settings set forth here...They are necessary...
  297. MouseImage.style.visibility="visible";
  298. Btn1Image.style.visibility="visible";
  299. Btn1Image.style.visibility="visible";
  300. ArrowImage.style.visibility="visible";
  301. Btn2Image.style.visibility="visible";
  302. Btn3Image.style.visibility="visible";
  303. ClickhereImage.style.visibility="visible";
  304. Spn_ClickHereLarge.style.visibility="visible";
  305. Spn_ClickHere.style.visibility="visible";
  306. Hand1.style.visibility="visible";
  307. Hand2.style.visibility="visible";
  308. Magnify.style.visibility="visible";
  309. Spn_ClickHere.style.display="none";
  310. MouseImage.style.display="inline";
  311. Btn1Image.style.display="inline";
  312. Btn1Image.style.display="inline";
  313. ArrowImage.style.display="inline";
  314. Btn2Image.style.display="none";
  315. Btn3Image.style.display="none";
  316. Spn_ClickHereLarge.style.display="none";
  317. ClickhereImage.style.display="none";
  318. Hand1.style.display="none";
  319. Hand2.style.display="none";
  320. Magnify.style.display="none";
  321. GreenBtn.style.display = "none";
  322. Is_Mouse_Hide_executed = false;
  323. g_sw1='0';
  324. BlinkerCtr=0;
  325. BlinkerSW1='0';
  326. PusherCtr=0;
  327. ToggleMouse_msg();
  328. }
  329. var Is_Mouse_Hide_executed = false;
  330. function Mouse_Hide_Handler()
  331. {
  332. Is_Mouse_Hide_executed = true;
  333. // We clear all mouse activities.
  334. try
  335. {
  336. window.clearTimeout(M_event1);
  337. window.clearTimeout(M_event2);
  338. window.clearTimeout(M_event3);
  339. // window.clearTimeout(M_event4);
  340. window.clearTimeout(M_event5);
  341. window.clearTimeout(M_event6);
  342. window.clearInterval(mouse_action);
  343. window.clearInterval(btn_action);
  344. window.clearInterval(fgr_action);
  345. }
  346. catch(e){}
  347. ToggleMouse_msg();
  348. }
  349. </script>
  350. </head>
  351. <body style="background-Color: transparent; background-repeat: no-repeat;" onload="window.parent.Start_LoadMe(); mouseload();"
  352. tabindex=-1
  353. onkeypress="window.parent.Start_OnKeyPress();"
  354. onunload="window.parent.Agent_Deactivate();" >
  355. <table valign=middle border=0 cellpadding=0 cellspacing=0 width="100%" height="100%">
  356. <tr>
  357. <td ID=leftmargincell width=7%></td>
  358. <td ID=maincell valign=middle class="text-primary">
  359. <br><br>
  360. <span class="title">
  361. <ID id=welc_s1>Welcome to Microsoft Windows</ID>
  362. </span>
  363. <span ID=WelcomePageText style="display:none">
  364. <br><br>
  365. <!-- sentence may be changed at runtime -->
  366. <span ID=welcome_namestr class="text-primary">
  367. <ID id=w21>Thank you for purchasing Microsoft Windows XP.</ID>
  368. </span>
  369. <br><br>
  370. <span class="text-primary" id=AgentPos2><ID id=welc_s3>Let's spend a few minutes setting up your computer.</ID>
  371. </span>
  372. </span>
  373. <span ID=AgentPos class="agentPosit" style="left:65%; top: 80%;">
  374. </span>
  375. <!-- Start of Mouse Tutorial -->
  376. <!-- Filter -->
  377. <DIV ID="oTransContainer" class="mousePos" STYLE="top: 0; left: 0; width: 450;
  378. height:360; filter:progid:DXImageTransform.Microsoft.Fade(duration=0.5,overlap=2.0); display:none; ">
  379. <!-- First Content (empty) -->
  380. <DIV ID="oDIV1" STYLE="top:0; left:0; width:450px; height:360; background-Color: transparent;" class="mousePos">&nbsp;</DIV>
  381. <!-- Actual Content -->
  382. <DIV ID="oDIV2" onclick="Mouse_Hide_Handler();" class="mousePos" STYLE="top:0; left:0; width:450px; height:360px;
  383. background-image:url('../images/mousewn1.gif'); visibility:hidden;">
  384. <span ID="MouseMsg1" STYLE="top:25px; left:15px; right:5px; font: 18pt Arial;" class="mousePos">
  385. <TABLE BORDER=0 WIDTH="100%">
  386. <TR>
  387. <TD VALIGN=TOP>
  388. <br><br>
  389. <span class="pointerMove" id=MouseTextDescription>
  390. <ID id="txtWelcome">Slide your mouse over the mousepad to move the arrow (or "pointer") on the screen.</ID>
  391. </span>
  392. </TD>
  393. </TR>
  394. </TABLE>
  395. </span>
  396. <span id="MonitorImage" STYLE="top:115px; left:20px; display:none;" class="mousePos">
  397. <img src="../images/monitor.gif" border=0>
  398. </span>
  399. <span id="MonitorImage2" STYLE="top:115px; left:20px; display:none;" class="mousePos">
  400. <img src="../images/monitor2.gif" border=0>
  401. </span>
  402. <span id="MouseImage" STYLE="top:240px; left:160px;" class="mousePos">
  403. <img src="../images/mouse.gif" border=0>
  404. </span>
  405. <span id="ClickhereImage" STYLE="top:189px; left:188px; display:none;" class="mousePos">
  406. <img src="../images/clickhr.gif" border=0>
  407. </span>
  408. <span id="Magnify" STYLE="top:117px; left:178px; display:none;" class="mousePos">
  409. <img src="../images/magnify.gif" border=0>
  410. </span>
  411. <span id="Spn_UsingTheMouse" STYLE="position:absolute; top:13px; left:10px; color:white; font: 26pt Arial; z-index=100">
  412. <id id="TxtUsingTheMouse">Using the mouse</id>
  413. </span>
  414. <span id="Spn_ClickHere" STYLE="position:absolute; top:145px; left:237px; display:none; color:navy; font: 10pt Arial; z-index=99">
  415. <id id="TxtClickHere">Click here</id>
  416. </span>
  417. <span id="Spn_ClickHereLarge" STYLE="position:absolute; top:191px; left:223px; display:none; color:navy; font: 16pt Arial; z-index=99">
  418. <id id="TxtClickHereLarge">Click here</id>
  419. </span>
  420. <span id="GreenBtn" STYLE="top:139px; left:319px; display:none;" class="mousePos">
  421. <img src="../images/grn_btn.gif" border=0>
  422. </span>
  423. <span id="Hand1" STYLE="top:119px; left:301px; display:none;" class="mousePos">
  424. <img src="../images/hand1.gif" border=0>
  425. </span>
  426. <span id="Hand2" STYLE="top:119px; left:301px; display:none;" class="mousePos">
  427. <img src="../images/hand2.gif" border=0>
  428. </span>
  429. <span id="Btn1Image" STYLE="top:184px; left:77px;" class="mousePos">
  430. <img src="../images/btn1.gif" border=0>
  431. </span>
  432. <span id="Btn2Image" STYLE="top:184px; left:77px; display:none;" class="mousePos">
  433. <img src="../images/btn2.gif" border=0>
  434. </span>
  435. <span id="Btn3Image" STYLE="top:184px; left:76px; display:none;" class="mousePos">
  436. <img src="../images/btn3.gif" border=0>
  437. </span>
  438. <span id="ArrowImage" STYLE="top:150px; left:100px;" class="mousePos">
  439. <img src="../images/arrow.gif" border=0>
  440. </span>
  441. </DIV>
  442. </DIV>
  443. <!-- End of Mouse Tutorial -->
  444. <script>
  445. document.write(window.parent.g_ClickNextStrWelcome);
  446. </script>
  447. <table border=0 class="newbuttonposition">
  448. <tr>
  449. <td width=10>&nbsp;&nbsp;</td>
  450. <td><BUTTON ID="btnBack" class="newbuttonsBack" TABINDEX=-1 ACCESSKEY="B" style="visibility:hidden;"></BUTTON></td>
  451. <td nowrap valign=middle class="text-primary"><span id="BackBtnLocalText" style="visibility:hidden;"><label for=btnBack><id id="LocalBtnBack_Text"><u>B</u>ack</id></label></span></td>
  452. <td width=99%>&nbsp;</td>
  453. <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>
  454. <td><BUTTON ID="btnSkip" class="newbuttonsSkip" TABINDEX=-1 ACCESSKEY="S" style="visibility:hidden;"></BUTTON></td>
  455. <td width=10>&nbsp;&nbsp;</td>
  456. <td nowrap valign=middle class="text-primary"><span id="NextBtnLocalText" style="visibility:visible;"><label for=btnNext><id id="LocalBtnNext_Text"><u>N</u>ext</id></label></span></td>
  457. <td><BUTTON ID="btnNext" class="newbuttonsNext" TABINDEX=4 ACCESSKEY="N" style="visibility:visible;"></BUTTON></td>
  458. </tr>
  459. </table>
  460. </td>
  461. </tr>
  462. </table>
  463. </body>
  464. </html>