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
Ïà¹ØÎÊ´ð£º
<form id="form1" runat="server">
<div>
<script type="text/javascript">
function oo(a){
document.getEleme ......
ÕâÊÇÎÒµÄÎı¾¿ò
<input type="text" size="60" name="password_answer" id="pwdanswer" value="$!password_answer" >
Ìá½»°´Å¥
<input clas ......
ÎÒÔÚºǫ́ÓÃC#±àдASP.NETÒ³Ãæ£¬Í¬Ê±ÒªÓÃJAVASCRIPTÀ´¿ØÖÆÌáʾ´°¿Ú£¬Èç
Response.Write(" <script language=javascript>confirm('È·¶¨ÒªÉ¾³ýÂð£¿') </script>");
ÎÒÒªÓÃconfirm( ......
ǰÓжà¸öJavaScriptº¯Êý
ºóÃæÌá½»¿É <form name="" action="" method="" onsubmit="return isPostalCode();return isID();return isEmail() "
¿ÉÕâÑùÐ ......
ÓÐûÓÐÓÃjavascript×öµÄasp.netÎÞË¢ÐÂÈý¼¶Áª¶¯Ô´Âë £¬ÔÚÍøÂçÕÒÁ˺ܶ࣬µ«ÊǶ¼Ã»ÓоßÌåÔ´Âë¡£¡£
ºÜ¶à¶¼ÊÇÓà asp.net ajaxÀ´×öµÄ¡£µ«ÊÇһЩä¯ÀÀÆ÷ÏÔʾ²»¼æÈÝ£¬ÀÏÊÇ´íÎ󡣡£Ð»Ð»£¡£¡
ʵÀý±È½Ï¶à£¬¿ÉʹÓÃjavas ......