JavaScript¡¡ÊµÏÖË«ÏòÑ¡ÔñÁбí¿ò
<html>
<head>
<script language="JavaScript">
<!--Ò³ÃæÔØÈëʱ³õʼ»¯ËùÓÐδѡÔñµÄÊý¾Ý-->
function loadAllUnselected()
{
var unassignedTable=document.getElementById("unassignedTable");
var rowsUnselected=unassignedTable.childNodes[0].childNodes;
document.getElementById("unselected").value="";
for(var i=0;i<rowsUnselected.length;i++)
{
if(rowsUnselected[i].tagName=="TR" && rowsUnselected[i].getAttribute("id")!='')
{
document.getElementById("unselected").value=
document.getElementById("unselected").value+'||'+rowsUnselected[i].getAttribute("id");
}
}
var assignedTable=document.getElementById("assignedTable");
var rowsSelected=assignedTable.childNodes[0].childNodes;
for(var i=0;i<rowsSelected.length;i++)
{
if(rowsSelected[i].tagName=="TR" && rowsSelected[i].getAttribute("id")!='')
{
document.getElement
Ïà¹ØÎĵµ£º
function getHeight(){
var yScroll;
if (window.innerHeight && window.scrollMaxY) {
yScroll = window.innerHeight + window.scrollMaxY;
} else if (document.body.scrollHeight > document.body.offs ......
function getInfo()
{
var s = "";
s += " ÍøÒ³¿É¼ûÇøÓò¿í£º"+ document.body.clientWidth+"\n";
s += " ÍøÒ³¿É¼ûÇøÓò¸ß£º"+ document.body.clientHeight+"\n";
s += " ÍøÒ³¿É¼ ......
<a href="#" onclick="ChildNode(this);">aaa</a>Òª¸ÄΪ
<a href="#" onclick="ChildNode(event);">aaa</a>
ÎÞ·¨È¡µÃthis¶ÔÏó£¬ÒªÓÃÒÔÏ·½·¨À´È¡µÃ¡£
function ChildNode(e)
{
var evt = e ? e : (window.event ? window.event : null); //´Ë·½·¨ÎªÁËÔÚfirefoxÖеļæÈÝ
var node = evt.srcEl ......
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name=" ......
´´½¨Ò»¸öÈÕÆÚ¶ÔÏó£º
var objDate=new Date([arguments list]);
²ÎÊýÐÎʽÓÐÒÔÏ£µÖÖ£º
new Date("month dd,yyyy hh:mm:ss");
new Date("month dd,yyyy");
new Date(yyyy,mth,dd,hh,mm,ss);
new Date(yyyy,mth,dd);
new Date(ms); ......