javascript´ò¿ªÑ¡Ôñ¶Ô»°¿ò/±£´æ¶Ô»°¿ò
¡¾ÒýÓõØÖ·¡¿http://hi.baidu.com/rayshow/blog/item/9102258daac46810b31bbad3.html
ÔÚä¯ÀÀÆ÷ÖÐËäÈ»´ò¿ªÑ¡Ôñ¶Ô»°¿òºÍ±£´æÎļþ¶Ô»°¿òµÄ¹¦Äܲ¢²»³£Ê¹Ó㬵«ÓÐʱÈÔÈ»»áÓõÃÉÏ£¬±ÈÈçÒ»¸öweb°æµÄ²¥·ÅÆ÷£¬ÈÃÓû§Ñ¡Ôñ±¾µØµÄÊÓƵ»òÒôƵÎļþµÈ¡£¶ÔÓÚ´ò¿ªÑ¡ÔñÎļþ¶Ô»°¿òÀ´Ëµ£¬Ïà¶Ô±È½Ï¼òµ¥£¬Ö»ÐèÒªÔÚÒ³ÃæÄÚ·ÅÒ»¸öfile±êÇ©£¬¿ÉÒÔ½«ÆädisplayÉèÖÃΪnone£¬Ê¹ÓÃͼƬ¡¢°´Å¥¼°Á´½ÓÀ´Ä£ÄâfileµÄµ¥»÷ʼþ£¬´Ó¶øʵÏÖÑ¡ÔñÎļþµÄÈÎÎñ¡£¾ßÌåʵÏÖÈçÏÂËùʾ£º<html>
<head>
<title> New Document </title>
</head>
<body>
<input type="file" id="file" style="display:none" mce_style="display:none">
<input type="button" value="click" onClick="ok()">
</body>
<mce:script language="JavaScript"><!--
function ok(){
var s = document.getElementById("file");
s.click();
var str = s.value;//»ñÈ¡Îļþ·¾¶
alert(str);//ÔÚÕâÀïÄã¿ÉÒÔ½øÐÐ×Ô¼ºµÄ¹¤×÷
}
// --></mce:script>
</html>
¶ÔÓÚ´ò¿ª±£´æÎļþ¶Ô»°¿ò¿ÉÒÔʹÓÃMSComDlg.CommonDialog¶ÔÏ󣬲¢ÇÒ¿ÉÒÔÉèÖÃÀàÐ͹ýÂË£¬µ«ÊÇÐèÒªÉèÖÃMaxFileSizeÊôÐÔ£¬·ñÔò»á³öÏÖ´íÎó¡£Æä¾ßÌåʵÏÖÈçÏÂËùʾ¡£
¡¾ÒýÓõØÖ·¡¿http://hi.baidu.com/rayshow/blog/item/9102258daac46810b31bbad3.html
ÔÚä¯ÀÀÆ÷ÖÐËäÈ»´ò¿ªÑ¡Ôñ¶Ô»°¿òºÍ±£´æÎļþ¶Ô»°¿òµÄ¹¦Äܲ¢²»³£Ê¹Ó㬵«ÓÐʱÈÔÈ»»áÓõÃÉÏ£¬±ÈÈçÒ»¸öweb°æµÄ²¥·ÅÆ÷£¬ÈÃÓû§Ñ¡Ôñ±¾µØµÄÊÓƵ»òÒôƵÎļþµÈ¡£¶ÔÓÚ´ò¿ªÑ¡ÔñÎļþ¶Ô»°¿òÀ´Ëµ£¬Ïà¶Ô±È½Ï¼òµ¥£¬Ö»ÐèÒªÔÚÒ³ÃæÄÚ·ÅÒ»¸öfile±êÇ©£¬¿ÉÒÔ½«ÆädisplayÉèÖÃΪnone£¬Ê¹ÓÃͼƬ¡¢°´Å¥¼°Á´½ÓÀ´Ä£ÄâfileµÄµ¥»÷ʼþ£¬´Ó¶øʵÏÖÑ¡ÔñÎļþµÄÈÎÎñ¡£¾ßÌåʵÏÖÈçÏÂËùʾ£º
<html>
<head>
<title> New Document </title>
</head>
<body>
<input type="file" id="file" style="display:none" mce_style="display:none">
<input type="button" value="click" onClick="ok()">
</body>
<mce:script language="JavaScript"><!--
function ok(){
var s = document.getElementById("file");
s.click();
var str = s.value;//»ñÈ¡Îļþ·¾¶
alert(str);//ÔÚÕâÀïÄã¿ÉÒÔ½øÐÐ×Ô¼ºµÄ¹¤×÷
}
// --></mce:script>
</html>
¶ÔÓÚ´ò¿ª±£´æÎļþ¶
Ïà¹ØÎĵµ£º
<!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" />
&nb ......
ºÜ¾µäµÄÒ»¸öËã·¨£¬Ñ§Ï°…ing… £º
<!-- ÖйúÅ©Àú¿ªÊ¼ -->
<SCRIPT language=JavaScript>
<!--
var lunarInfo=new Array(
0x04bd8,0x04ae0,0x0a570,0x054d5,0x0d260,0x0d950,0x16554,0x056a0,0x09ad0,0x055d2,
0x04ae0,0x0a5b6,0x0a4d0,0x0d25 ......
function
getVerificationCode()//È¡µÃÑéÖ¤Âë
{
var
para =
new
Array(
"1"
,
"2"
,
"3"
,
"4"
,
"5"
,
"6"
,
"7"
,
"8"
,
"9"
,
&nbs ......
ÔÚWebÉÏÏÔʾͼƬ£¬Í¨³£¶¼»áÓÐͼƬÏÔʾ±ÈÀýÎÊÌ⣬Èç¹û²»¸ø<img />ÏÞÖÆwidthºÍheight£¬ÄÇôÈç¹ûͼƬ´óÁ˾ͻὫÕû¸öÒ³Ãæ¼·ÂÒ£¬Í¼Æ¬Ð¡ÁËÓÖ»áʹͼƬʧÕæ¡£
ÎÒµÄÐèÇóÈçÏ£º
1¡¢Ô¤Ïȶ¨ÒåºÃͼƬÏÔʾµÄ±ê×¼¿í¶ÈºÍ¸ß¶È¡£
&nb ......
C#´úÂëÓëjavaScriptº¯ÊýµÄÏ໥µ÷ÓÃ
ÎÊ£º
1.ÈçºÎÔÚJavaScript·ÃÎÊC#º¯Êý?
2.ÈçºÎÔÚJavaScript·ÃÎÊC#±äÁ¿?
3.ÈçºÎÔÚC#ÖзÃÎÊJavaScriptµÄÒÑÓбäÁ¿?
4.ÈçºÎÔÚC#ÖзÃÎÊJavaScriptº¯Êý?
ÎÊÌâ1´ð°¸ÈçÏ£º
javaScriptº¯ÊýÖÐÖ´ÐÐC#´úÂëÖеĺ¯Êý£º
·½·¨Ò»£º1¡¢Ê×ÏȽ¨Á¢Ò»¸ö°´ ......