论坛: 网站建设 标题: 大家来看看这个特效 复制本贴地址    
作者: ssheng [ssheng]    论坛用户   登录
aoming认为到目前为止,问题已有明确答案,本贴已被冻结,不再接受更多的回复

<script>
<!--

function click (url) {
  if(confirm('**Warning** The link you have chosen contains sexually oriented material intended for adults 18 years of age or older only. Even if you are an adult should NOT be ACCESSED by you if you live in certain localities which adult content is prohibited. By clicking O.K. and continuing further you acknowledge that we are not acting in ANY WAY to send you this material. You are CHOOSING to receive IT! We have no control over the content of the website you are about to visit.')) {
    window.open(url,'confirm');
  }
}

//--></script>
<SCRIPT language=JavaScript>dCol='000099';//date colour.
fCol='668099';//face colour.
sCol='FF0000';//seconds colour.
mCol='000000';//minutes colour.
hCol='000000';//hours colour.
ClockHeight=40;
ClockWidth=40;
ClockFromMouseY=0;
ClockFromMouseX=100;
//Alter nothing below! Alignments will be lost!
d=new Array("SUNDAY","MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY");
m=new Array("JANUARY","FEBRUARY","MARCH","APRIL","MAY","JUNE","JULY","AUGUST","SEPTEMBER","OCTOBER","NOVEMBER","DECEMBER");
date=new Date();
day=date.getDate();
year=date.getYear();
if (year < 2000) year=year+1900;
TodaysDate=" "+d[date.getDay()]+" "+day+" "+m[date.getMonth()]+" "+year;
D=TodaysDate.split('');
H='...';
H=H.split('');
M='....';
M=M.split('');
S='.....';
S=S.split('');
Face='1 2 3 4 5 6 7 8 9 10 11 12';
//font='Arial';
font='Verdana';
size=1;
speed=0.6;
ns=(document.layers);
ie=(document.all);
Face=Face.split(' ');
n=Face.length;
a=size*10;
ymouse=0;
xmouse=0;
scrll=0;
props="<font face="+font+" size="+size+" color="+fCol+"><B>";
props2="<font face="+font+" size="+size+" color="+dCol+"><B>";
Split=360/n;
Dsplit=360/D.length;
HandHeight=ClockHeight/4.5
HandWidth=ClockWidth/4.5
HandY=-7;
HandX=-2.5;
scrll=0;
step=0.06;
currStep=0;
y=new Array();x=new Array();Y=new Array();X=new Array();
for (i=0; i < n; i++){y[i]=0;x[i]=0;Y[i]=0;X[i]=0}
Dy=new Array();Dx=new Array();DY=new Array();DX=new Array();
for (i=0; i < D.length; i++){Dy[i]=0;Dx[i]=0;DY[i]=0;DX[i]=0}
if (ns){
for (i=0; i < D.length; i++)
document.write('<layer name="nsDate'+i+'" top=0 left=0 height='+a+' width='+a+'><center>'+props2+D[i]+'</font></center></layer>');
for (i=0; i < n; i++)
document.write('<layer name="nsFace'+i+'" top=0 left=0 height='+a+' width='+a+'><center>'+props+Face[i]+'</font></center></layer>');
for (i=0; i < S.length; i++)
document.write('<layer name=nsSeconds'+i+' top=0 left=0 width=15 height=15><font face=Arial size=3 color='+sCol+'><center><b>'+S[i]+'</b></center></font></layer>');
for (i=0; i < M.length; i++)
document.write('<layer name=nsMinutes'+i+' top=0 left=0 width=15 height=15><font face=Arial size=3 color='+mCol+'><center><b>'+M[i]+'</b></center></font></layer>');
for (i=0; i < H.length; i++)
document.write('<layer name=nsHours'+i+' top=0 left=0 width=15 height=15><font face=Arial size=3 color='+hCol+'><center><b>'+H[i]+'</b></center></font></layer>');
}
if (ie){
document.write('<div id="Od" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < D.length; i++)
document.write('<div id="ieDate" style="position:absolute;top:0px;left:0;height:'+a+';width:'+a+';text-align:center">'+props2+D[i]+'</B></font></div>');
document.write('</div></div>');
document.write('<div id="Of" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < n; i++)
document.write('<div id="ieFace" style="position:absolute;top:0px;left:0;height:'+a+';width:'+a+';text-align:center">'+props+Face[i]+'</B></font></div>');
document.write('</div></div>');
document.write('<div id="Oh" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < H.length; i++)
document.write('<div id="ieHours" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:'+hCol+';text-align:center;font-weight:bold">'+H[i]+'</div>');
document.write('</div></div>');
document.write('<div id="Om" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < M.length; i++)
document.write('<div id="ieMinutes" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:'+mCol+';text-align:center;font-weight:bold">'+M[i]+'</div>');
document.write('</div></div>')
document.write('<div id="Os" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < S.length; i++)
document.write('<div id="ieSeconds" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:'+sCol+';text-align:center;font-weight:bold">'+S[i]+'</div>');
document.write('</div></div>')
}
(ns)?window.captureEvents(Event.MOUSEMOVE):0;
function Mouse(evnt){
ymouse = (ns)?evnt.pageY+ClockFromMouseY-(window.pageYOffset):event.y+ClockFromMouseY;
xmouse = (ns)?evnt.pageX+ClockFromMouseX:event.x+ClockFromMouseX;
}
(ns)?window.onMouseMove=Mouse:document.onmousemove=Mouse;
function ClockAndAssign(){
time = new Date ();
secs = time.getSeconds();
sec = -1.57 + Math.PI * secs/30;
mins = time.getMinutes();
min = -1.57 + Math.PI * mins/30;
hr = time.getHours();
hrs = -1.575 + Math.PI * hr/6+Math.PI*parseInt(time.getMinutes())/360;
if (ie){
Od.style.top=window.document.body.scrollTop;
Of.style.top=window.document.body.scrollTop;
Oh.style.top=window.document.body.scrollTop;
Om.style.top=window.document.body.scrollTop;
Os.style.top=window.document.body.scrollTop;
}
for (i=0; i < n; i++){
 var F=(ns)?document.layers['nsFace'+i]:ieFace[i].style;
 F.top=y[i] + ClockHeight*Math.sin(-1.0471 + i*Split*Math.PI/180)+scrll;
 F.left=x[i] + ClockWidth*Math.cos(-1.0471 + i*Split*Math.PI/180);
 }
for (i=0; i < H.length; i++){
 var HL=(ns)?document.layers['nsHours'+i]:ieHours[i].style;
 HL.top=y[i]+HandY+(i*HandHeight)*Math.sin(hrs)+scrll;
 HL.left=x[i]+HandX+(i*HandWidth)*Math.cos(hrs);
 }
for (i=0; i < M.length; i++){
 var ML=(ns)?document.layers['nsMinutes'+i]:ieMinutes[i].style;
 ML.top=y[i]+HandY+(i*HandHeight)*Math.sin(min)+scrll;
 ML.left=x[i]+HandX+(i*HandWidth)*Math.cos(min);
 }
for (i=0; i < S.length; i++){
 var SL=(ns)?document.layers['nsSeconds'+i]:ieSeconds[i].style;
 SL.top=y[i]+HandY+(i*HandHeight)*Math.sin(sec)+scrll;
 SL.left=x[i]+HandX+(i*HandWidth)*Math.cos(sec);
 }
for (i=0; i < D.length; i++){
 var DL=(ns)?document.layers['nsDate'+i]:ieDate[i].style;
 DL.top=Dy[i] + ClockHeight*1.5*Math.sin(currStep+i*Dsplit*Math.PI/180)+scrll;
 DL.left=Dx[i] + ClockWidth*1.5*Math.cos(currStep+i*Dsplit*Math.PI/180);
 }
currStep-=step;
}
function Delay(){
scrll=(ns)?window.pageYOffset:0;
Dy[0]=Math.round(DY[0]+=((ymouse)-DY[0])*speed);
Dx[0]=Math.round(DX[0]+=((xmouse)-DX[0])*speed);
for (i=1; i < D.length; i++){
Dy[i]=Math.round(DY[i]+=(Dy[i-1]-DY[i])*speed);
Dx[i]=Math.round(DX[i]+=(Dx[i-1]-DX[i])*speed);
}
y[0]=Math.round(Y[0]+=((ymouse)-Y[0])*speed);
x[0]=Math.round(X[0]+=((xmouse)-X[0])*speed);
for (i=1; i < n; i++){
y[i]=Math.round(Y[i]+=(y[i-1]-Y[i])*speed);
x[i]=Math.round(X[i]+=(x[i-1]-X[i])*speed);
}
ClockAndAssign();
setTimeout('Delay()',20);
}
if (ns||ie)window.onload=Delay;
</SCRIPT>

地主 发表时间: 08/04 13:06

回复: ssheng [ssheng]   论坛用户   登录
这个酷的特效竟然没人看,,5555555....我顶

B1层 发表时间: 08/05 14:13

回复: fubin [fubin]   论坛用户   登录
我看了是个不错的特效
是你写的吗?


B2层 发表时间: 08/06 09:47

回复: freeid [zjx_1981]   论坛用户   登录
靠,真是的,这么好的特效竟然没有人看,真是可惜啊,是不错!

B3层 发表时间: 08/06 11:20

回复: ssheng [ssheng]   论坛用户   登录
哎,如果是我写的,我做梦都会笑的,呵呵,不过我在努力,,

B4层 发表时间: 08/06 15:52

回复: rjmj [rjmj]   论坛用户   登录
真的很好,我很喜欢!只是为什么那个时间是2013年的???

呵呵呵

B5层 发表时间: 08/07 01:43

回复: ssheng [ssheng]   论坛用户   登录
那是你电脑上的时间,

B6层 发表时间: 08/07 06:31

回复: stone [stone]   论坛用户   登录
这个特效是不错,但是只能适用在个人主页当中!

B7层 发表时间: 08/07 13:24

回复: runwin [runwin]   论坛用户   登录
不是没人看是1999年就看过啦,所以现在人都不喜欢看啦!

B8层 发表时间: 08/07 15:33

回复: drckness [drckness]   论坛用户   登录
我看了!嘿嘿,还不错。在那儿找的。呵呵我是姚征,你是程占省吧:)

B9层 发表时间: 08/07 16:20

回复: ssheng [ssheng]   论坛用户   登录
把妈的,你是谁,我不认识你,干嘛在这里乱说呀,去死,

B10层 发表时间: 08/08 17:03

回复: chentq [chentq]   论坛用户   登录
十分好,我想会有用的。

B11层 发表时间: 08/09 10:58

回复: bluesnoopy [bluesnoopy]   论坛用户   登录
不错啊~~~~~~~~~~~~~~~~还有吗?

有应该多发表啊~~~~?

B12层 发表时间: 08/13 23:58

回复: yangze [yangze]   版主   登录
不错。很好的东东。

B13层 发表时间: 08/15 13:44

回复: nichunyang [nichunyang]   论坛用户   登录
还有吗?

B14层 发表时间: 08/15 17:39

回复: navyblue [navyblue]   论坛用户   登录
不错!!

B15层 发表时间: 08/16 19:47

回复: ssheng [ssheng]   论坛用户   登录
有啊,想要吗?来我几年前做一个网站吧, http://ssheng.8u8.com

B16层 发表时间: 08/17 22:26

回复: gsdownload [gsdownload]   论坛用户   登录
看起来不错喔

B17层 发表时间: 08/18 12:57

回复: sky21000 [sky21000]   论坛用户   登录
非常好
我已经应用到我我网站上了

B18层 发表时间: 08/18 18:52

回复: ssheng [ssheng]   论坛用户   登录
还想要吗?

B19层 发表时间: 08/20 17:54

回复: dzzfox [dzzfox]   论坛用户   登录
妈的,太好了。555555~~~~我要是也会这个就好了。

蟀呆了,裤屁了,简直无法比喻了。

B20层 发表时间: 09/18 23:28

回复: dzzfox [dzzfox]   论坛用户   登录
我加了本地好用。传上去就隔屁了。

B21层 发表时间: 09/18 23:44

回复: top [top]   论坛用户   登录
看了有什么用~~!一个特效到是好,但不知道原因就麻烦了~~1

看来我要退而结网了!

B22层 发表时间: 09/20 08:59

回复: taoxuedadi [taoxuedadi]   论坛用户   登录
真的不错

B23层 发表时间: 09/20 16:49

回复: syshunter [syshunter]   版主   登录
不错,借来一用。

B24层 发表时间: 09/20 18:29

回复: dzzfox [dzzfox]   论坛用户   登录
哈哈,对不起,好用了我加上了。哈哈。谢谢多来点。

B25层 发表时间: 09/21 09:31

回复: tftm_jk [tftm_jk]   论坛用户   登录
很好的东东~再发多点就好了

B26层 发表时间: 09/22 00:00

回复: lucyynw [lucyynw]   论坛用户   登录
怎么看过来看过去的就是不懂啊。。。晕~~~
倒。。。。


B27层 发表时间: 09/26 00:39

回复: lucyynw [lucyynw]   论坛用户   登录
怎么看过来看过去的就是不懂啊。。。晕~~~
倒。。。。


B28层 发表时间: 09/26 00:39

回复: lwy1022 [lwy1022]   论坛用户   登录
先不要笑我,请问这个东西怎么用上去呢?然后顺便问问怎么看,我是个新手,请大家多多照顾

B29层 发表时间: 09/26 11:50

回复: taoxuedadi [taoxuedadi]   论坛用户   登录
我已经用了 ,侃侃把 http://room306.8u8.com/lxfs.htm

B30层 发表时间: 09/26 15:35

回复: windyway [windyway]   版主   登录
果然是个好东东~~

B31层 发表时间: 09/27 01:27

回复: ivfe [ivfe]   论坛用户   登录



好好喔

B32层 发表时间: 09/27 12:05

回复: BlueSnoopy [bluesnoopy]   论坛用户   登录
如果还有应该多发表一下阿!!



B33层 发表时间: 10/01 00:04

回复: gueiji [gueiji]   论坛用户   登录
好象现在的网页特效软件都有这个特效了

B34层 发表时间: 04-11-05 11:18

回复: qfwuying [qfwuying]      登录
只适合在一些初级的个人网页!
这种特效现在基本没人用了!!

B35层 发表时间: 04-11-06 09:53

论坛: 网站建设

20CN网络安全小组版权所有
Copyright © 2000-2010 20CN Security Group. All Rights Reserved.
论坛程序编写:NetDemon

粤ICP备05087286号