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

Javascript±éÀúHtml Table(°üÀ¨ÄÚÈÝºÍ ÊôÐÔÖµ)


1: ±éÀú²¢Êä³öTableÖÐÖµ
<table id="tb">
    <tr>
       <td></td>
    </tr>
    <tr>
       <td></td>
    </tr>
</table>
function   f()
{
    var t=document.getElementById("tb").childNodes.item(0);
    for(var i=0;i< t.childNodes.length;i++)
    {
       for(var j=0;j<t.childNodes(i).childNodes.length;j++)
          {
             alert(t.childNodes(i).childNodes(j).innerText);
          }
    }
}
2: ±éÀúTable£¬¶ÁÈ¡CheckBox״̬ºÍÆäËûColumnÖµ
<!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>
     <title>Untitled Page</title>
</head>
<body onload="f()">
     <script type="text/javascript">    
         function   f()
         {
            var t=document.getElementById("tb").childNodes.item(0);
           
            for(var i=0;i< t.childNodes.length;i++)
            {
            alert(t.childNodes(i).firstChild.firstChild.nodeValue);
            alert(t.childN


Ïà¹ØÎĵµ£º

ÀûÓÃJavaScriptʵÏÖÉÏ´«Í¼Æ¬Ô¤ÀÀ

<script >
function showimage()

       //IMG1ΪͼƬ¿Ø¼þ»òDiv,File1ΪÉÏ´«Îļþ¿Ø¼þ
document.getElementById("IMG1"). src = document.getElementById("File1").value;
}
</script >
¿Ø¼þÖÐÒýÓÃ:
<input id="File1" runat="server" type="file"  onc ......

javascript¶¯Ì¬Ìí¼Ó/ɾ³ýdiv


Ìí¼Ó
<script>
var oDiv = document.createElement("DIV");
oDiv.id = "shop01";
oDiv.style.top = 200;
oDiv.style.left = 200;
oDiv.style.background = '#FFFF00';
oDiv.style.visibility = 'visible';
oDiv.innerHTML="123123"
document.body.appendChild(oDiv ......

html ÖÐcursorµÄÑùʽ


Êó±êµÄ¶àÖÖÑùʽ...
<P>&lt;a href="help.htm" style="cursor:hand"&gt;ÊÖ&lt;/a&gt;
&lt;a href="help.htm" style="cursor:text"&gt;Îı¾&lt;/a&gt;
&lt;a href="help.htm" style="cursor:MOVE"&gt;Ëĸö·½ÏòµÄ¼ýÍ·&lt;/a&gt;
&lt;a href="help.htm" st ......

Ãæ¶ÔHTML¿Ø¼þÎÒÔÙÒ»´Î´óÒâÁË

µ±HTML¿Ø¼þµÄid="ctl00_contentPlaceHolder_ddl_academy",name="ctl00$contentPlaceHolder$ddl_academy"ʱ
Request.Form["ctl00$contentPlaceHolder$ddl_academy"]¶ø²»ÊÇ
Request.Form["ctl00_contentPlaceHolder_ddl_academy"] ......

aspÏÂÔØÆäËüÍøÕ¾µÄͼƬÀ´¸øhtmlÏÔʾ

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%
Option Explicit
Response.Buffer = True '»º´æÍ¼Æ¬
Dim objXMLHTTP, XML
Set XML = Server.CreateObject("Microsoft.XMLHTTP") '½¨Á¢ÏÂÔØ¶ÔÏó
XML.Open "GET","http://www.google.cn/images/nav_logo7.png",False '¿ªÊ¼»ñȡͼƬ,http://xxx/pngÕâ½Ú¿ÉÒԸijÉ× ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ