U3DScene.html 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  5. <title>Unity Web Player | Unity+WinFor</title>
  6. <script type='text/javascript' src='https://ssl-webplayer.unity3d.com/download_webplayer-3.x/3.0/uo/jquery.min.js'></script>
  7. <script type="text/javascript">
  8. <!--
  9. var unityObjectUrl = "http://webplayer.unity3d.com/download_webplayer-3.x/3.0/uo/UnityObject2.js";
  10. if (document.location.protocol == 'https:')
  11. unityObjectUrl = unityObjectUrl.replace("http://", "https://ssl-");
  12. document.write('<script type="text\/javascript" src="' + unityObjectUrl + '"><\/script>');
  13. -->
  14. </script>
  15. <script type="text/javascript">
  16. <!--
  17. var config = {
  18. width: 960,
  19. height: 600,
  20. params: { enableDebugging:"0" }
  21. };
  22. var u = new UnityObject2(config);
  23. jQuery(function() {
  24. var $missingScreen = jQuery("#unityPlayer").find(".missing");
  25. var $brokenScreen = jQuery("#unityPlayer").find(".broken");
  26. $missingScreen.hide();
  27. $brokenScreen.hide();
  28. u.observeProgress(function (progress) {
  29. switch(progress.pluginStatus) {
  30. case "broken":
  31. $brokenScreen.find("a").click(function (e) {
  32. e.stopPropagation();
  33. e.preventDefault();
  34. u.installPlugin();
  35. return false;
  36. });
  37. $brokenScreen.show();
  38. break;
  39. case "missing":
  40. $missingScreen.find("a").click(function (e) {
  41. e.stopPropagation();
  42. e.preventDefault();
  43. u.installPlugin();
  44. return false;
  45. });
  46. $missingScreen.show();
  47. break;
  48. case "installed":
  49. $missingScreen.remove();
  50. break;
  51. case "first":
  52. break;
  53. }
  54. });
  55. u.initPlugin(jQuery("#unityPlayer")[0], "U3DScene.unity3d");
  56. });
  57. -->
  58. </script>
  59. <style type="text/css">
  60. <!--
  61. body {
  62. font-family: Helvetica, Verdana, Arial, sans-serif;
  63. background-color: black;
  64. color: white;
  65. text-align: center;
  66. }
  67. a:link, a:visited {
  68. color: #bfbfbf;
  69. }
  70. a:active, a:hover {
  71. color: #bfbfbf;
  72. }
  73. p.header {
  74. font-size: small;
  75. }
  76. p.header span {
  77. font-weight: bold;
  78. }
  79. p.footer {
  80. font-size: x-small;
  81. }
  82. div.content {
  83. margin: auto;
  84. width: 960px;
  85. }
  86. div.broken,
  87. div.missing {
  88. margin: auto;
  89. position: relative;
  90. top: 50%;
  91. width: 193px;
  92. }
  93. div.broken a,
  94. div.missing a {
  95. height: 63px;
  96. position: relative;
  97. top: -31px;
  98. }
  99. div.broken img,
  100. div.missing img {
  101. border-width: 0px;
  102. }
  103. div.broken {
  104. display: none;
  105. }
  106. div#unityPlayer {
  107. cursor: default;
  108. height: 600px;
  109. width: 960px;
  110. }
  111. -->
  112. </style>
  113. </head>
  114. <body>
  115. <p class="header"><span>Unity Web Player | </span>Unity+WinFor</p>
  116. <div class="content">
  117. <div id="unityPlayer">
  118. <div class="missing">
  119. <a href="http://unity3d.com/webplayer/" title="Unity Web Player. Install now!">
  120. <img alt="Unity Web Player. Install now!" src="http://webplayer.unity3d.com/installation/getunity.png" width="193" height="63" />
  121. </a>
  122. </div>
  123. </div>
  124. </div>
  125. <p class="footer">&laquo; created with <a href="http://unity3d.com/unity/" title="Go to unity3d.com">Unity</a> &raquo;</p>
  126. </body>
  127. </html>