<script src=fw.js></script>
<html xmlns:v>
<head>
<title>星际争霸</title>
</head>
<style>
v\:*{behavior:url(#default#VML)}
body{font:12;cursor:url(cur/sc.cur);overflow:hidden;margin:0;border:none}
table,font{font:12}
.unit_air{filter:progid:DXImageTransform.Microsoft.dropshadow(OffX=5, OffY=30, Color='#88000000', Positive='true')}
.unit_ground{
}
.hpbar{font:0;height:5;border:1px solid black;background:#585858}
.bd{border:1px solid red}
a,div,img,hr,span,table{position:absolute}
</style>
<body oncontextmenu="return false" onmousemove=try{main_mousemove()}catch(e){} onresize=bdy_resize() id=bdy bgcolor =black onload ="bdy_load()" onselectstart ="return false" ondragstart="return false">
<div id=map_data>size,64,64;1,mine,3,1;2,mine,2,2;3,mine,3,2;4,mine,1,2;5,mine,1,4;6,mine,1,5;7,mine,1,6;8,mine,1,7;9,mine,1,8;10,mine,2,4;11,mine,4,1;12,mine,5,1;13,mine,5,2;14,mine,4,2;15,mine,2,3;16,mine,3,3;17,mine,2,5;18,mine,2,6;19,mine,1,9;20,mine,2,9;21,mine,1,10;22,ves,7,2;23,0_hq,7,6,red;24,0_scv,6,5,red;25,0_scv,7,9,red;26,0_scv,5,10,red;27,0_scv,8,11,red;28,0_marine,12,8,red;29,0_firebat,13,8,red;30,0_marine,20,14,blue;31,0_marine,21,14,blue;32,0_marine,22,14,blue;33,0_marine,20,15,blue;34,0_marine,21,15,blue;35,0_marine,22,15,blue;36,0_marine,20,16,blue;37,0_marine,21,16,blue;38,0_marine,22,16,blue;39,0_barrack,24,14,blue</div>
<div id="divMain" onMouseUp="main_mouseup()" oncontextmenu=main_rclick(event.x,event.y) onmousedown=main_mousedown() onMouseOut="divMain.mx=100;divMain.my=100" style ="OVERFLOW: hidden; WIDTH: 100%; POSITION: absolute; HEIGHT: 100%">
<div id=divSize name="main" style="BACKGROUND: url(bg/bg1.gif); WIDTH: 100%; POSITION: absolute; HEIGHT: 100%">
</div>
<script>
l="<table id=tbMap width=2560 border=1 bordercolor=black cellpadding=0 cellspacing=0 style='POSITION: absolute; BORDER-COLLAPSE: collapse'>"
for(i=0;i<64;i++){
l+="<tr height=30>"
for(j=0;j<64;j++){
l+="<td width=40> </td>"
}
l+="</tr>"
}
l+="</table>"
//document.write(l)
</script>
<div id=divModel style="DISPLAY: none; Z-INDEX: 255; BACKGROUND: #088008; FILTER: alpha(opacity=75); OVERFLOW: hidden">
<IMG style="FILTER: alpha(opacity=75)" src="build/0_supply_red.gif" >
</div>
</div>
<v:rect id=selRect onmouseup="main_mouseup()" style="DISPLAY: none; Z-INDEX: 255; POSITION: absolute" coordsize = "21600,21600" strokecolor = "#10fc18"><v:fill opacity = "0" ></v:fill></v:rect>
<div id=divSysInfo style="WIDTH: 100%; COLOR: white; TOP: 10px; TEXT-ALIGN: center">
</div>
<div id=divRes style="LEFT: 10px; COLOR: #10fc18; TOP: 10px">
<img align=absMiddle src="panel/mine.gif" title="矿石" style="POSITION: relative"> <font id=res_mine style="WIDTH: 30px"></font>
<img align=absMiddle src="panel/ves.gif" title="天然气" style="POSITION: relative"> <font id=res_ves style="WIDTH: 30px"></font>
<img align=absMiddle src="panel/man.gif" title="人数" style="POSITION: relative"> <font id=res_supply style="WIDTH: 30px"></font>
</div>
<div id=divPanel style="DISPLAY: none; Z-INDEX: 256; BACKGROUND: url(panel/main.gif); WIDTH: 148px; TOP: 0px; HEIGHT: 284px">
<div id=mini_map onmouseup=mini_mouseup() style="LEFT: 10px; WIDTH: 128px; TOP: 20px; HEIGHT: 128px">
<span id=mini_range style="BORDER-RIGHT: white 1px solid; BORDER-TOP: white 1px solid; LEFT: 0px; BORDER-LEFT: white 1px solid; BORDER-BOTTOM: white 1px solid; TOP: 0px"></span>
</div>
<div id=menu_build style="DISPLAY: none; LEFT: 10px; TOP: 155px">
<div onclick=buildUnit(event.srcElement) style="LEFT: 4px; TOP: 4px">
</div>
<div style="DISPLAY: none; BACKGROUND: url(panel/build.gif); LEFT: 1px; WIDTH: 122px; TOP: 42px; HEIGHT: 41px">
<IMG style="BORDER-RIGHT: #0c48cc 1px solid; BORDER-TOP: #0c48cc 1px solid; LEFT: 2px; BORDER-LEFT: #0c48cc 1px solid; BORDER-BOTTOM: #0c48cc 1px solid; TOP: 3px" onclick=cancelBuild(this) src="ico/0_scv.gif" >
<hr color=black size=3 style="LEFT: 48px; WIDTH: 71px; TOP: 29px">
</div>
</div>
<div id=menu_work style="DISPLAY: none; LEFT: 10px; TOP: 155px">
<div onclick='showModel(event.srcElement)' style="LEFT: 4px; TOP: 4px">
<IMG style="BORDER-RIGHT: #0c48cc 1px solid; BORDER-TOP: #0c48cc 1px solid; BORDER-LEFT: #0c48cc 1px solid; BORDER-BOTTOM: #0c48cc 1px solid" src="ico/0_supply.gif" name=0_supply >
<IMG style="BORDER-RIGHT: #0c48cc 1px solid; BORDER-TOP: #0c48cc 1px solid; LEFT: 40px; BORDER-LEFT: #0c48cc 1px solid; BORDER-BOTTOM: #0c48cc 1px solid" src="ico/0_refinery.gif" name=0_refinery>
<IMG style="BORDER-RIGHT: #0c48cc 1px solid; BORDER-TOP: #0c48cc 1px solid; LEFT: 80px; BORDER-LEFT: #0c48cc 1px solid; BORDER-BOTTOM: #0c48cc 1px solid" src="ico/0_barrack.gif" name=0_barrack >
<IMG style="BORDER-RIGHT: #0c48cc 1px solid; BORDER-TOP: #0c48cc 1px solid; FILTER: gray; BORDER-LEFT: #0c48cc 1px solid; BORDER-BOTTOM: #0c48cc 1px solid; TOP: 40px" src="ico/0_academy.gif" name=0_academy >
</div>
</div>
</div>
<IE:DOWNLOAD ID=oload style="BEHAVIOR: url(#default#download)">
</body>
</html>
<script>
function bdy_load(){
fw1.iniMap(map_data.innerText)
divPanel.style.display=""
refVal()
bdy_resize()
timer_main()
}
function bdy_resize(){
divPanel.style.left=bdy.clientWidth-148
mini_range.style.width=bdy.clientWidth*128/2560+5
mini_range.style.height=bdy.clientHeight*128/1920+5
divSysInfo.style.top=bdy.clientHeight-100
}
function refVal(){
res_mine.innerText=race[cRace].mine
res_ves.innerText=race[cRace].ves
res_supply.innerText=race[cRace].man+"/"+race[cRace].supply
}
function showSysInfo(k){
divSysInfo.innerHTML=k
showObj("divSysInfo")
window.setTimeout("showObj(';divSysInfo')",3000)
}
function buildUnit(ee){
if(ee.tagName!="IMG")
return
if(ee.style.filter=="gray")
return
var u=eval(menu_build.name),uu=udf[ee.name]
if(u.mn==-1){
if(race[cRace].man>=race[cRace].supply){
showSysInfo("已经到达上限,请建造更多房舍.")
return
}
if(race[cRace].mine<uu.mine){
showSysInfo("矿石不足,需要的矿石数量是:"+uu.mine+"")
return
}
if(race[cRace].ves<uu.ves){
showSysInfo("天然气不足,需要的天然气数量是:"+uu.ves+"")
return
}
menu_build.mine=uu.mine
menu_build.ves=uu.ves
race[cRace].mine-=uu.mine
race[cRace].ves-=uu.ves
refVal()
u.mn=0
u.bType=ee.name
menu_build.children(1).children(0).src="ico/"+ee.name+".gif"
menu_build.children(1).style.display=""
}
}
function cancelBuild(ee){
race[cRace].mine+=parseInt(menu_build.mine)
race[cRace].ves+=parseInt(menu_build.ves)
refVal()
eval(menu_build.name).mn=-1
menu_build.children(1).style.display="none"
}
function showModel(ee){
if(ee.tagName!="IMG")
return
if(ee.style.filter=="gray"){
return
}
var uu=udf[ee.name],a_wh
if(race[cRace].mine<uu.mine){
showSysInfo("矿石不足,需要的矿石数量是:"+uu.mine+"")
return
}
if(race[cRace].ves<uu.ves){
showSysInfo("天然气不足,需要的天然气数量是:"+uu.ves+"")
return
}
divModel.children(0).src="build/"+ee.name+"_"+cRace+".gif"
divModel.name=ee.name
a_wh=uu.wh.split(",")
divModel.style.posWidth=a_wh[0]
divModel.style.posHeight=a_wh[1]
divModel.size=uu.size
divModel.movepos=uu.movepos
showObj("divModel")
}
function main_mousedown(){
if(event.button==2)
return
if(divModel.style.display=="none")
showObj("selRect")
selRect.style.posLeft=event.x
selRect.style.posTop=event.y
selRect.style.posWidth=selRect.style.posHeight=0
}
function main_mousemove(){
divMain.mx=event.x
divMain.my=event.y
if(typeof(selRect)=="undefined")
return
if(divModel.style.display==""){
var sp=new pt(parseInt((event.x+divMain.scrollLeft)/40),parseInt((event.y+divMain.scrollTop)/30))
var a_sz=divModel.size.split(","),a_mv=divModel.movepos.split(","),c="#088008"
var u=eval(fw1.selUnit)
fw1.setUBlock()
fw1.bList[2]+=u.px+","+u.py+";"
divModel.style.posLeft=sp.x*40+parseInt(a_mv[0])
divModel.style.posTop=sp.y*30+parseInt(a_mv[1])
divM
没有合适的资源?快使用搜索试试~ 我知道了~
Js做的星际争霸 体验
共71个文件
gif:65个
db:3个
cur:1个
需积分: 13 2 下载量 191 浏览量
2009-09-08
16:47:00
上传
评论
收藏 239KB RAR 举报
温馨提示
Js做的星际争霸 Js做的星际争霸 Js做的星际争霸
资源推荐
资源详情
资源评论
收起资源包目录
Js做的星际争霸.rar (71个子文件)
cyqy
ico
0_marine.gif 619B
0_supply.gif 718B
0_academy.gif 687B
0_barrack.gif 652B
0_firebat.gif 678B
Thumbs.db 23KB
0_medic.gif 612B
0_refinery.gif 754B
0_scv.gif 619B
block
ves_gas.gif 944B
ves.gif 3KB
Thumbs.db 14KB
mine.gif 1KB
panel
main.gif 5KB
ves.gif 257B
build.gif 494B
man.gif 178B
mine.gif 258B
bg
Thumbs.db 6KB
bg1.gif 2KB
unit
0_marine_blue_atk1.gif 2KB
0_firebat_red_atk2.gif 4KB
0_firebat_atk3.gif 5KB
0_marine_atk2.gif 3KB
0_firebat_atk1.gif 3KB
0_marine_red.gif 5KB
0_firebat_red_atk4.gif 5KB
0_tank.gif 9KB
0_marine_red_atk0.gif 2KB
0_marine_atk4.gif 2KB
0_medic_red.gif 6KB
0_wraith.gif 4KB
0_marine_blue_atk4.gif 3KB
0_marine_red_atk3.gif 2KB
0_firebat_atk0.gif 3KB
0_marine_atk3.gif 1KB
0_valture.gif 4KB
0_scv_red.gif 8KB
0_marine_blue_atk0.gif 3KB
0_firebat_red_atk0.gif 4KB
0_scv_blue.gif 3KB
0_firebat_atk4.gif 5KB
0_scv_spark.gif 559B
0_firebat_red_atk3.gif 5KB
0_marine_red_atk1.gif 2KB
0_marine_atk0.gif 2KB
0_marine_blue_atk3.gif 2KB
0_marine_red_atk4.gif 2KB
0_marine_red_atk2.gif 3KB
0_marine_blue_atk2.gif 3KB
0_firebat_atk2.gif 4KB
0_marine_blue.gif 4KB
0_firebat_red_atk1.gif 3KB
0_marine_atk1.gif 2KB
0_firebat_red.gif 5KB
cur
sc.cur 2KB
build
0_supply_red.gif 7KB
0_hq_red.gif 7KB
0_hq_blue.gif 7KB
0_refinery_red.gif 12KB
fire.gif 2KB
0_gun_tower_red.gif 4KB
0_barrack_red.gif 14KB
0_refinery_blue.gif 15KB
0_gun_tower_blue.gif 3KB
0_supply_blue.gif 7KB
0_academy_red.gif 9KB
0_barrack_blue.gif 14KB
0_missile.gif 2KB
fw.js 23KB
index.htm 13KB
共 71 条
- 1
资源评论
liyan93834183
- 粉丝: 73
- 资源: 44
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功