[ÌáÎÊ]һСÎÊÌâ¡£javascript Ñ¡ÏÇл»
HTML code:
</html>
<head>
<script type="text/javscript" language="javascript">
function setTab(thisObj,Num)
{
var tabObj = thisObj.parentNode.id;
var tabList = document.getElementById(tabObj).getElementsByTagName("li");
for(i=0;i<tabList.length;i++)
{
if(i==Num)
{
thisObj.className="mouseOver";
document.getElementById(tabObj+"_Content"+i).className = "active";
}
else
{
tabList[i].className="mouseOut";
document.getElementById(tabObj+"_Content"+i).className="hide";
}
}
}
</script>
<style>
.nTab{
width:790px;
height:180px;
margin-top:5px;
}
.tabTitle{
width:100%;
height:30px;
overflow:hidden;
}
.tabTitle ul{
margin-top:2px;
list-style:none;
}
.tabTitle li{
width:90px;
height:28px;
padding:6px 0px 0px 0px;
cursor:hand;
font-weight:bold;
text-align:center;
display:inline-block;
float:left;
}
.tabTitle li.mouseOver{
color:White;
background-color:Green;
}
.tabTitle li.mouseOut{
color:white;
}
.tabContent{
width:100%;
height:auto;
overflow:visible;
padding:8px;
clear:both;
float:left;
}
.tabContent .active{
diplay:block;
}
.tabContent .hide{
display:none;
}
</style>
</h
Ïà¹ØÎÊ´ð£º
ÓÃjavascript¼ÓÔØÒ³ÃæÊ±Ö¸ÏòÒ»¸öÃèµã¡£ÒÑÖªÈçºÎͨ¹ýÁ´½Ó×ö³ÉÃèµãµÄ£¬¿ÉÊÇÏëÈÃÒ³Ãæ¼ÓÔØÊ±Ö±½ÓÖ¸Ïò²»ÐèÒªµã»÷Á´½Ó¡£
1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" &quo ......
ÓÃjavascript½«Êý¾Ýµ¼³öµ½Îı¾Îļþ(txt)ÖÐ..
Ê×ÏȼÙÉèÒѾÓÐÁËÐèҪдÈëµÄÎı¾ÄÚÈÝ var txtContent ="ÐèҪдÈëµÄÄÚÈÝ";
ÏÖÔÚÐèÒªÓÃjavascript½«ÄÚÈÝдÈëtxtÎļþ(Õâ¸ötxtÎļþ²»´æÔÚ,ÐèÒª´´½¨)ÖÐ,È»ºóдºÃÖ ......
ÎÒÍêÈ«²»¶®µÃµ÷ÊÔ°¡£¬ËùÒÔÏëÇëÄǸö¸ßÊִͽÌһϰ¡¡£Ð»Ð»£¡
ÊÖ¶¯£¬
´úÂëǰºó¼Óalert("sdfds")¿´ÓÐûÓÐÖ´ÐÐ
ÔÙÒ»ÖÖ¾ÍÊÇÄ£¿éɾ³ý·¨£¬É¾³ýÁË¿´¿´»¹ÓÐûÓдíÎó
ÎÒÓùýÊÇIE8°¡£¬¶Ô²»Æð£¬ÎÒÎʵÃÓеãÃÔºýÁ ......
˽éÉܼ¸¸öºÅµãµÄJAVASCRIPT¶ÔÏóÊôÐÔµÄÎĵµÑ½£¡
function test()
{
this.prote=function{return "ddd"};
}
.........................
½¨Á¢Ò»¸öjsÎĵµ£¬»ñµÃÒ»¸ö¶ÔÏó,¡£Ò»Ï£¬¾Í ......
ÀýÈç:
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table">
<tr>
& ......