书签 分享 收藏 举报 版权申诉 / 67

类型网页特效代码.docx

  • 文档编号:7167635
  • 上传时间:2023-01-21
  • 格式:DOCX
  • 页数:67
  • 大小:33.85KB
');

eval('varstar'+i+'=document.'+_all+'star'+i+_style);

}

//End-->

























--hide

functiongoHist(a)

{

history.go(a);

}

//-->




--

google_ad_client="ca-pub-4346681031078947";

/*728x90,创建于07-11-18*/

google_ad_slot="1163201327";

google_ad_width=728;

google_ad_height=90;

//-->

src="

脚本说明:

第一步:

把如下代码加入区域中:

第二步:

把中加入如下代码:

startday=newDate();

clockStart=startday.getTime();

functioninitStopwatch()

{

varmyTime=newDate();

vartimeNow=myTime.getTime();

vartimeDiff=timeNow-clockStart;

this.diffSecs=timeDiff/1000;

return(this.diffSecs);

}

functiongetSecs()

{

varmySecs=initStopwatch();

varmySecs1=""+mySecs;

mySecs1=mySecs1.substring(0,mySecs1.indexOf("."))+"secs.";

document.form1.timespent.value=mySecs1

window.setTimeout('getSecs()',1000);

}

Thispagewillchangein10seconds:

第三步:

把中内容改为:

--用替换原有的-->

--将以下代码加入HTML的之间-->

--

SmallStars=30;

LargeStars=10;

SmallYpos=newArray();

SmallXpos=newArray();

LargeYpos=newArray();

LargeXpos=newArray();

Smallspeed=newArray();

Largespeed=newArray();

ns=(document.layers)?

1:

0;

if(ns){

for(i=0;i

{document.write("")}

for(i=0;i

{document.write("")}

}

else{

document.write('

absolute;top:

0px;left:

0px">');

document.write('

relative">');

for(i=0;i

{document.write('

absolute;top:

0;left:

0;width:

1px;height:

1px;background:

#fffff0;font-size:

1px">

')}

document.write('

');

document.write('

');

document.write('

absolute;top:

0px;left:

0px">');

document.write('

relative">');

for(i=0;i

{document.write('

absolute;top:

0;left:

0;width:

2px;height:

2px;background:

#ffffff;font-size:

2px">

')}

document.write('

');

document.write('

');

}

WinHeight=(document.layers)?

window.innerHeight:

window.document.body.clientHeight;

WinWidth=(document.layers)?

window.innerWidth:

window.document.body.clientWidth;

//Initalplacement!

for(i=0;i

{

SmallYpos[i]=Math.round(Math.random()*WinHeight);

SmallXpos[i]=Math.round(Math.random()*WinWidth);

Smallspeed[i]=Math.random()*5+1;

}

for(i=0;i

{

LargeYpos[i]=Math.round(Math.random()*WinHeight);

LargeXpos[i]=Math.round(Math.random()*WinWidth);

Largespeed[i]=Math.random()*10+5;

}

functionfly(){

varWinHeight=(document.layers)?

window.innerHeight:

window.document.body.clientHeight;

varWinWidth=(document.layers)?

window.innerWidth:

window.document.body.clientWidth;

varhscrll=(document.layers)?

window.pageYOffset:

document.body.scrollTop;

varwscrll=(document.layers)?

window.pageXOffset:

document.body.scrollLeft;

for(i=0;i

{

LargeXpos[i]-=Largespeed[i];

if(LargeXpos[i]<-10)

{

LargeXpos[i]=WinWidth;

LargeYpos[i]=Math.round(Math.random()*WinHeight);

Largespeed[i]=Math.random()*10+5;

}

if(ns){

document.layers['ln'+i].left=LargeXpos[i];

document.layers['ln'+i].top=LargeYpos[i]+hscrll;

}

else{

li[i].style.pixelLeft=LargeXpos[i];

li[i].style.pixelTop=LargeYpos[i]+hscrll;

}

}

for(i=0;i

{

SmallXpos[i]-=Smallspeed[i];

if(SmallXpos[i]<-10)

{

SmallXpos[i]=WinWidth;

SmallYpos[i]=Math.round(Math.random()*WinHeight);

Smallspeed[i]=Math.random()*5+1;

}

if(ns){

document.layers['sn'+i].left=SmallXpos[i];

document.layers['sn'+i].top=SmallYpos[i]+hscrll;

}

else{

si[i].style.pixelLeft=SmallXpos[i];

si[i].style.pixelTop=SmallYpos[i]+hscrll;

}

}

setTimeout('fly()',10);

}

//fly();

//-->

--

google_ad_client="ca-pub-4346681031078947";

/*728x90,创建于07-11-18*/

google_ad_slot="1163201327";

google_ad_width=728;

google_ad_height=90;

//-->

src="

要完成此效果把如下代码加入到区域中

--

varno=50;

varspeed=1;

varns4up=(document.layers)?

1:

0;

varie4up=(document.all)?

1:

0;

vars,x,y,sn,cs;

vara,r,cx,cy;

vari,doc_width=800,doc_height=600;

if(ns4up){

doc_width=self.innerWidth;

doc_height=self.innerHeight;

}

else

if(ie4up){

doc_width=document.body.clientWidth;

doc_height=document.body.clientHeight;

}

x=newArray();

y=newArray();

r=newArray();

cx=newArray();

cy=newArray();

s=8;

for(i=0;i

initRain();

if(ns4up){

if(i==0){

document.write("

document.write("top=\"1\"visibility=\"show\">");

document.write(",");

}

else{

document.write("

document.write("top=\"1\"visibility=\"show\">");

document.write(",");

}

}

else

if(ie4up){

if(i==0){

document.write("

");

document.write("absolute;Z-INDEX:

"+i+";VISIBILITY:

");

document.write("visible;TOP:

15px;LEFT:

15px;\">");

document.write(",");

}

else{

document.write("

");

document.write("absolute;Z-INDEX:

"+i+";VISIBILITY:

");

document.write("visible;TOP:

15px;LEFT:

15px;

举报
举报
版权申诉
版权申诉
word格式文档无特别注明外均可编辑修改;预览文档经过压缩,下载后原文更清晰! 立即下载
配套讲稿:

如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。

特殊限制:

部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。

关 键  词:
网页 特效代码
提示  冰豆网所有资源均是用户自行上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作他用。
关于本文
本文标题:网页特效代码.docx
链接地址:https://www.bdocx.com/doc/7167635.html
相关搜索
关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

copyright@ 2008-2022 冰点文档网站版权所有

经营许可证编号:鄂ICP备2022015515号-1

收起
展开