易截截图软件、单文件、免安装、纯绿色、仅160KB

javascript 石头,剪刀,布游戏!

那位有时间给完善一下,现在是电脑出的是英文,把电脑出的换成图


[code=JScript] [ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档 </title>
</head>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function playGame(choice) {
with (document.game) {
comp = Math.round((Math.random() * 2) + 1);
var choicename;
if (comp == 1) choicename = <img src="photo/rock.gif" width=29 height=23 border=0>;
if (comp == 2) choicename = <img src="photo/paper.gif" width=29 height=23 border=0>;
if (comp == 3) choicename = <img src="photo/scissors.gif" width=29 height=23 border=0>;
//msg.value = 'The computer chose ' + choicename + ';  ';

switch(choice) { // calculates score
case 1 : // rock
if (comp == 1) {  draw.value++; msg.value += 'It is a draw.'; break; }
if (comp == 2) {  loss.value++;  msg.value += 'You lost!';    break; }
if (comp == 3) {  win.value++; msg.val


相关问答:

asp中用javascript动态改变Image的src的路径问题

<form id="form1" runat="server">
  <div>
  <script type="text/javascript">
  function oo(a){
  document.getEleme ......

关于JavaScript传递数据的问题!

这个表单的数值不是固定的!当按下停止按钮的时候最终的数字才会停在上面!
我想把最后停下的数字传送传送到下一个ASP页面上去!
不想使用location.href="mnn.asp?action="+ok1这样的方式传送过去 ......

javascript 脚本出错

在更新面板里注册了一个JavaScript脚本(脚本的作用:滚动显示文字),在程序连续跑30分钟以后,弹出一个错误提示框,错误:未指明的错误 状态吗:0,期待高手和我一起解决。
先帮顶。。。代码呢?

自己也顶下。 ......

有没有用javascript做的asp.net无刷新三级联动源码

有没有用javascript做的asp.net无刷新三级联动源码 ,在网络找了很多,但是都没有具体源码。。

很多都是用 asp.net ajax来做的。但是一些浏览器显示不兼容,老是错误。。谢谢!!

实例比较多,可使用javas ......

javaScript悬停控件上的浮动层定位

如何实现当鼠标悬停控件上时,出现该控件的尾部显示对应的层,鼠标移动到该层上进行相应的操作,当鼠标移除时(不在控件上也不在层上)层隐藏,
HTML code:
<html>
<head>
<meta http-equiv= ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号