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
Ïà¹ØÎĵµ£º
ҪʵÏÖÕâ¸ö¹¦ÄܹؼüÊÇÒªÀí½â¿éµÄdisplayÊôÐÔ¡£Ò»¸ö¿éµÄdisplayÊôÐÔÉèΪnone£¬¾ÍÏ൱ÓÚÕâ¸ö¿é²»´æÔÚ¡£ËùÒÔ½«ÒªÏÔʾµÄ¶à¸ö¿éµÄdisplayÊôÐÔÉèΪnone,ÔÙ¸ù¾ÝÐèÒª½«ÒªÏÔʾµÄ¿éµÄdisplayÊôÐÔÉèΪblock¾Í¿ÉÒÔ×ö³ö±êǩҳЧ¹ûÁË¡£
£¨1£© ½¨±êÇ©ÌâÒÔ¼°¸÷±êÇ©ÌâËù¶ÔÓ¦µÄÏÔʾÄÚÈÝ£º
<span id="span1 ......
´´½¨RegExp¶ÔÏóʵÀýµÄÁ½ÖÖ·½Ê½
1.ʹÓÃRegExp¶ÔÏóµÄÏÔʾ¹¹Ô캯Êý,Ó﷨Ϊ:new RegExp("pattern")[,"flags"];
2.ʹÓÃRegExp¶ÔÏóµÄÒþʾ¹¹Ô캯Êý,Ó﷨Ϊ:/pattern/flags;
3.flagsΪÒÔϱêÖ¾×Ö·ûµÄ×éºÏ
(1).g×÷È«¾Ö±êÖ¾,Èç¹ûûÓÐ,Æ¥ÅäµÚÒ»¸ö
(2). i ºöÂÔ´óСд
(3).m ¶àÐбêÖ¾
Õý ......
function getHeight(){
var yScroll;
if (window.innerHeight && window.scrollMaxY) {
yScroll = window.innerHeight + window.scrollMaxY;
} else if (document.body.scrollHeight > document.body.offs ......
ʱ¼ä: 2009-9-02 - ·ÖÀà: Html+CSS, JavaScript - ÆÀÂÛ: 0 - ÔĶÁ: 70 ´Î
CSS¸úJavaScript¿ª·¢ÖУ¬×îÁî´ó¼ÒÍ·ÌÛµÄÎÊÌâ¾ÍÊÇä¯ÀÀÆ÷¼æÈÝÐÔÁË£¬ËäÈ»ºÜ¶àÎÄÕÂÓÐÕâ·½ÃæµÄÎÄÕ£¬µ«ÒÀÈ»Èúܶ࿪·¢ÈËÔ±ÔÎͷתÏò£¬¶øÇÒÒ²²»¹»È«Ãæ¡£ÕâÆªÎÄÕ£¬½«È«ÃæÊÕ¼¯cssºÍjavascriptÔÚ¸÷ÖÖä¯ÀÀÆ÷ϵļæÈÝÐÔ±¨¸æ£¬Ò²ÆÚ´ý¸÷λ²»¶Ï²¹³ä¡£
Ó ......
/**
* È¡µÃ×Ö·û´®µÄ×Ö½Ú³¤¶È
*/
´úÂë
function strlen(str)
{
var i;
var len;
len = 0;
for (i=0;i<str.length;i++)
{
if (str.charCodeAt(i)>255) len+=2; else len++;
}
return l ......