JavaScriptÓöµ½µÄСÎÊÌâ - .NET¼¼Êõ / ASP.NET
ÎÒÏë¸ù¾ÝÐèÒªÒþ²Ø»òÕßÏÔʾһ¸ö<table>ÖеÄÒ»¸ö<td>µÄÄÚÈÝ¡£
ËùÒÔ£¬ÎÒдÁËÒ»¸öÕâÑùµÄº¯ÊýhideOrShow(id)
id¾ÍÊÇÕâ¸ö<td>µÄid£¨ <td align="center" id="cellAddNewOption" style="display:none"> £©£»
µÚÒ»´ÎÊÇÕâÑùµÄ£º
JScript code:
// Çл»¡°¿ÉÑ¡ÏîÌí¼ÓÁÐ±í¡±µÄÏÔʾ״̬
function hideOrShow(id) {
if (document.getElementById(id).style.display == "none") {
document.getElementById(id).style.display = "table-cell";
}
else {
document.getElementById(id).style.display = "none";
}
}
µ«ÊÇ£¬Ö´ÐÐʱ³ö´íÁË£¬document.getElementById(id)ÎÞ·¨½âÊÍ£¬¸ù±¾ÕÒ²»µ½tdÕâ¸ö±ê¼Ç¡£ÎªÊ²Ã´£¿
µÚ¶þ´ÎÊÇÕâÑùµÄ£º
[code=JScript]
function hideOrShow(id) {// alert(document.getElementById(id)); //null
var tdArray = document.getElementsByTagName('td'); //alert(tdArray[77].id == id);//false;
for (var i = 0; i < tdArray.length; i++) {
if ( tdArray[i].id.toString() == id.toString()) { // һֱûִÐе½
if (tdArray[i].style.display == "none") {alert('4');
tdArray[i].style.display == "table-cell"
&
Ïà¹ØÎÊ´ð£º
function CheckOpwd(){//ÑéÖ¤Óû§Ãû
var pwd=document.all.txtOpwd;
var div1=document.getElementById("divPwd");
if (pwd.value=="")
{
......
±¾È˹¤×÷¾ÑéÒ»ÄêÒÔÉÏ
ÊìϤasp.net
ÊìϤjavascript
ÊìϤCss
ÊìϤajax
ÊìϤsqlserver2005
ÓÐÒ»ÄêµÄÏîÄ¿¾Ñé
¾ßÌåÏîÄ¿ºÍÆäËûµÄ¾Í²»ÔÚÕâдÁË
ÓÐÒâÕßÁªÏµ£º
QQ:359233910
ÒýÓÃ
±¾È˹¤×÷¾ÑéÒ»ÄêÒÔÉÏ
ÊìϤasp ......
±¾ÈËÊDzËÄñÒ»¸ö£¬Æ½Ê±Òª×öÉúÒ⣬µ«ÊÇÕÒÁ˺ܶàÈË×öÍøÕ¾£¬¾ù±»ÆÁË¡£×öµÃ²»Èý²»ËÄ£¬ÏÖÔÚ¾öÐÄ×Ô¼ºÀ´×öÒ»¸ö£¬ÒÑѧϰASP.NETÏà¹ØµÄÍøÒ³ÖÆ×÷֪ʶ£¬ÓÐDW»ù´¡£¬¿ÉÒÔ˵ÊÇÄ¿Ç°Ö»ÓÐÀíÂÛ֪ʶ£¬µ«ÊÇÔÚʵ¼Ê¾ßÌå²Ù×÷µÄʱºò£¬×ÜÊÇÓöµ ......
ÇóÒ»¸öjavascript½Å±¾..
µ±µã»÷Õâ¸ö<a>Ìí¼Ó¸½½ü</a>Á´½Óʱ¾Í»áÌí¼Ó¶àÒ»ÐÐÉÏ´«¿òºÍ°´Å¥,ºÍ×îºóÒ»¸öÅԱ߻áÏÔʾ"È¡Ïû"µÄÁ´½Ó,µã»÷Õâ¸öÈ¡Ïû¾Í»áÈ¥µô×îºóÒ»ÐÐ,Ò»¸öÕâ¸ö½Å±¾Ôõôд?Íò·Öлл..
Ò ......