收集一个跟随鼠标一起飘动的时钟

None.gif<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
None.gif
<HTML><HEAD>
None.gif
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
None.gif
<META content="MSHTML 6.00.2600.0" name=GENERATOR></HEAD>
None.gif
<BODY>
ExpandedBlockStart.gifContractedBlock.gif
<SCRIPT language=JavaScript>dot.gif
InBlock.gifdCol
='000000';//date colour.
InBlock.gif
fCol='000000';//face colour.
InBlock.gif
sCol='000000';//seconds colour.
InBlock.gif
mCol='000000';//minutes colour.
InBlock.gif
hCol='000000';//hours colour.
InBlock.gif
ClockHeight=40;
InBlock.gifClockWidth
=40;
InBlock.gifClockFromMouseY
=0;
InBlock.gifClockFromMouseX
=100;
InBlock.gif
InBlock.gif
InBlock.gif
InBlock.gif
//Alter nothing below! Alignments will be lost!
InBlock.gif

InBlock.gif
InBlock.gif
InBlock.gifd
=new Array("SUNDAY","MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY");
InBlock.gifm
=new Array("JANUARY","FEBRUARY","MARCH","APRIL","MAY","JUNE","JULY","AUGUST","SEPTEMBER","OCTOBER","NOVEMBER","DECEMBER");
InBlock.gifdate
=new Date();
InBlock.gifday
=date.getDate();
InBlock.gifyear
=date.getYear();
InBlock.gif
if (year < 2000) year=year+1900;
InBlock.gifTodaysDate
=" "+d[date.getDay()]+" "+day+" "+m[date.getMonth()]+" "+year;
InBlock.gifD
=TodaysDate.split('');
InBlock.gifH
='dot.gif';
InBlock.gifH
=H.split('');
InBlock.gifM
='dot.gif.';
InBlock.gifM
=M.split('');
InBlock.gifS
='dot.gif..';
InBlock.gifS
=S.split('');
InBlock.gifFace
='1 2 3 4 5 6 7 8 9 10 11 12';
InBlock.giffont
='Arial';
InBlock.gifsize
=1;
InBlock.gifspeed
=0.6;
InBlock.gifns
=(document.layers);
InBlock.gifie
=(document.all);
InBlock.gifFace
=Face.split(' ');
InBlock.gifn
=Face.length;
InBlock.gifa
=size*10;
InBlock.gifymouse
=0;
InBlock.gifxmouse
=0;
InBlock.gifscrll
=0;
InBlock.gifprops
="<font face="+font+" size="+size+" color="+fCol+"><B>";
InBlock.gifprops2
="<font face="+font+" size="+size+" color="+dCol+"><B>";
InBlock.gifSplit
=360/n;
InBlock.gifDsplit
=360/D.length;
InBlock.gifHandHeight
=ClockHeight/4.5
InBlock.gifHandWidth
=ClockWidth/4.5
InBlock.gifHandY
=-7;
InBlock.gifHandX
=-2.5;
InBlock.gifscrll
=0;
InBlock.gifstep
=0.06;
InBlock.gifcurrStep
=0;
InBlock.gify
=new Array();x=new Array();Y=new Array();X=new Array();
ExpandedSubBlockStart.gifContractedSubBlock.gif
for (i=0; i < n; i++)dot.gif{y[i]=0;x[i]=0;Y[i]=0;X[i]=0}
InBlock.gifDy
=new Array();Dx=new Array();DY=new Array();DX=new Array();
ExpandedSubBlockStart.gifContractedSubBlock.gif
for (i=0; i < D.length; i++)dot.gif{Dy[i]=0;Dx[i]=0;DY[i]=0;DX[i]=0}
ExpandedSubBlockStart.gifContractedSubBlock.gif
if (ns)dot.gif{
InBlock.gif
for (i=0; i < D.length; i++)
InBlock.gifdocument.write('
<layer name="nsDate'+i+'" top=0 left=0 height='+a+' width='+a+'><center>'+props2+D[i]+'</center></layer>');
InBlock.gif
for (i=0; i < n; i++)
InBlock.gifdocument.write('
<layer name="nsFace'+i+'" top=0 left=0 height='+a+' width='+a+'><center>'+props+Face[i]+'</center></layer>');
InBlock.gif
for (i=0; i < S.length; i++)
InBlock.gifdocument.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></layer>');
InBlock.gif
for (i=0; i < M.length; i++)
InBlock.gifdocument.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></layer>');
InBlock.gif
for (i=0; i < H.length; i++)
InBlock.gifdocument.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></layer>');
ExpandedSubBlockEnd.gif}

ExpandedSubBlockStart.gifContractedSubBlock.gif
if (ie)dot.gif{
InBlock.gifdocument.write('
<div id="Od" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
InBlock.gif
for (i=0; i < D.length; i++)
InBlock.gifdocument.write('
<div id="ieDate" style="position:absolute;top:0px;left:0;height:'+a+';width:'+a+';text-align:center">'+props2+D[i]+'</B></div>');
InBlock.gifdocument.write('
</div></div>');
InBlock.gifdocument.write('
<div id="Of" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
InBlock.gif
for (i=0; i < n; i++)
InBlock.gifdocument.write('
<div id="ieFace" style="position:absolute;top:0px;left:0;height:'+a+';width:'+a+';text-align:center">'+props+Face[i]+'</B></div>');
InBlock.gifdocument.write('
</div></div>');
InBlock.gifdocument.write('
<div id="Oh" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
InBlock.gif
for (i=0; i < H.length; i++)
InBlock.gifdocument.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>');
InBlock.gifdocument.write('
</div></div>');
InBlock.gifdocument.write('
<div id="Om" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
InBlock.gif
for (i=0; i < M.length; i++)
InBlock.gifdocument.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>');
InBlock.gifdocument.write('
</div></div>')
InBlock.gifdocument.write('
<div id="Os" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
InBlock.gif
for (i=0; i < S.length; i++)
InBlock.gifdocument.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>');
InBlock.gifdocument.write('
</div></div>')
ExpandedSubBlockEnd.gif}

InBlock.gif(ns)
?window.captureEvents(Event.MOUSEMOVE):0;
ExpandedSubBlockStart.gifContractedSubBlock.gif
function Mouse(evnt)dot.gif{
InBlock.gifymouse 
= (ns)?evnt.pageY+ClockFromMouseY-(window.pageYOffset):event.y+ClockFromMouseY;
InBlock.gifxmouse 
= (ns)?evnt.pageX+ClockFromMouseX:event.x+ClockFromMouseX;
ExpandedSubBlockEnd.gif}

InBlock.gif(ns)
?window.onMouseMove=Mouse:document.onmousemove=Mouse;
ExpandedSubBlockStart.gifContractedSubBlock.gif
function ClockAndAssign()dot.gif{
InBlock.giftime 
= new Date ();
InBlock.gifsecs 
= time.getSeconds();
InBlock.gifsec 
= -1.57 + Math.PI * secs/30;
InBlock.gifmins 
= time.getMinutes();
InBlock.gifmin 
= -1.57 + Math.PI * mins/30;
InBlock.gifhr 
= time.getHours();
InBlock.gifhrs 
= -1.575 + Math.PI * hr/6+Math.PI*parseInt(time.getMinutes())/360;
ExpandedSubBlockStart.gifContractedSubBlock.gif
if (ie)dot.gif{
InBlock.gifOd.style.top
=window.document.body.scrollTop;
InBlock.gifOf.style.top
=window.document.body.scrollTop;
InBlock.gifOh.style.top
=window.document.body.scrollTop;
InBlock.gifOm.style.top
=window.document.body.scrollTop;
InBlock.gifOs.style.top
=window.document.body.scrollTop;
ExpandedSubBlockEnd.gif}

ExpandedSubBlockStart.gifContractedSubBlock.gif
for (i=0; i < n; i++)dot.gif{
InBlock.gif 
var F=(ns)?document.layers['nsFace'+i]:ieFace[i].style;
InBlock.gif F.top
=y[i] + ClockHeight*Math.sin(-1.0471 + i*Split*Math.PI/180)+scrll;
InBlock.gif F.left
=x[i] + ClockWidth*Math.cos(-1.0471 + i*Split*Math.PI/180);
ExpandedSubBlockEnd.gif }

ExpandedSubBlockStart.gifContractedSubBlock.gif
for (i=0; i < H.length; i++)dot.gif{
InBlock.gif 
var HL=(ns)?document.layers['nsHours'+i]:ieHours[i].style;
InBlock.gif HL.top
=y[i]+HandY+(i*HandHeight)*Math.sin(hrs)+scrll;
InBlock.gif HL.left
=x[i]+HandX+(i*HandWidth)*Math.cos(hrs);
ExpandedSubBlockEnd.gif }

ExpandedSubBlockStart.gifContractedSubBlock.gif
for (i=0; i < M.length; i++)dot.gif{
InBlock.gif 
var ML=(ns)?document.layers['nsMinutes'+i]:ieMinutes[i].style;
InBlock.gif ML.top
=y[i]+HandY+(i*HandHeight)*Math.sin(min)+scrll;
InBlock.gif ML.left
=x[i]+HandX+(i*HandWidth)*Math.cos(min);
ExpandedSubBlockEnd.gif }

ExpandedSubBlockStart.gifContractedSubBlock.gif
for (i=0; i < S.length; i++)dot.gif{
InBlock.gif 
var SL=(ns)?document.layers['nsSeconds'+i]:ieSeconds[i].style;
InBlock.gif SL.top
=y[i]+HandY+(i*HandHeight)*Math.sin(sec)+scrll;
InBlock.gif SL.left
=x[i]+HandX+(i*HandWidth)*Math.cos(sec);
ExpandedSubBlockEnd.gif }

ExpandedSubBlockStart.gifContractedSubBlock.gif
for (i=0; i < D.length; i++)dot.gif{
InBlock.gif 
var DL=(ns)?document.layers['nsDate'+i]:ieDate[i].style;
InBlock.gif DL.top
=Dy[i] + ClockHeight*1.5*Math.sin(currStep+i*Dsplit*Math.PI/180)+scrll;
InBlock.gif DL.left
=Dx[i] + ClockWidth*1.5*Math.cos(currStep+i*Dsplit*Math.PI/180);
ExpandedSubBlockEnd.gif }

InBlock.gifcurrStep
-=step;
ExpandedSubBlockEnd.gif}

ExpandedSubBlockStart.gifContractedSubBlock.gif
function Delay()dot.gif{
InBlock.gifscrll
=(ns)?window.pageYOffset:0;
InBlock.gifDy[
0]=Math.round(DY[0]+=((ymouse)-DY[0])*speed);
InBlock.gifDx[
0]=Math.round(DX[0]+=((xmouse)-DX[0])*speed);
ExpandedSubBlockStart.gifContractedSubBlock.gif
for (i=1; i < D.length; i++)dot.gif{
InBlock.gifDy[i]
=Math.round(DY[i]+=(Dy[i-1]-DY[i])*speed);
InBlock.gifDx[i]
=Math.round(DX[i]+=(Dx[i-1]-DX[i])*speed);
ExpandedSubBlockEnd.gif}

InBlock.gify[
0]=Math.round(Y[0]+=((ymouse)-Y[0])*speed);
InBlock.gifx[
0]=Math.round(X[0]+=((xmouse)-X[0])*speed);
ExpandedSubBlockStart.gifContractedSubBlock.gif
for (i=1; i < n; i++)dot.gif{
InBlock.gify[i]
=Math.round(Y[i]+=(y[i-1]-Y[i])*speed);
InBlock.gifx[i]
=Math.round(X[i]+=(x[i-1]-X[i])*speed);
ExpandedSubBlockEnd.gif}

InBlock.gifClockAndAssign();
InBlock.gifsetTimeout('Delay()',
20);
ExpandedSubBlockEnd.gif}

ExpandedBlockEnd.gif
if (ns||ie)window.onload=Delay;
None.gif
</SCRIPT>
None.gif
</BODY></HTML>
None.gif

转载于:https://www.cnblogs.com/conquer/archive/2007/08/18/861073.html

(1)普通用户端(全平台) 音乐播放核心体验: 个性化首页:基于 “听歌历史 + 收藏偏好” 展示 “推荐歌单(每日 30 首)、新歌速递、相似曲风推荐”,支持按 “场景(通勤 / 学习 / 运动)” 切换推荐维度。 播放页功能:支持 “无损音质切换、倍速播放(0.5x-2.0x)、定时关闭、歌词逐句滚动”,提供 “沉浸式全屏模式”(隐藏冗余控件,突出歌词与专辑封面)。 多端同步:自动同步 “播放进度、收藏列表、歌单” 至所有登录设备(如手机暂停后,电脑端打开可继续播放)。 音乐发现与管理: 智能搜索:支持 “歌曲名 / 歌手 / 歌词片段” 搜索,提供 “模糊匹配(如输入‘晴天’联想‘周杰伦 - 晴天’)、热门搜索词推荐”,结果按 “热度 / 匹配度” 排序。 歌单管理:创建 “公开 / 私有 / 加密” 歌单,支持 “批量添加歌曲、拖拽排序、一键分享到社交平台”,系统自动生成 “歌单封面(基于歌曲风格配色)”。 音乐分类浏览:按 “曲风(流行 / 摇滚 / 古典)、语言(国语 / 英语 / 日语)、年代(80 后经典 / 2023 新歌)” 分层浏览,每个分类页展示 “TOP50 榜单”。 社交互动功能: 动态广场:查看 “关注的用户 / 音乐人发布的动态(如‘分享新歌感受’)、好友正在听的歌曲”,支持 “点赞 / 评论 / 转发”,可直接点击动态中的歌曲播放。 听歌排行:个人页展示 “本周听歌 TOP10、累计听歌时长”,平台定期生成 “全球 / 好友榜”(如 “好友中你本周听歌时长排名第 3”)。 音乐圈:加入 “特定曲风圈子(如‘古典音乐爱好者’)”,参与 “话题讨论(如‘你心中最经典的钢琴曲’)、线上歌单共创”。 (2)音乐人端(创作者中心) 作品管理: 音乐上传:支持 “无损音频(FLAC/WAV)+ 歌词文件(LRC)+ 专辑封面” 上传,填写 “歌曲信息
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值