Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

[ת]aspµÄtextboxµÄjavascriptÓ¦ÓÃ

<%@ Page Language="C#" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server"> </script>
<html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server">
<title>ÎÞ±êÌâÒ³</title>
<script language="javascript" type="text/javascript">
//javascriptÉèÖÃÎı¾¿òµÄ×î´ó³¤¶È
function Button1_Click()
{
var txtBox1=document.getElementById("TextBox1");
txtBox1.maxLength=10;
return false;
}
//javascriptÉèÖÃÎı¾¿òµÄÊôÐÔΪֻ¶Á
function Button2_Click() {
var txtBox1=document.getElementById("TextBox1");
txtBox1.readOnly=true;
return false;
}
//javascriptÉèÖÃÐÐÊýÓëÎı¾¿òÀàÐÍ //½«<input type=text />¸Ä³É£¼textarea /> //idºÅ²»±ä
function Button3_Click()
{
//ÒƳýTextBox1
var textBox1=document.getElementById("TextBox1");
var textBox1id=textBox1.id; //µÃµ½TextBox1µÄ¸¸ÔªËØ
var parentE=textBox1.parentElement; parentE.removeChild(textBox1);
//´´½¨ÐÂÔªËØ
TextArea var newTextBox1=document.createElement("<textarea />");
newTextBox1.id=textBox1id;
newTextBox1.name=textBox1id;
newTextBox1.rows=10;
parentE.appendChild(newTextBox1);
// parentE.insertBefore(newTextBox1,textBox1);
return false;
}
//javascriptÉèÖÃÎı¾¿òµÄÎı¾
function Button4_Click()
{
var txtBox1=document.getElementById("TextBox1");
txtBox1.value='Öйú¡£ºÓ±±¡£±£¶¨¡£ÇúÑô¡£Íõ°®»Ô';
return false;
}
//javascriptÉèÖÃÊó±êÒƹýÈ¥ÏÔʾÎı¾
function Button5_Click()
{
var txtBox1=document.getElementById("TextBox1");
txtBox1.title='ÇúÑôÏصÚÒ»ÖÐѧ';
return false;
}
//ÉèÖÃÎı¾¿òµÄ¿É¼ûÐÔ //¿ÉÄÜÊǽ«TextBox1¿Ø¼þ´ÓdomÊ÷ÖÐɾ³ý
function Button7_Click()
{
var txtBox1=document.getElementById("TextBox1");
return false;
}
//javascriptÉèÖÃÊÇ·ñ×Ô¶¯»»ÐÐ //Ö»¶Ô<textare />ÓÐЧ
function Button6_Click()
{ return false; }
</script>
</head>
<body>
<form id="form1" runat


Ïà¹ØÎĵµ£º

JavaScript ¿ò¼Ü±È½Ï


JavaScript ¿ò¼Ü±È½Ï
ÏÔÖøÔöÇ¿ JavaScript ¿ª·¢µÄ¿ò¼Ü¸ÅÀÀ
Joe Lennon, Èí¼þ¿ª·¢ÈËÔ±, ×ÔÓÉÖ°ÒµÕß
¼ò½é£º ÏÖ´ú Web Õ¾µãºÍ Web Ó¦ÓóÌÐòÇãÏòÓÚÒÀÀµ´óÁ¿¿Í»§¶Ë JavaScript À´Ìṩ·á¸»µÄ½»»¥¹¦ÄÜ£¬ÓÈÆäÊÇÒì²½ HTTP ÇëÇóµÄ³öÏÖʹµÃ²»Ë¢ÐÂÒ³Ãæ¾Í¿ÉÒÔ´Ó·þÎñÆ÷¶Ë½Å±¾»òÊý¾Ý¿âϵͳ·µ»ØÊý¾Ý»òÏìÓ¦¡£ÔÚ±¾ÎÄÖУ¬Äú½«Á˽âÈçº ......

javaScriptʵÏÖ±³¾°ÒôÀÖÓë²¥·ÅÉùÒô

Ñо¿ÁË°ëÌì,²»¹ýòËÆ»¹ÊÇÖ»ÄÜÔÚIEÉÏʵÏÖ,ÆäËûä¯ÀÀÆ÷²»Ö§³ÖEMBED ±êÇ©
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>ÓÃjavascriptÖÆ×÷³¬Á´½ÓµÄ±³¾°ÒôЧ</title>
<script language="JavaScript" type="text/JavaScript">
<!-- ......

ÓÃjavascript²Ù×÷cookie¼òµ¥ÊµÀý

´úÂëÖ÷ÒªÊDzÙ×÷cookieµÄÁ½¸öº¯Êý£ºÒ»¸öÊÇsetCookieÓÃÓÚÉèÖÃcookieµÄÖµ£¬ÁíÍâÒ»¸öÊÇgetCookie ÓÃÓÚÈ¡cookieµÄÖµ£¬ÊµÏÖÁ˼òµ¥µÄcookie´æÈ¡²Ù×÷£¬ºÜ¼òµ¥£¬´úÂëÈçÏ£º
<mce:script language="JavaScript" type="text/javascript"><!--

function setCookie(name,value)
{
//ÓÃÓÚ´æ´¢¸³Öµ¸ødocument.cookieµÄc ......

50¸öʵÓõÄjavascript¹¤¾ß

JavaScriptÊÇÒ»¸ö¹¦ÄÜÇ¿´óµÄ¿Í»§¶Ë½Å±¾ÓïÑÔ£¬Ðí¶àÏÖ´ú»¯µÄÍøÕ¾ºÍWebÓ¦ÓóÌÐò¶¼»áʹÓõ½Ëü¡£JavaScript¿ÉÒÔÔöÇ¿Óû§µÄÌåÑ飬²¢Ìṩ·á¸»µÄ»¥¶¯Ê½×é¼þºÍ¹¦ÄÜ¡£ËäÈ»ËüµÄÓï·¨Ï൱¼òµ¥£¬µ«ÊǶԿª·¢ÕßÀ´Ëµ»¹ÊǺÜÓÐÄѶȵģ¬ÒòΪËüÒªÔËÐÐÔÚWebä¯ÀÀÆ÷ÖС£
ÒÔÏÂÊÇÎÒÃÇΪÄãÍƼöµÄ50¸öÏà¹Ø¹¤¾ß:
JavaScript/AJAX±à¼­¹¤¾ß
jQuery UI
j ......

½øÒ»²½Àí½âjavascript¶ÔÏó¡¢Êý×éºÍ¹þÏ£±í


½øÒ»²½Àí½âjavascript¶ÔÏó¡¢Êý×éºÍ¹þÏ£±í 



ÔÚjavascriptÖУ¬¶ÔÏóʵ¼ÊÉϾÍÊÇÒ»¸ö¹þÏ£±í£¬±ÈÈçÏÂÃæÕâ¸öuser¶ÔÏó£º
function user(n, a)
{
this.name = n;
this.age = a;
this.toString = function() {
return 'Name:' + ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ