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

£¨Ñ§Ï°±Ê¼Ç£©JavaScriptÖе÷Óú¯ÊýµÄÀ¨ºÅÎÊÌâ

 ÎÒÔÚjsÖж¨ÒåÁËÒ»¸öº¯Êý£º
 function closeCodeList()
{
try
{
showFistIndex = 0;
arrayBmCode = null;
if(document.all("spanCode").style.display=='')
{
var disFlag=1;
}
document.all("spanCode").style.display='none';
try{if(disFlag)oldFieldKey.focus();}catch(ex){}
}
catch(ex)
}
È»ºóµ÷ÓõÄʱºò
Field.onblur=closeCodeList();
ÔËÐÐʱÌáʾ£º“´íÎó£ºÉÐδʵÏÖ”
ÎÒ°ÑÀ¨ºÅÈ¥µôºóÓÖÄÜÕý³£µ÷Óã¬ÎªÊ²Ã´ÕâÀïµ÷Óú¯Êý²»ÄÜÓÃÀ¨ºÅÄØ£¿
·¢Ìûºó£¬µÃµ½µÄ»Ø´ðÈçÏ£º
Ò»£ºfun() ÊÇ º¯Êýµ÷ÓõÄÒâ˼, µÃµ½µÄÊÇ fun()µ÷ÓúóµÄ·µ»ØÖµ
º¯ÊýµÄ¶¨ÒåÊÇ function fun(){..} »òÕß var fun = fnction(){}
Field.onblurÆÚ´ýµÄÊǺ¯Êý¾ä±ú£¬¼´ fun£¬¶ø²»Êǵ÷ÓÃfun()ºóµÄ·µ»ØÖµ(³ý·Ç·µ»ØµÄÒ²ÊǺ¯Êý¾ä±ú)
¶þ£ºonblurÊÇÒ»¸öʼþ£¬Ð´³ÉÕâÑùÄã¾ÍÃ÷°×ΪʲôÁË
Field.onblur = function(){
try
{
showFistIndex = 0;
arrayBmCode = null;
if(document.all("spanCode").style.display=='')
{
var disFlag=1;
}
document.all("spanCode").style.display='none';
try{if(disFlag)oldFieldKey.focus();}catch(ex){}
}
catch(ex)
}

×ܽ᣺
onblurÊÇÒ»¸öʼþ£¬Èç¹ûÓÃfun()µÄ»°£¬Ï൱ÓÚ¶ÔÕâ¸öʼþ¸³Öµ£¬ÕâÑùÏÔÈ»ÊÇ´íÎóµÄ¡£Òò´ËÒªÓÃfun£¬¸øÕâ¸öʼþÒ»¸öº¯Êý¾ä±ú


Ïà¹ØÎĵµ£º

href="javascript:void(0);"ÔÚIE6Öн«¶ÏÒì²½ÇëÇó

HtmlÒ³
<a href="javascript:void(0);" mce_href="javascript:void(0);" ><img id="SubmitFeedback" src="/images/comment_btn.gif" mce_src="images/comment_btn.gif" /></a>
½Å±¾
$(document).ready(function() {
alert("Ò³ÃæË¢ÐÂ&q ......

javascript cookies ±£´æ¡¢»ñÈ¡ºÍɾ³ý

CookiesÊÇÒ»ÖÖÄܹ»ÈÃÍøÕ¾·þÎñÆ÷°ÑÉÙÁ¿Êý¾Ý´¢´æµ½¿Í»§¶ËµÄÓ²ÅÌ»òÄڴ棬»òÊÇ´Ó¿Í»§¶ËµÄÓ²Å̶ÁÈ¡Êý¾ÝµÄÒ»ÖÖ¼¼Êõ¡£CookiesÊǵ±Äãä¯ÀÀijÍøվʱ£¬ÓÉWeb·þÎñÆ÷ÖÃÓÚÄãÓ²ÅÌÉϵÄÒ»¸ö·Ç³£Ð¡µÄÎı¾Îļþ£¬Ëü¿ÉÒԼǼÄãµÄÓû§ID¡¢ÃÜÂë¡¢ä¯ÀÀ¹ýµÄÍøÒ³¡¢Í£ÁôµÄʱ¼äµÈÐÅÏ¢¡£µ±ÄãÔÙ´ÎÀ´µ½¸ÃÍøվʱ£¬Íøվͨ¹ý¶ÁÈ¡Cookies£¬µÃÖªÄãµÄÏà¹ØÐÅÏ¢£¬¾Í ......

JavaScript δ½áÊøµÄ×Ö·û´®³£Á¿

JavaScript δ½áÊøµÄ×Ö·û´®³£Á¿
×öJavaScriptµÄʱºò,·¢ÏÖÀÏÊdzöÏÖ´íÎ󣺓δ½áÊøµÄ×Ö·û´®³£Á¿”.
×Ô¼ºÕÒÁËÏÂÓ¦¸ÃÊÇ´«²ÎÊýµÄʱºò,ÓÐÌØÊâ×Ö·ûÒýÆðµÄ.
ÍøÉÏÒ²ÕÒÁËÏÂ,Ò²Óкöà³öÏÖÕâÖÖÇé¿ö.×öÏÂ×ܽá,ÒÔ·½±ãÒÔºó²éÔÄ.
1.JAVASCRIPTÒýÓÃʱ,ʹÓõÄ×Ö·ûÓïÑÔ²»Ò»ÖÂ.
±ÈÈç:<script type=”text/javascrip ......

´«ÖDz¥¿ÍJavaѧϰ JavaScript¼ÓÇ¿

ÎÒ½ñÌìѧϰÁËÙ¡ÀÏʦ½²µÄJavaScript½âÎöDomÎĵµµÄ֪ʶ£º
Ò»¡¢        ½Úµã·ÖΪ3ÖÖÀàÐÍ£¬ÔªËؽڵ㣬ÊôÐԽڵ㣬Îı¾½Úµã
¶þ¡¢        ²éÕҽڵ㣺
l       js´úÂë²»ÄÜдÔÚbodyÔªËصÄÇ°Ã棬js ´úÂëдÔÚ <head> ½ ......

ÔÚjavascriptÖÐ ¶ÁÈ¡ struts2 s:datetimepickerÖеÄÖµ

ÎÒ¿ªÊ¼×öÕâ¸öµÄʱºò
»ñÈ¡ s:datetimepickerÀïÃæµÄÖµÏñÍù³£Ò»Ñù document.forms[0].elemets["date"].value;
µ«ÊÇÔÚ IEä¯ÀÀÆ÷ÖÐ×ÜÊDZ¨Ò»¸ö  value Õâ¸ö¶ÔÏó²»´æÔÚ
µ«ÊÇ ÔÚ »ðºüä¯ÀÀÆ÷ÖÐʹÓà document.forms[0].elemets["date"].value; ¿ÉÒÔ
ºóÀ´µ½¹ÙÍøÉϲéÁËһϣ¬
 
s:datetimepickerÖеÄÖµÔÚjavascriptÖÐÊÇ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ