ImageVerifierCode 换一换
格式:DOCX , 页数:81 ,大小:58.55KB ,
资源ID:11807471      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bingdoc.com/d-11807471.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(33个JavaScript经典效果.docx)为本站会员(b****3)主动上传,冰点文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰点文库(发送邮件至service@bingdoc.com或直接QQ联系客服),我们立即给予删除!

33个JavaScript经典效果.docx

1、33个JavaScript经典效果33个JavaScript经典效果一实用且必用的小脚本代码:脚本1:进入主页以后自动播放声音脚本2:进入主页后自动最大话,省的去在自己单击了self.moveTo(0,0)self.resizeTo(screen.availWidth,screen.availHeight)脚本3:显示现在时间的脚本document.writenow脚本4:显示最后修改时间的脚本document.write(document.lastModified)脚本5:设为首页,加为收藏,加入频道,启动outlook发信设为首页加入收藏加入频道与我联系脚本6:状态栏动态显示现在时间fun

2、ctionsee()window.setTimeout(see(),1000);today=newDate();self.status=today.toString();脚本7:关闭窗口的脚本关闭窗口脚本8:按下F12键,直接返回首页functionlook()if(event.keyCode=123)document.location.href=http:/10.13.31.90/kayvin/if(document.onkeydown=null)document.onkeydown=look脚本9:后退,刷新,前进脚本10:设定时间弹出窗口,4000=4秒,当然你可以自定义function

3、l()window.open(10.13.31.90/kayvin/,name,width=500,height=150,border=0)setTimeout(l(),4000)二鼠标旁边的提示信息,类似与163登录后的页面提示效果:tip/*默认设置定义.*tPopWait=50;/停留tWait豪秒后显示提示。tPopShow=5000;/显示tShow豪秒后关闭提示showPopStep=20;popOpacity=99;/*内部变量定义*sPop=null;curShow=null;tFadeOut=null;tFadeIn=null;tFadeWaiting=null;docume

4、nt.write();document.write(.cPopTextbackground-color:#F8F8F5;color:#000000;border:1px#000000solid;font-color:font-size:12px;padding-right:4px;padding-left:4px;height:20px;padding-top:2px;padding-bottom:2px;filter:Alpha(Opacity=0);document.write();document.write();functionshowPopupText()varo=event.src

5、Element;MouseX=event.x;MouseY=event.y;if(o.alt!=null&o.alt!=)o.dypop=o.alt;o.alt=;if(o.title!=null&o.title!=)o.dypop=o.title;o.title=;if(o.dypop!=sPop)sPop=o.dypop;clearTimeout(curShow);clearTimeout(tFadeOut);clearTimeout(tFadeIn);clearTimeout(tFadeWaiting);if(sPop=null|sPop=)dypopLayer.innerHTML=;d

6、ypopLayer.style.filter=Alpha();dypopLayer.filters.Alpha.opacity=0;elseif(o.dyclass!=null)popStyle=o.dyclasselsepopStyle=cPopText;curShow=setTimeout(showIt(),tPopWait);functionshowIt()dypopLayer.className=popStyle;dypopLayer.innerHTML=sPop;popWidth=dypopLayer.clientWidth;popHeight=dypopLayer.clientHe

7、ight;if(MouseX+12+popWidthdocument.body.clientWidth)popLeftAdjust=-popWidth-24elsepopLeftAdjust=0;if(MouseY+12+popHeightdocument.body.clientHeight)popTopAdjust=-popHeight-24elsepopTopAdjust=0;dypopLayer.style.left=MouseX+12+document.body.scrollLeft+popLeftAdjust;dypopLayer.style.top=MouseY+12+docume

8、nt.body.scrollTop+popTopAdjust;dypopLayer.style.filter=Alpha(Opacity=0);fadeOut();functionfadeOut()if(dypopLayer.filters.Alpha.opacity0)dypopLayer.filters.Alpha.opacity-=1;tFadeIn=setTimeout(fadeIn(),1);document.onmouseover=showPopupText;三如果文字过长,则将过长的部分变成省略号显示:就是比如有一行文字,很长,表格内一行显示不下.四滚动的图片:imgArr=ne

9、wArray()imgArr0=imgArr1=imgArr2=imgArr3=imgArr4=varmoveStep=4/步长,单位:pixelvarmoveRelax=100/移动时间间隔,单位:msns4=(document.layers)?true:falsevardisplayImgAmount=4/视区窗口可显示个数vardivWidth=220/每块图片占位宽vardivHeight=145/每块图片占位高varstartDnum=0varnextDnum=startDnum+displayImgAmountvartimeIDvaroutHover=falsevarstartDi

10、vClipLeftvarnextDivClipRightfunctioninitDivPlace()if(ns4)for(i=0;idisplayImgAmount;i+)eval(document.divOuter.document.divAds+i+.left=+divWidth*i)for(i=displayImgAmount;iimgArr.length;i+)eval(document.divOuter.document.divAds+i+.left=+divWidth*displayImgAmount)elsefor(i=0;idisplayImgAmount;i+)eval(do

11、cument.all.divAds+i+.style.left=+divWidth*i)for(i=displayImgAmount;iimgArr.length;i+)eval(document.all.divAds+i+.style.left=+divWidth*displayImgAmount)functionmvStart()timeID=setTimeout(moveLeftDiv,moveRelax)functionmvStop()clearTimeout(timeID)functionmoveLeftDiv()if(ns4)for(i=0;idivWidth)eval(docum

12、ent.divOuter.document.divAds+nextDnum+.clip.right=+divWidth)eval(document.divOuter.document.divAds+startDnum+.left=+divWidth*displayImgAmount)eval(document.divOuter.document.divAds+parseInt(nextDnum+1)%imgArr.length)+.left=document.divOuter.document.divAds+nextDnum+.left+divWidth)eval(document.divOu

13、ter.document.divAds+parseInt(nextDnum+1)%imgArr.length)+.clip.left=0)startDnum=(+startDnum)%imgArr.lengthnextDnum=(startDnum+displayImgAmount)%imgArr.lengthstartDivClipLeft=moveStep-(divWidth-startDivClipLeft)nextDivClipRight=moveStep-(divWidth-nextDivClipRight)elseeval(document.divOuter.document.di

14、vAds+nextDnum+.clip.left=0)startDivClipLeft+=moveStepnextDivClipRight+=moveStepeval(document.divOuter.document.divAds+startDnum+.clip.left=+startDivClipLeft)eval(document.divOuter.document.divAds+nextDnum+.clip.right=+nextDivClipRight)elsefor(i=0;idivWidth)eval(document.all.divAds+nextDnum+.style.cl

15、ip=rect(0,+divWidth+,+divHeight+,0+)eval(document.all.divAds+startDnum+.style.left=+divWidth*displayImgAmount)eval(document.all.divAds+parseInt(nextDnum+1)%imgArr.length)+.style.left=document.all.divAds+nextDnum+.style.pixelLeft+divWidth)startDnum=(+startDnum)%imgArr.lengthnextDnum=(startDnum+displa

16、yImgAmount)%imgArr.lengthstartDivClipLeft=moveStep-(divWidth-startDivClipLeft)nextDivClipRight=moveStep-(divWidth-nextDivClipRight)elsestartDivClipLeft+=moveStepnextDivClipRight+=moveStepeval(document.all.divAds+startDnum+.style.clip=rect(0,+divWidth+,+divHeight+,+startDivClipLeft+)eval(document.all.divAds+nextDnum+.style.clip=rect(0,+nextDivClipRight+,+divHeight+,0)if(outHover)mvStop()elsemvStart()functionwriteDivs()if(ns4)document.write()for(i=0;iimgArr.length;i+)document.write()document.write(imgArri+)

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2