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

Ò»¶ÎʵÏÖHTMLÒ³ÃæÄÚ¶¨ÆÚ´¥·¢Ê¼þµÄJavaScript´úÂë

avaScriptͨ¹ýÄÚÖõÄsetTimeoutº¯ÊýÀ´Íê³ÉÒ³ÃæÄڵĶ¨Ê±¼ì²é£¬Ò²ÊǺܾÃÒÔǰдµÄ¶«Î÷ÁË¡£
Ö®ËùÒÔÏëÆðËüÀ´£¬ÊÇÒòΪÔÚºÍÏîÄ¿×éÆäËû³ÉԱ˵¸ÃÊÂÇéµÄʱºò£¬±ðÈ˾¹È»³°Ð¦ÎÒ˵ÊÇÉϸöÊÀ¼ÍµÄ´úÂ룬ÏÖÔÚ¶¼ÓÃWEB2.0ÁË¡£
<script language="JavaScript" type="text/JavaScript">
//Ôö¼ÓϵͳɨÃèʱ¼ä
var v_count = 0;
var v_workNo = '';
var v_interval = IntervalTime*1000*60;
if (v_interval==null || v_interval==0)
{
v_interval=Default_Value
}
function checkTimeout()
{
checkShowWindow();
setTimeout("checkTimeout()",v_interval);
}
function checkShowWindow()
{
if (returnValue1>0)
{
window.open("./AlertTime.jsp?staffNo="+v_workNo,"¹«¸æ±ã¼ãÌáÐÑÒ³
Ãæ","top=100,left=100,width=170,height=220,toolbar=no,location=no,status=no,menubar=no,scrollbars=no");
}
}
function checkTime()
{
if(v_count == 0)
{
setTimeout("checkTimeout()",v_interval);//
}
v_count++;
}
//Ôö¼ÓϵͳɨÃèʱ¼ä
checkTime();
checkShowWindow();
</script>


Ïà¹ØÎĵµ£º

È¥³ý×Ö·û´®ÖеÄHtml´úÂë

        /// <summary>
        /// È¥µôËùÓÐHTML±êÇ©
        /// </summary>
        /// <param name="strHtml">Ô´×Ö·û´®</param> ......

myeclipse¸Ä±äjavascript±àÂë¸ñʽ

window ->perferences->myeclipse->Files and Eidtors ->javaScript
ÒòΪMyEclipse±£´æjsÎļþ£¬ÖÐÎÄ»á³öÏÖÂÒÂë¡£°´ÉÏÊö·½·¨½«±àÂë¸ñʽ¸Ä³ÉÖÐÎĵıàÂë
ʵÔÚ²»Ðоʹò¿ªÔ­ÏȵÄÔ­¸åjsµÄÎļþ£¬¸´ÖÆ£¬Õ³Ìù¡£¡£¡£ ......

Ö´ÐÐAJAX·µ»ØHTMLƬ¶ÎÖеÄJavaScript½Å±¾

Èç¹ûAJAX¼ÓÔصÄÊý¾ÝÊÇÒ»¸öHTMLƬ¶Î£¬¶øÇÒÕâ¸öHTMLƬ¶Î»¹°üº¬½Å±¾<script>¿é£¬ÄÇôÔÚÄã°ÑÕâÊý¾ÝxmlHttp.responseTextÓÃinnerHTML·½·¨²åÈëµ½µ±Ç°ÎĵµÒ»¸öÔªËØÖУ¬Äã»á·¢ÏÖAJAX¼ÓÔØ»ØÀ´µÄ½Å±¾¸ù±¾Ã»ÓÐÖ´ÐС£ÕâÊÇAJAX¿ª·¢Öкܳ£¼ûµÄÎÊÌ⣬Èç¹ûÄã²»ÊÇÒ»Ö±ÔÚÓÃJavaScript¿ò¼Ü×ö¿ª·¢£¬ÏàÐÅÄãÔç¾Í·¢ÏÖÕâ¸öÎÊÌâÁË¡£±¾ÎÄ·ÖÎöÁËÁ ......

12ÖÖJavascript½â¾ö³£¼ûä¯ÀÀÆ÷¼æÈÝÎÊÌâµÄ·½·¨


    ÎÒÃÇÌᳫ¾¡¿ÉÄÜʹÓÃCSS£¬¶øÇÒÎÒÃdz£³£ÄÜ×öµ½ÕâÒ»µã¡£ÏÖ´úä¯ÀÀÆ÷ÓкܺõÄCSSÖ§³Ö-ÕâÎÞÒÉ×ã¹»ºÃÈÃÄãʹÓÃCSSÀ´¿ØÖƲ¼¾ÖºÍ°æÃæÉè¼Æ¡£µ«ÊÇÓÐʱºò£¬Ä³Ð©ÍøÒ³ÔªËØÔÚ²»Í¬µÄä¯ÀÀÆ÷»á³öÏÖ²»Í¬¡£
    Èç¹ûÄã²»ÖªµÀÔ­Òò£¬²»Òª¹ýÓÚµ£ÐÄ£¬ÇëÑо¿CSS¹æÔò²¢²é¿´ÕâƪÎÄÕÂ:ʹÓÃCSSÀ´ÐÞÕýÒ»ÇÐ: 20 +³£¼û´ ......

Ò»¸ö´øCheckBoxµÄÊ÷ÐÎĿ¼µÄµÝ¹éËã·¨£¨javascript£©


°¦£¬ºÜ¾ÃÒÔǰдµÄ´úÂ룬ɹһɹ£¬¹À¼Æ×Ô¼º¿´¶¼¿´²»¶®ÁË£¬:(
var head="display:''"
img_close=new Image()
img_close.src="/sysManage/images/f.gif"
img_open=new Image()
img_open.src="/sysManage/images/fo.gif"
img3=new Image()
img3.src="/sysManage/images/e.gif" ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ