Ò»¶ÎʵÏÖ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>
Ïà¹ØÎĵµ£º
/// <summary>
/// È¥µôËùÓÐHTML±êÇ©
/// </summary>
/// <param name="strHtml">Ô´×Ö·û´®</param> ......
window ->perferences->myeclipse->Files and Eidtors ->javaScript
ÒòΪMyEclipse±£´æjsÎļþ£¬ÖÐÎÄ»á³öÏÖÂÒÂë¡£°´ÉÏÊö·½·¨½«±àÂë¸ñʽ¸Ä³ÉÖÐÎĵıàÂë
ʵÔÚ²»Ðоʹò¿ªÔÏȵÄÔ¸åjsµÄÎļþ£¬¸´ÖÆ£¬Õ³Ìù¡£¡£¡£ ......
Èç¹ûAJAX¼ÓÔصÄÊý¾ÝÊÇÒ»¸öHTMLƬ¶Î£¬¶øÇÒÕâ¸öHTMLƬ¶Î»¹°üº¬½Å±¾<script>¿é£¬ÄÇôÔÚÄã°ÑÕâÊý¾ÝxmlHttp.responseTextÓÃinnerHTML·½·¨²åÈëµ½µ±Ç°ÎĵµÒ»¸öÔªËØÖУ¬Äã»á·¢ÏÖAJAX¼ÓÔØ»ØÀ´µÄ½Å±¾¸ù±¾Ã»ÓÐÖ´ÐС£ÕâÊÇAJAX¿ª·¢Öкܳ£¼ûµÄÎÊÌ⣬Èç¹ûÄã²»ÊÇÒ»Ö±ÔÚÓÃJavaScript¿ò¼Ü×ö¿ª·¢£¬ÏàÐÅÄãÔç¾Í·¢ÏÖÕâ¸öÎÊÌâÁË¡£±¾ÎÄ·ÖÎöÁËÁ ......
ÎÒÃÇÌᳫ¾¡¿ÉÄÜʹÓÃCSS£¬¶øÇÒÎÒÃdz£³£ÄÜ×öµ½ÕâÒ»µã¡£ÏÖ´úä¯ÀÀÆ÷ÓкܺõÄCSSÖ§³Ö-ÕâÎÞÒÉ×ã¹»ºÃÈÃÄãʹÓÃCSSÀ´¿ØÖƲ¼¾ÖºÍ°æÃæÉè¼Æ¡£µ«ÊÇÓÐʱºò£¬Ä³Ð©ÍøÒ³ÔªËØÔÚ²»Í¬µÄä¯ÀÀÆ÷»á³öÏÖ²»Í¬¡£
Èç¹ûÄã²»ÖªµÀÔÒò£¬²»Òª¹ýÓÚµ£ÐÄ£¬ÇëÑо¿CSS¹æÔò²¢²é¿´ÕâƪÎÄÕÂ:ʹÓÃCSSÀ´ÐÞÕýÒ»ÇÐ: 20 +³£¼û´ ......
°¦£¬ºÜ¾ÃÒÔǰдµÄ´úÂ룬ɹһɹ£¬¹À¼Æ×Ô¼º¿´¶¼¿´²»¶®ÁË£¬:(
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" ......