¹ØÓÚJavaScript´«µÝÊý¾ÝµÄÎÊÌ⣡
Õâ¸ö±íµ¥µÄÊýÖµ²»Êǹ̶¨µÄ£¡µ±°´ÏÂÍ£Ö¹°´Å¥µÄʱºò×îÖÕµÄÊý×ֲŻáÍ£ÔÚÉÏÃ棡
ÎÒÏë°Ñ×îºóͣϵÄÊý×Ö´«ËÍ´«Ë͵½ÏÂÒ»¸öASPÒ³ÃæÉÏÈ¥£¡
²»ÏëʹÓÃlocation.href="mnn.asp?action="+ok1ÕâÑùµÄ·½Ê½´«Ë͹ýÈ¥
¾õµÃÌ«²»°²È«ÁË£¡
Èç¹ûÍòһʵÏÖ²»ÁË£¬ÄÇÓÐûÓа취ÔÚÏÂÒ»¸öASPÒ³Ãæ¼ì²âÊDz»ÊÇÊÖ¶¯´òÉÏÈ¥µÄ±äÁ¿£¡
»¹ÓÐÔõÑù·ÀÖ¹ÄǸöÎı¾¿ò²»ÄÜÊäÈ붫Î÷½øÈ¥£¡
HTML code:
<title>²ÂÊý×ÖÓÎÏ·</title>
<head>
<meta name="keywords" content="">
<meta http-equiv=Content-Type content="text/html; charset=gb2312">
</head>
<body>
<SCRIPT LANGUAGE="JavaScript">
var alldata = "1,2,3,4,5,6,7,8,9,10" //10¸öÊý×Ö
var alldataarr = alldata.split(",")
var num = alldataarr.length-1
var timer
function change(){
document.getElementById("oknum").value = alldataarr[GetRnd(0,num)];
}
function start(){
clearInterval(timer);
timer = setInterval('change()',10); //50£¨ºÁÃ룩Ϊ±ä»»¼ä¸ô£¬Ô½Ð¡±ä»»µÄÔ½¿ì
}
function ok(){
clearInterval(timer);
var ok1 = document.Login.oknum.value
}
function GetRnd(min,max){
return parseInt(Math.random()*(max-min+1));
}
</SCRIPT>
<form method="post" name="Login" id="Login">
²ÂÊý×Ö£º<input type="text&q
Ïà¹ØÎÊ´ð£º
<form id="form1" runat="server">
<div>
<script type="text/javascript">
function oo(a){
document.getEleme ......
hookkeeeÀÏʦ£¬javascriptÈçºÎ¿ØÖÆxml
ÈçºÎ¶ÁÈ¡cookies
hookkeeÔÚweb°æ
var xmlDoc = new ActiveXObject("Msxml2.DOMDocument.3.0");
xmlDoc.async = false;
xmlDoc.load("test"&q ......
ÎÒÐèҪдһ¶Î´úÂëÀ´¶ÁȡijÎļþ¼ÐϵÄÎļþ£¬Ö»ÐèÒª¶ÁÈ¡µ½Îļþ¼ÐÏÂËùÓÐÎļþÃû¾ÍºÃÁË£¡£¡£¡
Çó´úÂëÏÈ£¡£¡ÎÒ¶¼²»»á£¬ËùÒÔÒª´úÂëÁË¡£
¿Í»§¶ËµÄÎļþ£¬²»ÄÜÕâô×ö¡£
ÈçÃÏ×ÓËù˵£¬ÔÚ¿Í»§¶ËµÄJavaScriptÖÐÔËÐÐÎļþ ......
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<body>
<%!
public class User{
private St ......
ÎÒÔÚ¹¤×÷ÖÐÓöµ½ÁËһЩÎÊÌ⣬¾ÍÊÇÔÚhtmlÎļþµ÷ÓÃjavascriptºÃÓ㬿ÉÊÇÓÃ.net µ÷ÓÃJS¾Í²»ºÃÓã¬ÕÒÁ˺ܶà×ÊÁÏ£¬µ«ÊÇ»¹²»ºÃÓá£ÏÖÔÚÇó´ó¼ÒÓÐûÓÐʲôºÃµÄÎÄÕ»òºÃµÄÊé½éÉÜһϣ¬ÈÃÎҺúÃѧϰһÏÂ.net¶ÔJSµÄ²Ù×÷¡£Ð»Ð»´ó¼ ......