javascript生日提醒飘浮窗_第1页
javascript生日提醒飘浮窗_第2页
javascript生日提醒飘浮窗_第3页
javascript生日提醒飘浮窗_第4页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、javascript生日提醒飘浮窗 1、先编写 shengritixing.js 程序:代码如下:today=new Date();function initArray()this.length=initArray.arguments.lengthfor(var i=O;ivthis.length;i+)thisi+1=initArray.argumentsi以上显示现在的时间var blist=new Array(11); 创建数组 blistvar i=0;blist0=new Array(”李林,1981,1-19); /创建数组 blist0并赋值blist1=new Array(小雪

2、,1981,1-19);blist2=new Array(周明,1981,1-16);blist3=new Array(李涛,1981,1-17);blist4=new Array(清清,1981,11-20);blist =new Array(张敏,1967,4-5);blist =new Array(李佳,1985,7-8);blist7=new Array(刘星,1978,6-5);blist8=new Array(张辉,1973,5-4);blist9=new Array(威姿,1966,12-12);blist10=new Array(庄硕,1977,10-23);blist11=n

3、ew Array(庄严,1977,9-15);var t1=today.getMonth()+1;var t2=today.getDate();var t3=t1+-+t2var sname=;var m=0;for ( i=0;i); TOC o 1-5 h z document.writeln(”vdiv align=right);document.writeln(”vimgsrc=khal/shengri/close.gif hspace=6 border=0);document.writeln();document.writeln();document.writeln(vFONT fa

4、ce=方正姚体 color=#FCB9440size=5pt+sname+v/fontxFONT face=方正舒体 color=#ffOOOO size=5pt生日快乐! );document.writeln();objectdocument.writeln(););document.writeln(vparam name=movie value=shengri.swf);document.writeln(vparam name=quality value=highdocument.writeln();document.writeln(vembed src=shengri.swf quali

5、ty=highdocument.writeln(pluginspage= HYPERLINK /go/getflashplayer/ /go/getflashplayer););type=application/x-shockwave-flash width=398height=300 name=myFlash););document.writeln(v/objectdocument.writeln(v/div);swLiveConnect=truev/embeddocument.writeln( v/DIV/ Beginvar xPos = document.body.clientWidth

6、-20;var yPos = document.body.clientHeight/2;var step = 1;var delay = 2;var height = 0;var Hoffset = 0;var Woffset = 0;var yon = 0;var xon = 0;var pause = true;var interval;img.style.top = yPos;function changePos() width = document.body.clientWidth;height = document.body.clientHeight;Hoffset = img.of

7、fsetHeight;Woffset = img.offsetWidth;img.style.left = xPos + document.body.scrollLeft; img.style.top = yPos + document.body.scrollTop; if (yon) yPos = yPos + step;else yPos = yPos - step;if (yPos = (height - Hoffset) yon = 0;yPos = (height - Hoffset);if (xon) xPos = xPos + step;else xPos = xPos - st

8、ep;if (xPos = (width - Woffset) xon = 0;xPos = (width - Woffset);function start() img.visibility = visible;interval = setInterval(changePos(), delay);start();img.onmouseover = function。clearInterval(interval); interval = null;img.onmouseout = function() interval = setInterval(changePos(), delay);function closeme() document.getE

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论