Advertisement
Guest User

Launcher de HugeCraft

a guest
Dec 12th, 2012
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5.53 KB | None | 0 0
  1. <html>
  2. <HEAD>
  3. <TITLE>LAUNCHER</TITLE>
  4. <script>
  5. function show(myID) {
  6. document.getElementById(myID).style.display = "block";
  7. }
  8. function hide(myID) {
  9. document.getElementById(myID).style.display = "none";
  10. }
  11. </script>
  12. <style type="text/css">
  13. .panel
  14. {
  15. position:absolute;
  16. width:510px;
  17. height:340px;
  18. top:45px;
  19. left:0px;
  20. text-align:center;
  21. background: #fff url('images/fondo.png') repeat;
  22. }
  23. .subp {
  24. width:382px;
  25. height:340px;
  26. position:absolute;
  27. left:260px;
  28. margin-left:-191px;
  29. top:0;
  30. background-color:#e5eecc;
  31. border:solid 1px #c3c3c3;
  32. }
  33. #wbo {
  34. position:absolute;
  35. width:510px;
  36. height:430px;
  37. left:0;
  38. top:0;
  39. background: #000;
  40. display:none;
  41. }
  42. </style>
  43. <style>
  44. body {
  45. width:100%;
  46. height:100%;
  47. margin:0px;
  48. font-family:arial;
  49. font-size:12px;
  50. }
  51. #table {
  52. text-align:center;
  53. position:absolute;
  54. bottom:0px;
  55. left:0px;
  56. }
  57. #td {
  58. width:170px;
  59. }
  60. .bg {
  61.     /* Set rules to fill background */
  62.     background: #fff url('images/fondo.png') repeat;
  63.     /* Set up proportionate scaling */
  64.     width: 510px;
  65.     height: 340px;
  66.    
  67.     /* Set up positioning */
  68.     position: absolute;
  69.     top: 45;
  70.     left: 0;
  71. }
  72.  
  73.  
  74. .logo {
  75. position:absolute;
  76. width:410px;
  77. height:75px;
  78. top:55px;
  79. left:260px;
  80. margin-left:-205px;
  81. }
  82. .logo2 {
  83. position:absolute;
  84. top:135px;
  85. left:260px;
  86. width:180px;
  87. height:32px;
  88. margin-left:-90px;
  89. }
  90. .login {
  91. width:350px;
  92. height:70px;
  93. background: #808080;
  94. position:absolute;
  95. left:260px;
  96. margin-left:-175px;
  97. top:174px;
  98. border: 5px #000 solid;
  99. }
  100. .wbg {
  101. width:510px;
  102. height:45px;
  103. position:absolute;
  104. top:0px;
  105. left:0px;
  106. background: url('images/wbg.png') repeat;
  107. }
  108. @font-face {
  109.     font-family: 'xeronregular';
  110.     src: url('fonts/xeron.eot');
  111.     src: url('fonts/xeron.eot?#iefix') format('embedded-opentype'),
  112.          url('fonts/xeron.woff') format('woff'),
  113.          url('fonts/xeron.ttf') format('truetype'),
  114.          url('fonts/xeron.svg#xeronregular') format('svg');
  115.     font-weight: normal;
  116.     font-style: normal;
  117.  
  118. }
  119. .back {
  120. width:510px;
  121. height:45px;
  122. background:#000;
  123. position:absolute;
  124. bottom:0px;
  125. left:0px;
  126. }
  127. #byr {
  128. width:125px;
  129. height:25px;
  130. }
  131. #cerrar {
  132. width:16px;
  133. height:16px;
  134. top:15px;
  135. right:16px;
  136. position:absolute;
  137. }
  138. .ser13 {
  139. position:absolute;
  140. left: 260px;
  141. margin-left:-90px;
  142. bottom:55px;
  143. }
  144. #wbod {
  145. width:100%;
  146. height:100%;
  147. }
  148. #back {
  149. position:relative;
  150. top:5px;
  151. }
  152. </style>
  153. <HTA:APPLICATION
  154.     ID="HTA"
  155.     APPLICATIONNAME="HTA"
  156.     BORDER="none"
  157.     BORDER STYLE="raised"
  158.     CAPTION="yes"
  159.     SCROLL="no"
  160.     SELECTION="no">
  161. <body bgcolor="000000">
  162. </HEAD>
  163. <body>
  164. <center>
  165. <script language="VBScript">
  166. Function ejecutar()
  167. set objshell = createobject("wscript.shell")
  168. appdata = objshell.expandenvironmentstrings("%APPDATA%")
  169. objshell.run appdata & "\Ikillnukes\MC.bat"
  170. End Function
  171.  
  172. Function opciones()
  173. set objshell = createobject("wscript.shell")
  174. appdata = objshell.expandenvironmentstrings("%APPDATA%")
  175. objshell.run appdata & "\Ikillnukes\OPT.hta"
  176. End Function
  177. </script>
  178.  
  179. <div id="wbod">
  180. <div class="wbg">
  181. <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>
  182. <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" />
  183. </div>
  184. <div class="bg">
  185. </div>
  186. <img src="images\image2.png" class="logo" />
  187. <img src="images\text.png" class="logo2" />
  188. <div class="login">
  189. <center><br>Usuario: <input type="text" style="width:200px;" /></center>
  190. </div>
  191. <img src="images/serie1.png" onmouseover="this.src='images/serie2.png';" onmouseout="this.src='images/serie1.png';" onClick="show('serie')" name="btnSerie" class="ser13" />
  192. <div class="back">
  193.  
  194. <table id="table">
  195. <tr><td id="td">
  196. <img src="images/opciones1.png" onmouseover="this.src='images/opciones2.png';" onmouseout="this.src='images/opciones1.png';" onClick="show('wbo')" name="btnOpciones" id="byr" />
  197. </td><td id="td">
  198. <img src="images/jugar1.png" onmouseover="this.src='images/jugar2.png';" onmouseout="this.src='images/jugar1.png';" onclick="ejecutar()" name="btnEjecutar" id="byr" />
  199. </td><td id="td">
  200. <img src="images/creditos1.png" onmouseover="this.src='images/creditos2.png';" onmouseout="this.src='images/creditos1.png';" onClick="show('credit')" name="btnCreditos" id="byr" />
  201. </td></tr></table>
  202.  
  203. </div>
  204. <div id="wbo">
  205. <div class="wbg">
  206. <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>
  207. </div>
  208. <div class="panel"><div class="subp">Hello world!</div></div>
  209. <div class="back">
  210. <img src="images/back1.png" onmouseover="this.src='images/back2.png';" onmouseout="this.src='images/back1.png';" onClick="hide('wbo')" name="btnCreditos" id="back" />
  211. </div>
  212. </div>
  213. </div>
  214.  
  215. <script language="VBScript">
  216.     Sub Window_Onload
  217.         strComputer = "."
  218.         Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
  219.        Set colItems = objWMIService.ExecQuery("Select * From Win32_DesktopMonitor")
  220.        For Each objItem in colItems
  221.            intHorizontal = objItem.ScreenWidth
  222.            intVertical = objItem.ScreenHeight
  223.        Next
  224.        intLeft = (intHorizontal - 510) / 2
  225.        intTop = (intVertical - 430) / 2
  226.        window.resizeTo 510,430
  227.        window.moveTo intLeft, intTop
  228.    End Sub
  229. </script>
  230.  
  231.  
  232. </center>
  233. </body>
  234. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement