遊戲方法進行遊戲的方法分為三種: - 下載全部三個檔案,再由瀏覽器開啟html檔執行。
- 嵌入html到您的網站。
- 也可以到我的網誌去玩!
嵌入html將以下html code複製貼上到</head>之前 <link rel="stylesheet" type="text/css" href="http://sites.google.com/site/rexkimta/something/jewel.css" />
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("jquery", "1.3.2");
google.load("jqueryui", "1.7.2");
</script>並將以下的html code貼到<body>和</body>之間,任何您想要遊戲畫面出現的地方: <div id="gamearea"></div>
<div id="msg"></div>
<script type="text/javascript" src="http://sites.google.com/site/rexkimta/something/jewel.js"></script> 最後用瀏覽器打開以上html所在的頁面即可進行遊戲。 關於compiled js用google closure compiler編的。不過不知道為什麼不能用。
|