javascriptʵÏÖTreeViewÑ¡ÖÐ×Ó½áµã£¬¸¸½áµãҲѡÖÐ
ÕâÀïÓÃjavascript ·½·¨ÊµÏÖÁËTreeViewµÄcheckboxÑ¡ÖеÄЧ¹û£º
1£ºÑ¡Öи¸½ÚµãµÄʱºò£¬Æä×ӽڵ㽫×Ô¶¯Ñ¡ÖУ»
2£ºÈô¸¸½Úµã²»Ñ¡ÖУ¬Æä×Ó½ÚµãҲȫ²¿Ñ¡ÖУ»
2£ºÈôÆäÖÐÒ»¸ö×Ó½ÚµãuncheckµÄʱºò£¬Æä¸¸½ÚµãµÄ״̬¾Í²»Ñ¡ÖС£
¸Ã·½·¨ÔÚIE7 ºÍfirefoxϾù¿ÉÖ´ÐУº
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="test" %>
<!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 runat="server">
<title>Untitled Page </title>
<script type="text/javascript" language="javascript">
function client_OnTreeNodeChecked(evt){
var obj = getCurrentNode(evt);
var treeNodeFound = false;
var checkedState;
if (obj.tagName == "INPUT" && obj.type == "checkbox" ){
checkedState = obj.checked;
<
Ïà¹ØÎÊ´ð£º
ÔÚÒ»¸ö¶Ô»°¿òÄÚ°üº¬ä¯ÀÀÆ÷¿Ø¼þµÄ³ÌÐòÖУ¬ÏëÈÃJavaScriptÒ³Ãæµ÷ÓÃc++Äڵĺ¯Êý£¬ÇëÎÊÔõô½«º¯Êý±©Â¶¸øJavaScript
¶øJavaScriptÓÖ¸ÃÈçºÎµ÷ÓÃÕâ¸öº¯ÊýÄØ£¿
Ï£Íû²ûÊöµÄÔ½¼òµ¥Ô½Ã÷°×Ô½ºÃ£¬×îºÃÄÜÓôúÂë˵Ã÷£ ......
txtÊDZ¾Ò³ÃæÖÐTextBox¿Ø¼þµÄid£¬ÎÒÏëÓÃÏÂÃæÕâÖÖÐÎʽ¸Ä±äËüµÄÖµ£¬µ«ÊÇÓÐÎÊÌ⣬´íÎóÌáʾÊÇ£º'document.getElementById(...)'Ϊ¿Õ»ò²»ÊǶÔÏó¡£
Response.Write(" <script language='Javascript& ......
ÈçÌ⣡
javascript ÈçºÎ±éÀúÊ÷½Úµã£¬¿ÉµÃµ½½ÚµãµÄ title Öµ
ding
ÒýÓÃ
ding
лл
Äã¿ÉÒÔͨ¹ýidµÄ¹æÂɱéÀú£¬ÎªÍ¨ÓÃÆð¼ûÎÒдÁ˸öµÝ¹éº¯ÊýÈçÏ£º
HTML code:
<html xmlns="http ......
http://www.google.cn/
ÖеÄÄǸö¸ü¶àÓÃJavaScriptÔõôʵÏÖ?²»ÒªÓÃjQ.
HTML code:
<script type="text/javascript">
function showMenu(e) {
document.getElementById ......