当前位置: 首页 > 图文教程 > 网络编程 > ASP > 好漂亮的钟[代码]

ASP
看人家用使用InstallShield制作ASP安装程序(5)
看人家用使用InstallShield制作ASP安装程序(4)
看人家用使用InstallShield制作ASP安装程序(3)
看人家用使用InstallShield制作ASP安装程序(2)
看人家用使用InstallShield制作ASP安装程序(1)
取得浏览者的离开时间
base64编码、解码函数
动态显示图片的函数(显示广告条)
发送带附件的HTML格式邮件例程可以带附件
一种在父窗口中得知window.open()出的子窗口关闭事件的方法
一个老个写的无组件上传
避免asp的SQL的执行效率低
树型结构在ASP中的简单解决
无需数据库循环的无级分类代码
检查字符串strSource是否为big或big5码
有关重复记录的删除(SQL SERVER)
WINDOWS2000服务器账号登陆身份验证
使用VC++6.0制作ASP服务器控件简介
利用sql的存储过程实现dos命令的asp程序
WSH 直接将查询数据结果生成 EXCEL 表

ASP 中的 好漂亮的钟[代码]


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-03   浏览: 44 ::
收藏到网摘: n/a

       dCol='000000';//date colour.
  fCol='000000';//face colour.
  sCol='000000';//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';
  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="";
  props2="";
  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('
  '+props2+D[i]+'
  ');
  for (i=0; i < n; i++)
  document.write('
  '+props+Face[i]+'
  ');
  for (i=0; i < S.length; i++)
  document.write('
  '+S[i]+'
  ');
  for (i=0; i < M.length; i++)
  document.write('
  '+M[i]+'
  ');
  for (i=0; i < H.length; i++)
  document.write('
  '+H[i]+'
  ');
  }
  if (ie){
  document.write('');
  for (i=0; i < D.length; i++)
  document.write(''+props2+D[i]+'
  ');
  document.write('
  ');
  document.write('');
  for (i=0; i < n; i++)
  document.write(''+props+Face[i]+'
  ');
  document.write('
  ');
  document.write('');
  for (i=0; i < H.length; i++)
  document.write(''+H[i]+'
  ');
  document.write('
  ');
  document.write('');
  for (i=0; i < M.length; i++)
  document.write(''+M[i]+'
  ');
  document.write('
  ')
  document.write('');
  for (i=0; i < S.length; i++)
  document.write(''+S[i]+'
  ');
  document.write('
  ')
  }
  (ns)?window.captureEvents(Event.MOUSEMOVE):0;
  function Mouse(evnt){
  ymouse = (ns)?evnt.pageY+ClockFromMouseY-(window.pageYOf