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

HTMLµÄDOM²Ù×÷Àý×Ó

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>use html as DOM</title>
<mce:script language="javascript" type="text/javascript"><!--
function addUser() {
// get and execute name
var name = $("name").value;
if(name == "") return;

// create a new row
var row = document.createElement("tr");
row.setAttribute("id", name);

// create a new cell (name)
var cell = document.createElement("td");
cell.appendChild(document.createTextNode(name));

// add cell to row
row.appendChild(cell);

// a new cell (delete)
cell = document.createElement("td");

// dim a button
var delButton = document.createElement("input");
delButton.setAttribute("type", "button");
delButton.setAttribute("value", "delete");
delButton.onclick = function () {delUser(name)};

// add button to cell
cell.appendChild(delButton);

// add cell to row
row.appendChild(cell);

// add row to table
$("userList").appendChild(row);

// set textbox ""
$("name").value = "";
}

function delUser(name) {
$("userList").removeChild($(name));
}

function $(id) {
return document.getElementById(id);
}

// --></mce:script>
</head>
<body>
<input type="text" id="name">
<input type="button" value="add" onclick="addUser()"><p/>
<table border="1">
<thead>
<td width="100">name</td><td>delete</td>
</thead>
<tbody id="userList">
</tbody>
</ta


Ïà¹ØÎĵµ£º

htmlÔöÐÐ

<script   language="javascript">  
  function   newRow()  
  {  
    var   tbl   =   document.all("mytbl");  
    var   row   = &nb ......

ÔÚhtml webÍøÒ³Öи¸×Ó´°¿ÚÖ®¼äÖµµÄ´«Öµ

ÔÚWeb¿ª·¢ÖУ¬³£³£ÒªÓõ½Á½¸ö´°¿ÚÖ®¼ä»¥Ïà´«Öµ¡£ÏÂÃæÌ¸Ì¸¸¸×Ó´°¿ÚÖ®¼äµÄ´«Öµ£º
Ò»£ºÊ¹ÓÃOpen¿ªÆô×Ó´°¿Ú
1£ºµ¥Öµ´«µÝ
ͨ¹ýopen¿ªÆôµÄ×Ó´°¿Ú±È½ÏºÃ´¦Àí¡£
Ò³Ãæ´°¿Ú1.html´úÂ룺
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<body>
<form name=" ......

HTML ¿ò¼Ü noresize="noresize" ×÷ÓÃ

<html>
<frameset cols="50%,*,25%">
 
  <!-- ×ó±ßÒ³ÃæÕ¼50% ±»¹Ì¶¨×¡ÁË -->
  <frame src="/example/html/frame_a.html" noresize="noresize"
/>
  <frame src="/example/html/frame_b.html" />
  <frame s ......

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É× ......

HTML ±êÇ©

¶¨ÒåºÍÓ÷¨
fieldset ÔªËØ¿É½«±íµ¥ÄÚµÄÏà¹ØÔªËØ·Ö×é¡£
<fieldset> ±êÇ©½«±íµ¥ÄÚÈݵÄÒ»²¿·Ö´ò°ü£¬Éú³ÉÒ»×éÏà¹Ø±íµ¥µÄ×ֶΡ£
µ±Ò»×é±íµ¥ÔªËطŵ½ <fieldset> ±êÇ©ÄÚʱ£¬ä¯ÀÀÆ÷»áÒÔÌØÊⷽʽÀ´ÏÔʾËüÃÇ£¬ËüÃÇ¿ÉÄÜÓÐÌØÊâµÄ±ß½ç¡¢3D Ч¹û£¬»òÕßÉõÖÁ¿É´´½¨Ò»¸ö×Ó±íµ¥À´´¦ÀíÕâÐ©ÔªËØ¡£
<fieldset> ±êǩûÓÐ±Ø ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ