Advertisement
Guest User

Launcher de HugeCraft 2

a guest
Dec 14th, 2012
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 8.97 KB | None | 0 0
  1. <html>
  2.  
  3. <HEAD>
  4.  
  5. <TITLE>LAUNCHER</TITLE>
  6.  
  7. <script>
  8.  
  9. function show(myID) {
  10.  
  11. document.getElementById(myID).style.display = "block";
  12.  
  13. }
  14.  
  15. function hide(myID) {
  16.  
  17. document.getElementById(myID).style.display = "none";
  18.  
  19. }
  20.  
  21. </script>
  22.  
  23. <style type="text/css">
  24.  
  25. .panel
  26.  
  27. {
  28.  
  29. position:absolute;
  30.  
  31. width:510px;
  32.  
  33. height:340px;
  34.  
  35. top:45px;
  36.  
  37. left:0px;
  38.  
  39. text-align:center;
  40.  
  41. background: #fff url('images/fondo.png') repeat;
  42.  
  43. }
  44.  
  45. .subp {
  46.  
  47. width:382px;
  48.  
  49. height:340px;
  50.  
  51. position:absolute;
  52.  
  53. left:260px;
  54.  
  55. margin-left:-191px;
  56.  
  57. top:0;
  58.  
  59. background-color:#e5eecc;
  60.  
  61. border:solid 1px #c3c3c3;
  62.  
  63. }
  64.  
  65. #wbo {
  66.  
  67. position:absolute;
  68.  
  69. width:510px;
  70.  
  71. height:430px;
  72.  
  73. left:0;
  74.  
  75. top:0;
  76.  
  77. background: #000;
  78.  
  79. display:none;
  80.  
  81. }
  82.  
  83. #credit {
  84.  
  85. position:absolute;
  86.  
  87. width:510px;
  88.  
  89. height:430px;
  90.  
  91. left:0;
  92.  
  93. top:0;
  94.  
  95. background: #000;
  96.  
  97. display:none;
  98.  
  99. }
  100.  
  101. #serie {
  102.  
  103. position:absolute;
  104.  
  105. width:510px;
  106.  
  107. height:430px;
  108.  
  109. left:0;
  110.  
  111. top:0;
  112.  
  113. background: #000;
  114.  
  115. display:none;
  116.  
  117. }
  118.  
  119. </style>
  120.  
  121. <style>
  122.  
  123. body {
  124.  
  125. width:100%;
  126.  
  127. height:100%;
  128.  
  129. margin:0px;
  130.  
  131. font-family:arial;
  132.  
  133. font-size:12px;
  134.  
  135. }
  136.  
  137. #table {
  138.  
  139. text-align:center;
  140.  
  141. position:absolute;
  142.  
  143. bottom:0px;
  144.  
  145. left:0px;
  146.  
  147. }
  148.  
  149. #td {
  150.  
  151. width:170px;
  152.  
  153. }
  154.  
  155. .bg {
  156.  
  157.     /* Set rules to fill background */
  158.  
  159.     background: #fff url('images/fondo.png') repeat;
  160.  
  161.     /* Set up proportionate scaling */
  162.  
  163.     width: 510px;
  164.  
  165.     height: 340px;
  166.  
  167.    
  168.  
  169.     /* Set up positioning */
  170.  
  171.     position: absolute;
  172.  
  173.     top: 45;
  174.  
  175.     left: 0;
  176.  
  177. }
  178.  
  179.  
  180.  
  181.  
  182.  
  183. .logo {
  184.  
  185. position:absolute;
  186.  
  187. width:410px;
  188.  
  189. height:75px;
  190.  
  191. top:55px;
  192.  
  193. left:260px;
  194.  
  195. margin-left:-205px;
  196.  
  197. }
  198.  
  199. .logo2 {
  200.  
  201. position:absolute;
  202.  
  203. top:135px;
  204.  
  205. left:260px;
  206.  
  207. width:180px;
  208.  
  209. height:32px;
  210.  
  211. margin-left:-90px;
  212.  
  213. }
  214.  
  215. .login {
  216.  
  217. width:350px;
  218.  
  219. height:70px;
  220.  
  221. background: #808080;
  222.  
  223. position:absolute;
  224.  
  225. left:260px;
  226.  
  227. margin-left:-175px;
  228.  
  229. top:174px;
  230.  
  231. border: 5px #000 solid;
  232.  
  233. }
  234.  
  235. .wbg {
  236.  
  237. width:510px;
  238.  
  239. height:45px;
  240.  
  241. position:absolute;
  242.  
  243. top:0px;
  244.  
  245. left:0px;
  246.  
  247. background: url('images/wbg.png') repeat;
  248.  
  249. }
  250.  
  251. @font-face {
  252.  
  253.     font-family: 'xeronregular';
  254.  
  255.     src: url('fonts/xeron.eot');
  256.  
  257.     src: url('fonts/xeron.eot?#iefix') format('embedded-opentype'),
  258.  
  259.          url('fonts/xeron.woff') format('woff'),
  260.  
  261.          url('fonts/xeron.ttf') format('truetype'),
  262.  
  263.          url('fonts/xeron.svg#xeronregular') format('svg');
  264.  
  265.     font-weight: normal;
  266.  
  267.     font-style: normal;
  268.  
  269.  
  270.  
  271. }
  272.  
  273. .back {
  274.  
  275. width:510px;
  276.  
  277. height:45px;
  278.  
  279. background:#000;
  280.  
  281. position:absolute;
  282.  
  283. bottom:0px;
  284.  
  285. left:0px;
  286.  
  287. }
  288.  
  289. #byr {
  290.  
  291. width:125px;
  292.  
  293. height:25px;
  294.  
  295. }
  296.  
  297. #cerrar {
  298.  
  299. width:16px;
  300.  
  301. height:16px;
  302.  
  303. top:15px;
  304.  
  305. right:16px;
  306.  
  307. position:absolute;
  308.  
  309. }
  310.  
  311. .ser13 {
  312.  
  313. position:absolute;
  314.  
  315. left: 260px;
  316.  
  317. margin-left:-90px;
  318.  
  319. bottom:55px;
  320.  
  321. }
  322.  
  323. #wbod {
  324.  
  325. width:100%;
  326.  
  327. height:100%;
  328.  
  329. }
  330.  
  331. #back {
  332.  
  333. position:relative;
  334.  
  335. top:5px;
  336.  
  337. }
  338.  
  339. #progress {
  340.  
  341.  width: 400px;  
  342.  
  343.  border: 1px solid black;
  344.  
  345.  padding: 3px;
  346.  
  347.  background:#fff;
  348.  
  349.  position:absolute;
  350.  
  351.  bottom:85px;
  352.  
  353.  left:260px;
  354.  
  355.  margin-left:-200px;
  356.  
  357. }
  358.  
  359.  
  360.  
  361. #percent {
  362.  
  363.  top:5px;
  364.  
  365.  position: absolute;  
  366.  
  367.  left: 50%;
  368.  
  369.  margin-left:-12px;
  370.  
  371. }
  372.  
  373.  
  374.  
  375. #bar {
  376.  
  377.  height: 20px;
  378.  
  379.  background-color: green;
  380.  
  381.  width: 30%;
  382.  
  383.  position:relative;
  384.  
  385.  left:-137px;
  386.  
  387. }
  388.  
  389. #info6 {
  390.  
  391. position:absolute;
  392.  
  393. top:295px;
  394.  
  395. left:260px;
  396.  
  397. margin-left:-84px;
  398.  
  399. color:#fff;
  400.  
  401. font-weight:bold;
  402.  
  403. font-size:15px;
  404.  
  405. }
  406.  
  407. </style>
  408.  
  409. <HTA:APPLICATION
  410.  
  411.     ID="HTA"
  412.  
  413.     APPLICATIONNAME="HTA"
  414.  
  415.     BORDER="none"
  416.  
  417.     BORDER STYLE="raised"
  418.  
  419.     CAPTION="yes"
  420.  
  421.     SCROLL="no"
  422.  
  423.     SELECTION="no">
  424.  
  425. <body bgcolor="000000">
  426.  
  427. </HEAD>
  428.  
  429. <body>
  430.  
  431. <center>
  432.  
  433. <script language="VBScript">
  434.  
  435. Function ejecutar()
  436.  
  437. set objshell = createobject("wscript.shell")
  438.  
  439. appdata = objshell.expandenvironmentstrings("%APPDATA%")
  440.  
  441. objshell.run appdata & "\Ikillnukes\MC.bat"
  442.  
  443. End Function
  444.  
  445.  
  446.  
  447. Function opciones()
  448.  
  449. set objshell = createobject("wscript.shell")
  450.  
  451. appdata = objshell.expandenvironmentstrings("%APPDATA%")
  452.  
  453. objshell.run appdata & "\Ikillnukes\OPT.hta"
  454.  
  455. End Function
  456.  
  457.  
  458.  
  459. Function test(strLine)
  460.    Set objFSO = CreateObject("Scripting.FileSystemObject")
  461.    ' el "8" hace un "appending", en el ejemplo de arriba lo usas pero no creo que séa lo que quieras, este es para reemplazar el contenido del archivo:
  462.    ' Set objTextFile = objFSO.OpenTextFile("User.txt", 2, True)
  463.    Set objTextFile = objFSO.OpenTextFile("User.txt", 8, True)  
  464.    objTextFile.WriteLine(strLine)
  465.    objTextFile.Close
  466. End Function
  467.  
  468. </script>
  469.  
  470.  
  471.  
  472. <script language="VBScript">
  473.  
  474.       Sub Window_Onload
  475.  
  476.           strComputer = "."
  477.  
  478.           Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
  479.  
  480.           Set colItems = objWMIService.ExecQuery("Select * From Win32_DesktopMonitor")
  481.  
  482.           For Each objItem in colItems
  483.  
  484.               intHorizontal = objItem.ScreenWidth
  485.  
  486.               intVertical = objItem.ScreenHeight
  487.  
  488.           Next
  489.  
  490.           intLeft = (intHorizontal - 510) / 2
  491.  
  492.           intTop = (intVertical - 430) / 2
  493.  
  494.           window.resizeTo 510,430
  495.  
  496.           window.moveTo intLeft, intTop
  497.  
  498.  
  499.  
  500.           ' Aquí lees la linea del archivo de texto
  501.  
  502.            set objFileToRead = CreateObject("Scripting.FileSystemObject").OpenTextFile("User.txt",1)
  503.  
  504.            strLine = objFileToRead.ReadLine()
  505.  
  506.            objFileToRead.Close
  507.  
  508.  
  509.  
  510.            document.getElementById("username").value = strLine
  511.  
  512.       End Sub
  513.  
  514.    </script>
  515.  
  516.  
  517.  
  518. <div id="wbod">
  519.  
  520. <div class="wbg">
  521.  
  522. <h2 style="color:#fff; font-family: 'xeronregular'; position:absolute; top:3px; left:16px; width:510px; margin-left:-260px; left:260px;"><b>HugeCraft</b><b style="font-family: 'arial';">&#8482;</b><b> - Login</b></h2>
  523.  
  524. <img src="images/cerrar0.png" onmouseover="this.src='images/cerrar1.png';" onmouseout="this.src='images/cerrar0.png';" onClick="javascript:window.close();" name="btnCerrar" id="cerrar" />
  525.  
  526. </div>
  527.  
  528. <div class="bg">
  529.  
  530. </div>
  531.  
  532. <img src="images\image2.png" class="logo" />
  533.  
  534. <img src="images\text.png" class="logo2" />
  535.  
  536. <div class="login">
  537.  
  538. <center><br>Usuario: <input type="text" id="username" style="width:200px;" /></center>
  539.  
  540. </div>
  541.  
  542.  
  543.  
  544. <span id="info6">Progreso del Launcher:</span>
  545.  
  546. <div id="progress">
  547.  
  548.     <span id="percent">30%</span>
  549.  
  550.     <div id="bar"></div>
  551.  
  552. </div>
  553.  
  554.  
  555.  
  556. <input value="Test" onClick="test()" style="position:relative; top:30px;" type="button" />
  557.  
  558. <img src="images/serie1.png" onmouseover="this.src='images/serie2.png';" onmouseout="this.src='images/serie1.png';" onClick="show('serie')" name="btnSerie" class="ser13" />
  559.  
  560. <div class="back">
  561.  
  562.  
  563.  
  564. <table id="table">
  565.  
  566. <tr><td id="td">
  567.  
  568. <img src="images/opciones1.png" onmouseover="this.src='images/opciones2.png';" onmouseout="this.src='images/opciones1.png';" onClick="show('wbo')" name="btnOpciones" id="byr" />
  569.  
  570. </td><td id="td">
  571. <a href="#" onClick="test(strLine)">
  572.  
  573. <img src="images/jugar1.png" onmouseover="this.src='images/jugar2.png';" onmouseout="this.src='images/jugar1.png';" onclick="ejecutar()" name="btnEjecutar" id="byr" /></a>
  574.  
  575. </td><td id="td">
  576.  
  577. <img src="images/creditos1.png" onmouseover="this.src='images/creditos2.png';" onmouseout="this.src='images/creditos1.png';" onClick="show('credit')" name="btnCreditos" id="byr" />
  578.  
  579. </td></tr></table>
  580.  
  581.  
  582.  
  583. </div>
  584.  
  585. <div id="wbo">
  586.  
  587. <div class="wbg">
  588.  
  589. <h2 style="color:#fff; font-family: 'xeronregular'; position:absolute; top:3px; left:16px; width:510px; margin-left:-260px; left:260px;"><b>HugeCraft</b><b style="font-family: 'arial';">&#8482;</b><b> - Opciones</b></h2>
  590.  
  591. </div>
  592.  
  593. <div class="panel"><div class="subp">Hello world!</div></div>
  594.  
  595. <div class="back">
  596.  
  597. <img src="images/back1.png" onmouseover="this.src='images/back2.png';" onmouseout="this.src='images/back1.png';" onClick="hide('wbo')" name="btnCreditos" id="back" />
  598.  
  599. </div>
  600.  
  601. </div>
  602.  
  603.  
  604.  
  605. <div id="credit">
  606.  
  607. <div class="wbg">
  608.  
  609. <h2 style="color:#fff; font-family: 'xeronregular'; position:absolute; top:3px; left:16px; width:510px; margin-left:-260px; left:260px;"><b>HugeCraft</b><b style="font-family: 'arial';">&#8482;</b><b> - Creditos</b></h2>
  610.  
  611. </div>
  612.  
  613. <div class="panel"><div class="subp">Hello world!</div></div>
  614.  
  615. <div class="back">
  616.  
  617. <img src="images/back1.png" onmouseover="this.src='images/back2.png';" onmouseout="this.src='images/back1.png';" onClick="hide('credit')" name="btnCreditos" id="back" />
  618.  
  619. </div>
  620.  
  621. </div>
  622.  
  623.  
  624.  
  625. <div id="serie">
  626.  
  627. <div class="wbg">
  628.  
  629. <h2 style="color:#fff; font-family: 'xeronregular'; position:absolute; top:3px; left:16px; width:510px; margin-left:-260px; left:260px;"><b>HugeCraft</b><b style="font-family: 'arial';">&#8482;</b><b> - Creditos</b></h2>
  630.  
  631. </div>
  632.  
  633. <div class="panel"><div class="subp">Hello world!</div></div>
  634.  
  635. <div class="back">
  636.  
  637. <img src="images/back1.png" onmouseover="this.src='images/back2.png';" onmouseout="this.src='images/back1.png';" onClick="hide('serie')" name="btnCreditos" id="back" />
  638.  
  639. </div>
  640.  
  641. </div>
  642.  
  643.  
  644.  
  645. </div>
  646.  
  647.  
  648.  
  649. </center>
  650.  
  651. </body>
  652.  
  653. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement