欢迎来到天天文库
浏览记录
ID:15432484
大小:37.00 KB
页数:9页
时间:2018-08-03
《jsp网页编程中怎样动态显示时间》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、JSP网页编程中怎样动态显示时间///时间日期函数functionncdatetime(){today=newdate();functioninitarray(){this.length=initarray.arguments.lengthfor(vari=0;i2、e:9pt;fontfamily:宋体'>',today.getyear(),"年",today.getmonth()+1,"月",today.getdate(),"日","","',d[today.getday()+1],"");}///双击滚屏函数varcurrentpos,timer;functioninitialize(){timer=setinterval("scrollwindow()",10);}functionofsc(){cl3、earinterval(timer);}functionscrollwindow(){currentpos=document.body.scrolltop;window.scroll(0,++currentpos);if(currentpos!=document.body.scrolltop)sc();}document.onmousedown=scdocument.ondblclick=initialize///双击滚屏函数结束functionopenscript(url,integralpart,height){varwin=window.open(url,"openscr4、ipt","integralpart='++'integralpart,height="+height+',resizable=1,scrollbars=yes,menubar=well,status=no");}//***********默认设置定义.*********************tpopwait=50;//停留twait毫秒后显示提示.tpopshow=5;//显示tshow毫秒后关闭提示showpopstep=20;popopacity=99;//***************内部变量定义*****************spop=null;curshow=n5、ull;tfadeout=null;tfadein=null;tfadewaiting=null;document.write("');document.write(".cpoptext{backgroundcolor:#ffffff;border:1px#555555solid;font-size:12px;padding-right:4px;padding-left:4px;height:20px;padding-top:2px;padding-bottom:2px;filter:alpha6、(opacity=0)}');document.write('");document.write("
2、e:9pt;fontfamily:宋体'>',today.getyear(),"年",today.getmonth()+1,"月",today.getdate(),"日","","',d[today.getday()+1],"");}///双击滚屏函数varcurrentpos,timer;functioninitialize(){timer=setinterval("scrollwindow()",10);}functionofsc(){cl
3、earinterval(timer);}functionscrollwindow(){currentpos=document.body.scrolltop;window.scroll(0,++currentpos);if(currentpos!=document.body.scrolltop)sc();}document.onmousedown=scdocument.ondblclick=initialize///双击滚屏函数结束functionopenscript(url,integralpart,height){varwin=window.open(url,"openscr
4、ipt","integralpart='++'integralpart,height="+height+',resizable=1,scrollbars=yes,menubar=well,status=no");}//***********默认设置定义.*********************tpopwait=50;//停留twait毫秒后显示提示.tpopshow=5;//显示tshow毫秒后关闭提示showpopstep=20;popopacity=99;//***************内部变量定义*****************spop=null;curshow=n
5、ull;tfadeout=null;tfadein=null;tfadewaiting=null;document.write("');document.write(".cpoptext{backgroundcolor:#ffffff;border:1px#555555solid;font-size:12px;padding-right:4px;padding-left:4px;height:20px;padding-top:2px;padding-bottom:2px;filter:alpha
6、(opacity=0)}');document.write('");document.write("
7、le!=“”){o.ncpop=o.title;o.title=“”};如果(o.ncpop!=SPOP){o.ncpopSPOP=;清除定时器(curshow);清除定时器(tfadeout);清除定时器(tfadein);清除定时器(tfadewaiting);如果(SPOP==null
8、
9、SPOP==“”){ncpoplayer.innerHTML=“”;ncpoplayer。风格。过滤器=“alpha()”;ncpoplayer。过滤器。阿尔法。不透明度:0;}别的{如果(o.dyc
此文档下载收益归作者所有