Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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"
&


Ïà¹ØÎÊ´ð£º

ÔÚasp.netÀïÃæ½Å±¾³ö´í - .NET¼¼Êõ / ASP.NET

function CheckOpwd(){//ÑéÖ¤Óû§Ãû
var pwd=document.all.txtOpwd;

var div1=document.getElementById("divPwd");

if (pwd.value=="")
{
......

asp.net³ÌÐòÔ±ÇóÖ° - .NET¼¼Êõ / ·Ç¼¼ÊõÇø

±¾È˹¤×÷¾­ÑéÒ»ÄêÒÔÉÏ
ÊìϤasp.net
ÊìϤjavascript
ÊìϤCss
ÊìϤajax
ÊìϤsqlserver2005
ÓÐÒ»ÄêµÄÏîÄ¿¾­Ñé
¾ßÌåÏîÄ¿ºÍÆäËûµÄ¾Í²»ÔÚÕâдÁË
ÓÐÒâÕßÁªÏµ£º
QQ:359233910
ÒýÓÃ
±¾È˹¤×÷¾­ÑéÒ»ÄêÒÔÉÏ
ÊìϤasp ......

ÇóÖú£ºÕÒASP.NETÍøÒ³ÖÆ×÷¸ßÊÖ£¬Óб¨³ê¡£

±¾ÈËÊDzËÄñÒ»¸ö£¬Æ½Ê±Òª×öÉúÒ⣬µ«ÊÇÕÒÁ˺ܶàÈË×öÍøÕ¾£¬¾ù±»Æ­ÁË¡£×öµÃ²»Èý²»ËÄ£¬ÏÖÔÚ¾öÐÄ×Ô¼ºÀ´×öÒ»¸ö£¬ÒÑѧϰASP.NETÏà¹ØµÄÍøÒ³ÖÆ×÷֪ʶ£¬ÓÐDW»ù´¡£¬¿ÉÒÔ˵ÊÇÄ¿Ç°Ö»ÓÐÀíÂÛ֪ʶ£¬µ«ÊÇÔÚʵ¼Ê¾ßÌå²Ù×÷µÄʱºò£¬×ÜÊÇÓöµ ......

¼±ÇóÒ»¸öjavascript½Å±¾.. - Web ¿ª·¢ / ASP

ÇóÒ»¸öjavascript½Å±¾..
µ±µã»÷Õâ¸ö<a>Ìí¼Ó¸½½ü</a>Á´½Óʱ¾Í»áÌí¼Ó¶àÒ»ÐÐÉÏ´«¿òºÍ°´Å¥,ºÍ×îºóÒ»¸öÅԱ߻áÏÔʾ"È¡Ïû"µÄÁ´½Ó,µã»÷Õâ¸öÈ¡Ïû¾Í»áÈ¥µô×îºóÒ»ÐÐ,Ò»¸öÕâ¸ö½Å±¾Ôõôд?Íò·Öлл..

Ò ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ