欢迎来到天天文库
浏览记录
ID:43840725
大小:106.75 KB
页数:4页
时间:2019-10-15
《Javascript期末大作业说明》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、Javascript期末大作业说明(1)页面的内容及功能网页题目:一米阳光购物网;网页内容及功能:头部是一个通过ps修饰制作的png图片,导航部分用了css+div的
2、明了本网站的版权与信息;在网站两端有漂浮的对联广告特效;在header的左下方有目前日期显示。(2)页面中所用到的关键代码及代码说明1、时间特效:用来控制时间显示的样式即字体大小颜色;5、cript">varctimer;functioninit(){if(document.all){tim2.style.left=tim1.style.posLeft;tim2.style.top=tim1.style.posTop+tim1.offsetHeight-6;settimes();}}functionsettimes(){vartime=newDate();hours=time.getHours();mins=time.getMinutes();secs=time.getSeconds();if(hours<10)hours="0"+hours;if(mins6、<10)mins="0"+mins;if(secs<10)secs="0"+secs;tim1.innerHTML=hours+":"+mins+":"+secstim2.innerHTML=hours+":"+mins+":"+secsctimer=setTimeout('settimes()',960);}定义函数调用系统时间;window.onload=function(){startmarque();TB.widget.SimpleSlide.decoration('bill',{eventType:'mouse',effect:'scroll'}7、);}functionstartmarque(){varlh=110;varspeed=10;vardelay=3000;vart;varp=false;varo=document.getElementById("marque");o.innerHTML+=o.innerHTML;o.onmouseover=function(){p=true}o.onmouseout=function(){p=false}o.scrollTop=0;functionstart(){t=setInterval(scrolling,s
5、cript">varctimer;functioninit(){if(document.all){tim2.style.left=tim1.style.posLeft;tim2.style.top=tim1.style.posTop+tim1.offsetHeight-6;settimes();}}functionsettimes(){vartime=newDate();hours=time.getHours();mins=time.getMinutes();secs=time.getSeconds();if(hours<10)hours="0"+hours;if(mins
6、<10)mins="0"+mins;if(secs<10)secs="0"+secs;tim1.innerHTML=hours+":"+mins+":"+secstim2.innerHTML=hours+":"+mins+":"+secsctimer=setTimeout('settimes()',960);}定义函数调用系统时间;window.onload=function(){startmarque();TB.widget.SimpleSlide.decoration('bill',{eventType:'mouse',effect:'scroll'}
7、);}functionstartmarque(){varlh=110;varspeed=10;vardelay=3000;vart;varp=false;varo=document.getElementById("marque");o.innerHTML+=o.innerHTML;o.onmouseover=function(){p=true}o.onmouseout=function(){p=false}o.scrollTop=0;functionstart(){t=setInterval(scrolling,s
此文档下载收益归作者所有