js编程小游戏:
运行效果图:
源码:
HTML:
<html>
<head>
<title>Game</title>
<meta charset="utf-8"/>
<script src="caiquan2.js" language="javascript" type="text/javascript">
</script>
<style>
td {
color:white};
</style>
</head>
<body >
<div style="float:left;width:500px" >
<table align=center bgColor="#8B1A1A" border=solid>
<tr align=center>
<td width=140px><font color="white"size="5">你</font></br><img id="myImg1"src="1.png"/></td>
<td><font size=28px>VS</font></td>
<td width=140px><font color="white" size="5">电脑</font></br><img id="comImg" src="2.png"/></td>
</tr>
<tr height=50px align=center>