logo网站设计成都建网站
成都网页设计网站制作建网站
首页 | 网站报价中心 | 网站优化推广 | 网页设计技术 | 行业资讯 | 域名主机常识 | 经典案例欣赏 | 网站建设方案 | 行业网特点 | 常见问题 | 美工设计
您当前的位置:成都网站设计工作室 -> 文章中心 -> 网站建设 -> 网页设计技术 -> 文章内容  
网站建设套餐

企业模板型 680元
服务内容
标准个人系列Ⅰ型+.国际顶级域名
主机空间:100Masp动态空间
精美页面:模板建站或20页以内静态页面
网站模块:公司介绍、新闻发布、产品展示、在线订购、留言版、人才招聘、计数器
网站特点:网站风格简洁明快,符合中小企业形象要求。功能紧凑实用,可

功能建站型 1480元-1980元
服务内容:200M/ASP空间,企业邮局(5个邮箱自由分配),.COM/.NET/.CN国际域名一个
制作形式:由我们专业技术和美工为您个性设计,使您的网站独一无二!架设栏目,添加非后台更新内,Access数据库,ASP程序,独立空间,强大后台,支持200-500人同时在线
网站功能:公司介绍,公司动态新闻,公司图片栏目,公司产品库,产品在线订购,会员注册功能,公司招聘,客户留言,联系我们,等栏目;提供强大后台可由客户随意制订,修改,添加,删除

高级建站型 2380元-4260元
服务内容:300M-500/ASP空间,企业邮局(5-30个邮箱自由分配), .COM/.NET/.CN/.COM.CN/.NET.CN国际域名一个,SQL(或Access数据库)制作专业高速安全的ASP或ASP.net程序,独立空间,强大后台,支持500-1000人同时在线
简单说明:(房产,家教,大型文章系统,房地产客户信息管理系统,旅游机票,火车票等预定系统,票务在线系统 ,网络办公OA系统 ,CRM客户资源管理系统,企业进销存系统,客户售后服务管理系统跨国公司产品展示系统,政府采购系统,学校考试系统--填空题考试系统,大型公司系统,中型型公司或个人门户型网站等)

开发定制型 4000元以上 (根据要求定制,价格面议)
服务内容:1024M-20G/ASP空间,企业邮局(5-50个邮箱自由分配), .COM/.NET/.CN/.COM.CN/.NET.CN国际域名一个,SQL(或Access数据库)制作专业高速安全的ASP或ASP.net程序,独立空间,强大后台,支持1000-10000人同时在线
简单说明:(大型房产,大型公司动画网站,英文网络办公系统,教育系统办公自动化系统,多功能信息办公平台,电子政务系统,公司或个人大型门户型网站,大型类似阿里巴巴商业贸


热门文章
· [组图] 5个红色调CSS酷站欣...
· 如何用CSS制作横向菜...
· [组图] 韩国楼盘房地产网站...
· [组图] 黑色调网站欣赏
· [组图] 服装网站欣赏
· [组图] flash案例
· [图文] 房产网站
· [图文] 红黑色调网站界面
· 成都私人建站,个人...
· [组图] 蓝色经典
中文的版用JavaScript实现超酷的“网页时钟”
作者:佚名  来源:本站原创    发布人:admin

减小字体 增大字体

只须将如下的JavaScript代码插入到你页面html的<head>区即可!

<SCRIPT language=JavaScript>
<!--
dCol='yellow'; //定义日历颜色
fCol='#ff0000'; //定义1-12这12个数的颜色
sCol='#00ff00'; //定义秒针颜色
mCol='#0000ff'; //定义分针颜色
hCol='#ff0000'; //定义时针颜色
ClockHeight=40; //定义时钟的高度
ClockWidth=40; //定义时钟的宽度
ClockFromMouseY=0; //定义时钟的中心距鼠标的相对垂直距离
ClockFromMouseX=100; //定义时钟中心距鼠标的相对水平距离
//以上颜色值你要据你页面的背景颜色进行修改!注意不要你页面的背景色一致哦。
d=new Array("星期日","星期一","星期二","星期三","星期四","星期五","星期六");
m=new Array("一月","二月","三月","四月","五月","六月","七月","八月","九月",
"十月","十一月","十二月"); //以上是给定星期和月份的取值范围
date=new Date();
day=date.getDate(); //取得当前日期命令
year=date.getYear(); //取得当前年份命令
if (year < 2000) year=year+1900;
TodaysDate="年 "+m[date.getMonth()]+" "+day+"日 "+d[date.getDay()]+" "+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';
size=1; //定义秒、分、时针及1-12等字符的宋体、大小(最好匆改动哦)
speed=0.8; //定义一旦鼠标位置发生变化时所有相关字符跟随至前面指定的鼠标的相对位置的速度,
能看到各字符的轨迹,值可在0.1-1.0之间改动(值最小为0.1时跟随过来的速度最慢,值为1.0时跟随速度最快且与轨迹显示)
ns=(document.layers);
ie=(document.all); //说明在NS和IE两种不同浏览器里都适用

//以下的大段语句定义了NS和IE浏览器各自如何控制并完成时间和旋转的日历跟随鼠标转的
Face=Face.split(' ');
n=Face.length;
a=size*10;
ymouse=0;
xmouse=0;
scrll=0;
props="<font face="+font+" size="+size+" color="+fCol+">";
props2="<font face="+font+" size="+size+" color="+dCol+">";
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]+'</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]+'</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>

 

[] [返回上一页] [打 印] [收 藏]

版权所有 成都网站建设超市
地址:成都洗面桥5号 邮编:610041