




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
1、1 打開新頁面鼠標特效篇-打開新頁面鼠標特效篇-打開新頁面function OpenWindow () msg=open(, NewWindow, toolbar=yes, location=no, directories=yes, status=no, menubar=yes, scrollbars=yes, resizable=no, copyhistory=yes, width=420, height=240);2 文本框問繞鼠標鼠標特效篇-文本圍繞鼠標鼠標特效篇-文本圍繞鼠標var cx=0;var cy=0;var val=0;function MouseTextStart() fo
2、r(i=1;i=7;i+) val=setInterval(MouseTextShow(1),20); setInterval(MouseTextfollow(+i+),100); function MouseTextShow(i) var w=eval(MouseText+i); with(w.style) visibility=visible; s=parseInt(fontSize); if(s=200)s-=100; else if(s90&s=100) s-=85; clearInterval(val); if(i7)val=setInterval(MouseTextShow(+(i
3、+1)+),20); fontSize=s; function MouseTextfollow(i) var x; if(i6)x=cx-70+i*10; else x=cx-35+i*10; var y=cy-10+Math.floor(Math.random()*40); w=eval(MouseText+i); with(w.style) left=x.toString()+px; top=y.toString()+px; function MouseTextLocation() cx=window.event.x; cy=window.event.y; document.onmouse
4、move=MouseTextLocation;var MouseText=new Array(7);MouseText1=W; MouseText2=e; MouseText3=l; MouseText4=c; MouseText5=o; MouseText6=m; MouseText7=e;for(i=1;i=7;i+) document.write(+MouseTexti+);MouseTextStart();3 圖形圍繞鼠標鼠標特效篇-圖形跟隨鼠標鼠標特效篇-圖形跟隨鼠標 function MousePicture() layerRef=document.all; styleSwitch
5、=.style; layerName = Picture eval(var curElement=+layerRef+layerName+) eval(layerRef+layerName+styleSwitch+.visibility=hidden) eval(curElement+styleSwitch+.visibility=visible) eval(newleft=document.body.clientWidth-curElement+styleSwitch+.pixelWidth) eval(newtop=document.body.clientHeight-curElement
6、+styleSwitch+.pixelHeight) eval(height=curElement+styleSwitch+.height) eval(width=curElement+styleSwitch+.width) width=parseInt(width) height=parseInt(height) if (event.clientX (document.body.clientWidth - 6 - width) newleft=document.body.clientWidth + document.body.scrollLeft - 6 - width else newle
7、ft=document.body.scrollLeft + event.clientX eval(curElement+styleSwitch+.pixelLeft=newleft) if (event.clientY (document.body.clientHeight - 6 - height) newtop=document.body.clientHeight + document.body.scrollTop - 6 - height else newtop=document.body.scrollTop + event.clientY eval(curElement+styleSw
8、itch+.pixelTop=newtop)document.onmousemove = MousePicture;document.write()document.write()document.write() 4 文本跟隨鼠標鼠標特效篇-文本跟隨鼠標鼠標特效篇-文本跟隨鼠標var x,yvar step=18var index=0var message=鼠標特效篇-文本跟隨鼠標!message=message.split()var xpos=new Array()for (i=0;i=message.length-1;i+) xposi=-50 var ypos=new Array()fo
9、r (i=0;i=1; i-) xposi=xposi-1+step; yposi=yposi-1 xpos0=x+step ypos0=y for (i=0; i=1; i-) xposi=xposi-1+step; yposi=yposi-1 xpos0=x+step ypos0=y for (i=0; imessage.length-1; i+) var thisspan = eval(document.span+i); thisspan.left=xposi; thisspan.top=yposi var timer=setTimeout(MouseText(),30)function
10、 MouseScroll(e) x = (document.layers) ? e.pageX : document.body.scrollLeft+event.clientX y = (document.layers) ? e.pageY : document.body.scrollTop+event.clientY index=1for (i=0;i=message.length-1;i+) document.write() document.write(messagei) document.write()if (document.layers) document.captureEvent
11、s(Event.mousemove);document.onmousemove = MouseScroll;.spanstyle color: #ff0033; font-family: 宋體; font-size: 10pt; position: absolute; top: -50px; visibility: visible5 星星跟隨鼠標鼠標特效篇-星星跟隨鼠標鼠標特效篇-星星跟隨鼠標if (!document.layers&!document.all) event=testfunction YY_MouseStar(evnt) if (yyns4) if (evnt.pageX) y
12、y_ml=evnt.pageX; yy_mt=evnt.pageY; else yy_ml=(event.clientX + document.body.scrollLeft); yy_mt=(event.clientY+document.body.scrollTop); if (yy_tracescript) eval(yy_tracescript)function YY_LayerStar(yyleft,yytop,yyfnx,yyfny,yydiv,yybilder,yyloop,yyto,yycnt,yystep) if (document.layers)|(document.all)
13、 with (Math) yynextx= eval(yyfnx) with (Math) yynexty= eval(yyfny) yycnt=(yyloop & yycnt=yystep*yybilder)?0:yycnt+yystep; if (document.layers) eval(yydiv+.top=+(yynexty+yytop) eval(yydiv+.left=+(yynextx+yyleft) if (document.all) eval(yydiv=yydiv.replace(/.layers/gi, .all); eval(yydiv+.style.pixelTop
14、=+(yynexty+yytop); eval(yydiv+.style.pixelLeft=+(yynextx+yyleft); argStr=YY_LayerStar(+yyleft+,+yytop+,+yyfnx+,+yyfny+,+yydiv+,+yybilder+,+yyloop+,+yyto+,+yycnt+,+yystep+); if (yycnt=yystep*yybilder)eval(yydiv+.yyto=setTimeout(argStr,yyto); var yyns4=window.Event?true:false; var yy_mt = 0; var yy_ml
15、 = 0;document.onmousemove = YY_MouseStar;yy_tracescript = ;if (yyns4) document.captureEvents(Event.mousemove); YY_MouseStar(,document.YY_MouseStar1)YY_LayerStar(0,0,yy_ml+cos(15*sin(yycnt/40)+0)*150*(sin(10+yycnt/20)+0.3),yy_mt+sin(15*sin(yycnt/34)+0)*150*(sin(10+yycnt/20)+0.3),document.layersyyd0,2
16、002,true,88,7,1);YY_LayerStar(0,0,yy_ml+cos(15*sin(yycnt/28)+30)*150*(sin(10+yycnt/20)+0.3),yy_mt+sin(15*sin(yycnt/9)+30)*150*(sin(10+yycnt/20)+0.3),document.layersyyd1,2002,true,88,7,1);YY_LayerStar(0,0,yy_ml+cos(15*sin(yycnt/16)+60)*150*(sin(10+yycnt/20)+0.3),yy_mt+sin(15*sin(yycnt/16)+60)*150*(si
17、n(10+yycnt/20)+0.3),document.layersyyd2,2002,true,88,7,1);YY_LayerStar(0,0,yy_ml+cos(15*sin(yycnt/7)+90)*150*(sin(10+yycnt/20)+0.3),yy_mt+sin(15*sin(yycnt/44)+90)*150*(sin(10+yycnt/20)+0.3),document.layersyyd3,2002,true,88,7,1);YY_LayerStar(0,0,yy_ml+cos(15*sin(yycnt/34)+120)*150*(sin(10+yycnt/20)+0
18、.3),yy_mt+sin(15*sin(yycnt/2)+120)*150*(sin(10+yycnt/20)+0.3),document.layersyyd4,2002,true,88,7,1);YY_LayerStar(0,0,yy_ml+cos(15*sin(yycnt/38)+150)*150*(sin(10+yycnt/20)+0.3),yy_mt+sin(15*sin(yycnt/18)+150)*150*(sin(10+yycnt/20)+0.3),document.layersyyd5,2002,true,88,7,1);6 窗口開關(guān)鼠標特效篇-窗口開關(guān)控制鼠標特效篇-窗口開
19、關(guān)控制function OpenWindow() msg=window.open(, Homepage, toolbar=yes, location=yes, directories=yes, status=yes,menubar=yes, scrollbars=yes, resizable=yes, copyhistory=no, width=240, height=270);窗口開關(guān)6 激活警告框鼠標特效篇-激活警告框鼠標特效篇-激活警告框激活警告框7 依據(jù)位置顯示坐標鼠標特效篇-依據(jù)位置顯示標志鼠標特效篇-依據(jù)位置顯示標志function MouseOverPicture(Picture
20、Name) PictureName.src = Picture002.jpg function MouseOutPicture(PictureName) PictureName.src = gif1.gif 263 在線 搜 狐 網(wǎng) 新 浪 網(wǎng) 雅 虎 網(wǎng)8 狀態(tài)欄顯示信息鼠標特效篇-狀態(tài)欄顯示信息鼠標特效篇-狀態(tài)欄顯示信息狀態(tài)欄顯示信息9 選擇顏色變幻背景鼠標特效篇-選擇顏色變換背景鼠標特效篇-選擇顏色變換背景index=0;function MouseColor(SelectColor) if ( index = 0 ) document.bgColor=SelectColor; function ChangeColor() if ( index = 0) index = 1; else index = 0; 選擇背景的顏色: 9 顯示圖形鼠標特效篇-顯示圖形鼠標特效篇-顯示圖形PictureName1=new Image()PictureName1.src=Picture002.jpgPictureName2=new Image()PictureName2.src=gif1.giffunction ChangePicture(imagename,objectsrc)if (document.images) documen
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年度不動產(chǎn)投資信托合同協(xié)議
- 2025年度夫妻財產(chǎn)約定與家庭財務(wù)規(guī)劃協(xié)議書模板
- 2025年度公廁保潔與智能設(shè)備維護服務(wù)合同
- 2025年度房屋遺產(chǎn)繼承與遺產(chǎn)分配及稅務(wù)籌劃協(xié)議
- 2025年度單價合同在新能源技術(shù)研發(fā)中的合同履行與經(jīng)濟效益
- 2025年度定向委培協(xié)議書:新材料研發(fā)人才定向培養(yǎng)協(xié)議
- 2025年度農(nóng)村自來水用戶用水糾紛處理合同
- 2025年度建筑材料經(jīng)銷商返點獎勵協(xié)議
- 2025年度勞動合同協(xié)商解除協(xié)議書-企業(yè)轉(zhuǎn)制員工安置協(xié)議
- 4S店裝飾維修服務(wù)合同
- 鋼網(wǎng)驗收報告
- 防水補漏工程合同(合同版本)
- 鐵路局中間站管理手冊
- 監(jiān)理日志表(標準模版)
- H3C-CAS虛擬化平臺詳細介紹
- 小學(xué)生韻母in、ing常見漢字與區(qū)分練習(xí)
- 藥房品種類別及數(shù)量清單
- 大學(xué)生安全教育課件(ppt共41張)
- 初中物理人教版八年級下冊 第1節(jié)牛頓第一定律 課件
- 網(wǎng)站培訓(xùn)內(nèi)容trswcm65表單選件用戶手冊
- 連續(xù)平壓熱壓機 三篇 俞敏等
評論
0/150
提交評論