资料
表格
制度
合同
管理
职场
经营
创业
范文
总结
计划
作文
文章
美文
词句
教程
模板
图片
字体
图标
办公
人事
财务
生产
管理资源吧首页
>>>
教程
>>>
编程
>>>
JavaScript教程
>>>
jquery div提示框渐隐弹出与隐藏效果
<!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>jquery div提示框渐隐弹出与隐藏</title> <img src="/_New/_cj/myeditor/sysimage/space.gif" class="ewebeditor__script" _ewebeditor_fake_tag="script" _ewebeditor_fake_value="%3Cscript%20type%3D%22text%2Fjavascript%22%20src%3D%22http%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fjquery%2F1.3.2%2Fjquery.min.js%22%3E%3C%2Fscript%3E"> <style> *{margin:0;padding:0;font-size:12px;} input{width:120px;height:30px;cursor:pointer;} #note{position:absolute;width:400px;padding:20px;background:#eee;border:1px solid #ccc;left:40%;z-index:9999;display:none;} </style> <img src="/_New/_cj/myeditor/sysimage/space.gif" class="ewebeditor__script" _ewebeditor_fake_tag="script" _ewebeditor_fake_value="%3Cscript%3E%20%0D%0A%24(function()%7B%20%0D%0A%24('input').click(function()%7B%20%0D%0Aif(!%24('%23note').is('%3Avisible'))%7B%20%0D%0A%24('%23note').css(%7Bdisplay%3A'block'%2C%20top%3A'-100px'%7D).animate(%7Btop%3A%20'%2B100'%7D%2C%20500%2C%20function()%7B%20%0D%0AsetTimeout(out%2C%203000)%3B%20%0D%0A%7D)%3B%20%0D%0A%7D%20%0D%0A%7D)%3B%20%0D%0A%7D)%3B%20%0D%0Afunction%20out()%7B%20%0D%0A%24('%23note').animate(%7Btop%3A'0'%7D%2C%20500%2C%20function()%7B%20%0D%0A%24(this).css(%7Bdisplay%3A'none'%2C%20top%3A'-100px'%7D)%3B%20%0D%0A%7D)%3B%20%0D%0A%7D%20%0D%0A%3C%2Fscript%3E"> </head> <body> <div id="note"><a href="http://www.glzy8.com" _ewebeditor_ta_href="http%3A%2F%2Fwww.glzy8.com" target="_blank">管理资源吧</a></div> <input type="button" value="点我,30s后消失" /> </body> </html>
[Ctrl+A 全选 注:
如需引入外部Js需刷新才能执行
]
教程首页
更多教程