资料
表格
制度
合同
管理
职场
经营
创业
范文
总结
计划
作文
文章
美文
词句
教程
模板
图片
字体
图标
办公
人事
财务
生产
管理资源吧首页
>>>
教程
>>>
编程
>>>
JavaScript教程
>>>
文字来回上下移动或跳动的代码
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>文字来回上下移动或跳动</title> </head> <body> <img src="/_New/_cj/myeditor/sysimage/space.gif" class="ewebeditor__script" _ewebeditor_fake_tag="script" _ewebeditor_fake_value="%3Cscript%20language%3D%22JavaScript%22%3E%20%0D%0A%3C!--%20%0D%0Adone%20%3D%200%3B%20%0D%0Astep%20%3D%204%20%0D%0Afunction%20anim(yp%2Cyk)%20%0D%0A%7B%20%0D%0Aif(document.layers)%20document.layers%5B%22napis%22%5D.top%3Dyp%3B%20%0D%0Aelse%20document.all%5B%22napis%22%5D.style.top%3Dyp%3B%20%0D%0Aif(yp%3Eyk)%20step%20%3D%20-4%20%0D%0Aif(yp%3C60)%20step%20%3D%204%20%0D%0A%0D%0AsetTimeout('anim('%2B(yp%2Bstep)%2B'%2C'%2Byk%2B')'%2C%2010)%3B%20%0D%0A%7D%20%0D%0A%0D%0Afunction%20start()%20%0D%0A%7B%20%0D%0Aif(done)%20return%20%0D%0Adone%20%3D%201%3B%20%0D%0Aif(navigator.appName%3D%3D%22Netscape%22)%20%7B%20%0D%0Adocument.napis.left%3DinnerWidth%2F2%20-%20145%3B%20%0D%0Aanim(60%2CinnerHeight%20-%2060)%20%0D%0A%7D%20%0D%0Aelse%20%7B%20%0D%0Anapis.style.left%3D280%3B%20%0D%0Aanim(60%2Cdocument.body.offsetHeight%20-%2060)%20%0D%0A%7D%20%0D%0A%7D%20%0D%0A%2F%2F--%3E%20%0D%0A%3C%2Fscript%3E"> <div id="napis" style="position: absolute; top: 159px; width: 400px; height: 78px; left: 215px"><font size="5"><b>管理资源吧欢迎您的到来!</b></font></div> <img src="/_New/_cj/myeditor/sysimage/space.gif" class="ewebeditor__script" _ewebeditor_fake_tag="script" _ewebeditor_fake_value="%3Cscript%20language%3D%22JavaScript%22%3E%20%0D%0A%3C!--%20%0D%0AsetTimeout('start()'%2C10)%3B%20%0D%0A%2F%2F--%3E%20%0D%0A%3C%2Fscript%3E"> </body> </html>
[Ctrl+A 全选 注:
如需引入外部Js需刷新才能执行
]
教程首页
更多教程