JavaScriptÈ¡µÃselect option value
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<mce:style type="text/css"><!--
div#show { float: right; color: blue; }
--></mce:style><style type="text/css" mce_bogus="1">
div#show { float: right; color: blue; }
</style>
</HEAD>
<BODY>
<form id="form" method="post">
<table>
<tr>
<td>ÃüÁ</td>
<td>
<div>
<SELECT name="ftpcmd" onchange="SelectValue()">
<OPTION value="STOU">STOU</OPTION>
<OPTION value="RETR">RETR</OPTION>
</SELECT>
</div>
</td>
<td width="50"> <div id="show"></div></td>
</tr>
</table>
<input type=button onclick="selectValue()" value="Ñ¡Ôñ">
</form>
</BODY>
</HTML>
<mce:script language="javascript"><!--
function selectValue()
{
if(window.form.ftpcmd[window.form.ftpcmd.selectedIndex].value=="STOU"){
document.getElementById("show").innerHTML="ÉÏ´«";
alert("ÉÏ´«");
}
if(window.form.ftpcmd[window.form.ftpcmd.selectedIndex].value=="RETR")
{
document.getElementById("show").innerHTML="ÏÂÔØ";
alert("ÏÂÔØ");
}
}
// --></mce:script>
Ïà¹ØÎĵµ£º
<!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>JavaScriptÄ£¿éË ......
[×¢:Ò³ÃæÉÏÔªËØnameÊôÐÔºÍJavaScriptÒýÓõÄÃû³Æ±ØÐëÒ»Ö°üÀ¨´óСд£¬·ñÔò»áÌáʾÄãÒ»¸ö´íÎóÐÅÏ¢ "ÒýÓõÄÔªËØΪ¿Õ»òÕß²»ÊǶÔÏó"]
========================================================================
¶ÔÏóÊôÐÔ:
document.title //ÉèÖÃÎÄ ......
¹ØÓÚ»ñÈ¡¸÷ÖÖä¯ÀÀÆ÷¿É¼û´°¿Ú´óСµÄÒ»µãµãÑо¿¡£
ÔÚÎÒ±¾µØ²âÊÔµ±ÖУº
ÔÚIE¡¢FireFox¡¢Opera϶¼¿ÉÒÔʹÓÃ
document.body.clientWidth
document.body.clientHeight
¼´¿É»ñµÃ£¬ºÜ¼òµ¥£¬ºÜ·½±ã¡£
¶øÔÚ¹«Ë¾ÏîÄ¿µ±ÖУº
OperaÈÔȻʹÓÃ
document.body.clientWidth
document.body.clientHeight
¿ÉÊÇIEºÍFireFoxÔòʹÓÃ
docu ......
¡¡¡¡ºÜ¶àÈ˶¼ÓùýAJAX¿Ø¼þ°É£¬AJAX¿Ø¼þ²»ÐèҪˢÐÂÒ³Ãæ¾Í¿ÉÒÔµ½ºǫ́ȥ¶Á³öÊý¾Ýµ½¿Í»§¶Ë£®AJAX¿Ø¼þ³ýÁËÓкÜìŵÄÌØЧÍ⣬ÆäÒª¹¦ÄܾÍÊDz»ÐèҪˢÐÂÕû¸öÒ³Ãæ¾Í¿ÉÒÔÈ¡µÃÓû§ËùÐèÒªµÄÊý¾Ý£¬ÎÒ°ÑÕâÒ»¿éµÄµÄ¹¦ÄÜ·â×°³ÉÒ»¸öÀ࣬·½±ãÈÕºó¿ÉÒÔÖظ´Ê¹Ó㬴úÂëÈçÏ£º
//Ajax Request Class Start
functio ......