- 博客(0)
- 资源 (2)
- 收藏
- 关注
网页小游戏
把如下代码加入<body>区域中
<script>
document.body.innerHTML += '<DIV id="stage" style="position: absolute; top: 0; left: 0;"></DIV>' //游戏场地
document.body.innerHTML += '<div id="element_stage" style="position: absolute; top: 3; left: 500; width: 159; height: 152"></div>';//预显表
document.body.innerHTML += '<div id="obj_stage" style="position: absolute; top: 0; left: 132; display: block; z-index: 100"></div>';//活动层
var element_html = '<table id="element_table" border="1" width="100%" height="100%" bordercolor="#000000" cellspacing="0" cellpadding="0">';
var obj_html = '<table id="obj_table" border="1" bordercolor="#000000" cellspacing="0" cellpadding="0">';
for(h=0;h<=4;h++) //-------生成预显表 和 活动层-------//
{
element_html += "<tr>";
obj_html += "<tr>";
for(w=0;w<=4;w++)
2015-10-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人