PHP¼òµ¥µÄ»¬¶¯²Ëµ¥ÖÆ×÷_PHPÓ¦ÓÃ_ºÚ¿Í·ÀÏßÍø°²·þÎñÆ÷ά»¤»ùµØ--Powered by WWW.RONGSEN.COM.CN

PHP¼òµ¥µÄ»¬¶¯²Ëµ¥ÖÆ×÷

×÷ÕߣººÚ¿Í·ÀÏßÍø°²PHPά»¤»ùµØ À´Ô´£ººÚ¿Í·ÀÏßÍø°²PHPά»¤»ùµØ ä¯ÀÀ´ÎÊý£º0

±¾Æª¹Ø¼ü´Ê£ºÖÆ×÷²Ëµ¥¼òµ¥Array
ºÚ¿Í·ÀÏßÍø°²ÍøѶ£º¡¡»¬¶¯²Ëµ¥ÊÇÒ»Öֽϳ£ÓõIJ˵¥ÐÎʽ£¬ÔÚÂÞÁжþ¼¶·ÖÀàµÄ³¡ºÏϹ㷺ʹÓá£ÆäÌصãÊÇ´úÂëÁ¿¼«Ð¡£¬Êý¾ÝÃèÊö¼ò½à¡£¡¡¡¡±¾ÀýʹÓÃÎÞÏß±í¸ñ£¬ÒÔÀàµÄÊéд·½Ê½±íÊö¡£¡¡¡¡±¾´úÂë¿É×ÔÓÉÀ©É¢¡£---><style>t...

¡¡»¬¶¯²Ëµ¥ÊÇÒ»Öֽϳ£ÓõIJ˵¥ÐÎʽ£¬ÔÚÂÞÁжþ¼¶·ÖÀàµÄ³¡ºÏϹ㷺ʹÓá£ÆäÌصãÊÇ´úÂëÁ¿¼«Ð¡£¬Êý¾ÝÃèÊö¼ò½à¡£
¡¡¡¡±¾ÀýʹÓÃÎÞÏß±í¸ñ£¬ÒÔÀàµÄÊéд·½Ê½±íÊö¡£
¡¡¡¡±¾´úÂë¿É×ÔÓÉÀ©É¢¡£

--->
<style>
table {font-size = 9pt}
td {height = 20px}
</style>
<body>
<span id="menus"></span>
<span id="view"></span>
</body>

<script for=pad event=onclick>
// ´óÀà½Úµãµã»÷ÏìÓ¦
for(var i=1;i<this.parentElement.rows.length;i+=2)
this.parentElement.rows[i].style.display = "none";
this.parentElement.rows[this.rowIndex+1].style.display=´block´;
view.innerHTML = this.v1 +":"+ this.v2; // ¸ù¾Ý´óСÀà×ÔÐй¹ÔìÏàÓ¦¶¯×÷
</script>

<script for=bar event=onclick>
// СÀà½Úµãµã»÷ÏìÓ¦
view.innerHTML = this.v1 +":"+ this.v2; // ¸ù¾Ý´óСÀà×ÔÐй¹ÔìÏàÓ¦¶¯×÷
</script>

<script>
/**
* ²úÉú²Ëµ¥µÄhtml´úÂë´®
* Èë¿Ú²ÎÊýΪ²Ëµ¥Ä¬ÈÏ´ò¿ªµÄ´óÀàºÅ
*/
function menu(n) {
this.ar = new Array(
/**
* ²ÎÊýÊý×é
* ÁÐ1£º´óÀà
* ÁÐ2£ºÐ¡Àà
* ÁÐ3£º±êÌâ
*/
new Array(1,0,"´óÀàÒ»"),
new Array(1,1,"СÀàÒ»"),
new Array(1,2,"СÀà¶þ"),
new Array(2,0,"´óÀà¶þ"),
new Array(2,1,"СÀàÒ»"),
new Array(2,2,"СÀà¶þ"),
new Array(2,3,"СÀàÈý"),
new Array(3,0,"´óÀàÈý"),
new Array(3,1,"СÀàÒ»"),
new Array(3,2,"СÀà¶þ"),
new Array(4,0,"´óÀàËÄ"),
new Array(4,1,"СÀàÒ»"),
new Array(4,2,"СÀà¶þ"),
new Array(4,3,"СÀàÈý")
);
this.width =120;
this.bgcolor = "#f0f0f0";
this.bordercolorlight = "#c0c0c0";
this.bordercolordark = "#FFFFFF";
this.tr_bgcolor = "#d0d0d0";
var s = "<table border=1 align=center width="+this.width+" bgcolor="+this.bgcolor+" bordercolorlight="+this.bordercolorlight+" bordercolordark="+this.bordercolordark+" CELLPADDING=0 CELLSPACING=0>"
for(var i=0;i<this.ar.length;i++) { // ¹¹Ôì²Ëµ¥µÄhtml½á¹¹£¬ÆäÖн«´óСÀà±àºÅ×÷Ϊ×Ô¶¨Òå²ÎÊý£¬ÒÔ±ãʼþÏìӦʱʹÓá£
if(this.ar[i][1] == 0) {
if(i > 0)
s += "</table></td></tr>";
var vk = this.ar[i][0]==n?"block":"none";
s += "<tr id=´pad´ bgcolor="+this.tr_bgcolor+" v1="+this.ar[i][0]+" v2="+this.ar[i][1]+"><td align=center>"+this.ar[i][2]+"</td></tr><tr style=´display:"+vk+"´><td><table width=100%>";
}else
s += "<tr><td id=´bar´ v1="+this.ar[i][0]+" v2="+this.ar[i][1]+">"+this.ar[i][2]+"</td></tr>";
}
s += "</table></td></tr></table>";
return s;
}

/*** ´´½¨²Ëµ¥ ***/
menus.innerHTML = menu(4);
</script>

 

    ºÚ¿Í·ÀÏßÍø°²·þÎñÆ÷ά»¤·½°¸±¾ÆªÁ¬½Ó£ºhttp://www.rongsen.com.cn/show-13606-1.html
Íøվά»¤½Ì³Ì¸üÐÂʱ¼ä:2012-03-30 04:37:15  ¡¾´òÓ¡´ËÒ³¡¿  ¡¾¹Ø±Õ¡¿
ÎÒÒªÉêÇë±¾Õ¾£ºNµã | ºÚ¿Í·ÀÏß¹ÙÍø |  
רҵ·þÎñÆ÷ά»¤¼°Íøվά»¤ÊÖ¹¤°²È«´î½¨»·¾³£¬ÍøÕ¾°²È«¼Ó¹Ì·þÎñ¡£ºÚ¿Í·ÀÏßÍø°²·þÎñÆ÷ά»¤»ùµØÕÐÉ̽øÐÐÖУ¡QQ:29769479

footer  footer  footer  footer