<script language="javascript">function rolling(){ var maxNum = 4; var minNum = 1; var n = Math.floor(Math.random() * (maxNum - minNum + 1)) + minNum; document.getElementById("center").innerHTML="<img src='images/" + n + ".jpg' width='90'>";}</script><body><table width="300" align="center"> <tbody> <tr> <td> </td> <td id="top"><img src="images/white.png" width="90"></td> <td> </td> </tr> <tr> <td id="left"><img src="images/Ice_Block_icon.png" width="90"></td> <td id="center"><img src="images/201592412105418.png" width="90"></td> <td id="right"><img src="images/No.png" width="90"></td> </tr> <tr> <td> </td> <td id="bottom"><img src="images/heart-50-xxl.png" width="90"></td> <td> </td> </tr> <tr> <td> </td> <td><input type="button" value="抽选" id="btn_rolling" onClick="rolling();"></td> <td> </td> </tr> </tbody></table><p>
添加回答
举报
0/150
提交
取消