jquery div提示框渐隐弹出与隐藏效果
2010-05-27 00:00
656 查看
jquery div提示框渐隐弹出与隐藏
*{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;}
$(function(){
$('input').click(function(){
if(!$('#note').is(':visible')){
$('#note').css({display:'block', top:'-100px'}).animate({top: '+100'}, 500, function(){
setTimeout(out, 3000);
});
}
});
});
function out(){
$('#note').animate({top:'0'}, 500, function(){
$(this).css({display:'none', top:'-100px'});
});
}
脚本之家
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]
*{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;}
$(function(){
$('input').click(function(){
if(!$('#note').is(':visible')){
$('#note').css({display:'block', top:'-100px'}).animate({top: '+100'}, 500, function(){
setTimeout(out, 3000);
});
}
});
});
function out(){
$('#note').animate({top:'0'}, 500, function(){
$(this).css({display:'none', top:'-100px'});
});
}
脚本之家
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]
相关文章推荐
- jquery div提示框渐隐弹出与隐藏效果
- jquery实现隐藏在左侧的弹性弹出菜单效果
- jQuery实现鼠标点击div外的地方div隐藏消失的效果
- 黄聪:jquery之div显示和隐藏、窗帘效果特效示例
- 设置div弹出层显示隐藏效果
- [置顶] jQuery弹出层效果 弹出div窗口
- jquery+div 弹出层效果
- jquery实现隐藏在左侧的弹性弹出菜单效果
- 使用jQuery实现DIV弹出效果
- jquery控制div隐藏与显示的几种效果
- jQuery DIV弹出效果实现代码
- jquery 在指定位置弹出div框并实现DIV由下向上展开的效果
- jQuery DIV弹出效果实现代码
- jquery 在指定位置弹出div框并实现从下向上展开效果
- JS向右弹出DIV,点击可向左隐藏。我用jquery可以从左下角像右上角隐藏,怎么从做向右隐藏呢?
- jquery+div 弹出层效果
- jquery css div (弹出)显示隐藏层
- JQuery 弹出窗口,(div显示与隐藏),隐藏层半透明
- jquery实现隐藏的div出现时滑动效果
- jQuery点击按钮实现div的隐藏和显示切换效果