javaScriptÐüÍ£¿Ø¼þÉϵĸ¡¶¯²ã¶¨Î»
ÈçºÎʵÏÖµ±Êó±êÐüÍ£¿Ø¼þÉÏʱ£¬³öÏָÿؼþµÄβ²¿ÏÔʾ¶ÔÓ¦µÄ²ã£¬Êó±êÒƶ¯µ½¸Ã²ãÉϽøÐÐÏàÓ¦µÄ²Ù×÷£¬µ±Êó±êÒƳýʱ£¨²»ÔڿؼþÉÏÒ²²»ÔÚ²ãÉÏ£©²ãÒþ²Ø£¬
HTML code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>ÎÞ±êÌâÎĵµ</title>
<script language="javascript" type="text/javascript">
//Ê¡·Ý³ÇÊпؼþ
function displayCity(cityName)
{
switch(cityName)
{
case"±±¾©ÊÐ":
document.getElementById("divCityname").innerHTML="<table align='center' cellpadding='0' cellspacing='0'><tr><td><input type='checkbox' name='checkbox' value='º£µíÇø'>º£µíÇø</td><td><input type='checkbox' name='checkbox' value='³¯ÑôÇø'>³¯ÑôÇø</td></tr><tr><td><input type='checkbox' name='checkbox' value='´óÐËÇø'>´óÐËÇø</td><td><input type='checkbox' name='checkbox' value='¶«³ÇÇø'>¶«³ÇÇø</td></tr><tr><td><input type='checkbox' name='checkbox' value='²ýƽÇø'>²ýƽÇø</td><td><input type='checkbox' name='checkbox' value='Î÷³ÇÇø'>Î÷³ÇÇø</td></tr><tr><td><input type='checkbox' name='checkbox' value='ÐûÎäÇø'>ÐûÎäÇø</td><td><input type='checkbox' name='checkbox' value='·ą́Çø'>
Ïà¹ØÎÊ´ð£º
±ÈÈçÓÐÒ»¸ötextbox£¬Óû§ÊäÈëºóµãbutton°´Å¥Ê±£¬ÊµÏÖÓÃJavaScript¶ÔtextboxÊäÈëÐÅÏ¢µÄÑéÖ¤£¬±ÈÈçÑéÖ¤Óû§ÊäÈëµÄÊÇ·ñÊÇÊý×Ö¡£
Ï£Íû½«HTML´úÂëÒ»²¢Ð´³öÀ´¹þ£¬Ð»Ð»¡£
HTML code:
<!DOCTYPE html PUBLIC &quo ......
Õâ¸ö±íµ¥µÄÊýÖµ²»Êǹ̶¨µÄ£¡µ±°´ÏÂÍ£Ö¹°´Å¥µÄʱºò×îÖÕµÄÊý×ֲŻáÍ£ÔÚÉÏÃ棡
ÎÒÏë°Ñ×îºóͣϵÄÊý×Ö´«ËÍ´«Ë͵½ÏÂÒ»¸öASPÒ³ÃæÉÏÈ¥£¡
²»ÏëʹÓÃlocation.href="mnn.asp?action="+ok1ÕâÑùµÄ·½Ê½´«Ë͹ýÈ¥
......
ÎÒÔÚºǫ́µ÷ÓÃJavaScriptµÄʱºò£¬ËûÊÇÔÚºǫ́°ÑʼþµÄ´úÂëÖ´ÐÐÒ»´ÎºóÔÚÖ´ÐÐJavaScript·½·¨
ÓÐʲô°ì·¨ ÔÚÖ´ÐÐJavaScript·½·¨µÄʱºòͣס£¬ÔÚÖ´ÐкóÃæµÄ´úÂë
²»Ì«Ã÷°×°¡£¬ËµÇå³þµã°É
¾ÍÊÇÖ´Ðкǫ́´úÂëµÄʱºò ......
Ç°Óжà¸öJavaScriptº¯Êý
ºóÃæÌá½»¿É <form name="" action="" method="" onsubmit="return isPostalCode();return isID();return isEmail() "
¿ÉÕâÑùÐ ......
ÈçºÎʵÏÖµ±Êó±êÐüÍ£¿Ø¼þÉÏʱ£¬³öÏָÿؼþµÄβ²¿ÏÔʾ¶ÔÓ¦µÄ²ã£¬Êó±êÒƶ¯µ½¸Ã²ãÉϽøÐÐÏàÓ¦µÄ²Ù×÷£¬µ±Êó±êÒƳýʱ£¨²»ÔڿؼþÉÏÒ²²»ÔÚ²ãÉÏ£©²ãÒþ²Ø£¬
http://topic.csdn.net/u/20090830/23/5e5ded07-7216-46c2-9712- ......