jQuery.alert
来源:互联网 发布:清华男子自宫真相知乎 编辑:程序博客网 时间:2024/05/21 10:47
<!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>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<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>
<script>
$(function(){
$('input').click(function(){
if(!$('#note').is(':visible')){
$('#note').css({display:'block', top:'-100px'}).animate({top: '+100'}, 500, function(){
setTimeout(out, 300);
});
}
});
});
function out(){
$('#note').animate({top:'0'}, 500, function(){
$(this).css({display:'none', top:'-100px'});
});
}
</script>
</head>
<body>
<div id="note"><a href="http://www.jb51.net" target="_blank">脚本之家</a></div>
<input type="button" value="点我,30s后消失" />
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>jquery div提示框渐隐弹出与隐藏</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<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>
<script>
$(function(){
$('input').click(function(){
if(!$('#note').is(':visible')){
$('#note').css({display:'block', top:'-100px'}).animate({top: '+100'}, 500, function(){
setTimeout(out, 300);
});
}
});
});
function out(){
$('#note').animate({top:'0'}, 500, function(){
$(this).css({display:'none', top:'-100px'});
});
}
</script>
</head>
<body>
<div id="note"><a href="http://www.jb51.net" target="_blank">脚本之家</a></div>
<input type="button" value="点我,30s后消失" />
</body>
</html>
- jQuery.alert
- JQuery alert 不弹框问题
- jquery 自定义alert
- jquery alert的基本使用
- jquery 插件之Alert Dialogs
- JQuery的Alert插件介绍
- JQuery的Alert插件介绍
- Jquery点击按钮弹出alert
- jquery-confirm自定义alert插件,alert显示内容可以换行
- JQuery alert confirm prompt 修改版
- jquery.alert 弹出式复选框实现代码
- jquery自定义对话框alert、confirm和prompt
- Jquery弹出Alert,Confirm,Prompt对话窗
- jquery-confirm,$.alert(),内容不换行
- jquery-confirm应用 alert confirm 弹出 弹窗
- jquery自定义对话框alert、confirm和prompt
- jquery alert提示框自动消失
- jquery-weui alert显示多行文本
- Ruby on Rails安装过程中出现"no such file to load -- mkmf"错误的解决方法。
- WinPcap 中文技术文档(4.1.2) 第一章
- Qt学习之3——继续修改
- 【读书笔记】《大学算法教程》——chpt6.排序和选择
- 中文乱码问题
- jQuery.alert
- C++函数声明的时候后面加const
- Windows 8 or 2012 Tips and Shortcuts - 09/19
- jQuery.alert2
- segmentation fault
- wp7 关于从MemmorySream中复制字节流
- C# 改变容器里面结构体的值
- Oracle安装目录admin下各文件夹的作用的说明
- C++模板学习