码迷,mamicode.com
首页 > Web开发 > 详细

ASP.NET添加待办事物提醒

时间:2017-04-24 17:48:05      阅读:179      评论:0      收藏:0      [点我收藏+]

标签:relative   java   play   fas   order   position   提醒   asp   display   

<script type="text/javascript">
function initPage() {
var returnMsg = "<p><a href=‘aa.htm‘ target=‘content‘>嘿嘿</a></p><p>信息2 notice.js</p>";
$.show(‘提示信息‘, returnMsg, 10000);
}
</script>
<script src="../Js/JQuery/jquery.1.10.2.min.js" type="text/javascript"></script>
<script type="text/javascript" >
var time;
var delayTime;
$(function () {
// 增加浮动DIV
$(‘body‘).append("<div id=‘notice‘ onselectstart=‘return false‘><span class=‘notice_title‘> </span><span class=‘cbtn‘>[关闭]</span><div class=‘notice_content‘></div></div>");

// 更改样式
$(‘#notice‘).css({ right: "0", bottom: "0", cursor: "default", position: "fixed", "background-color": "#F0F9FD", color: "#1F336B", "z-index": "999", border: "1px #F2F2FB solid", margin: "2px", padding: "10px", "font-weight": "bold", "line-height": "25px", display: "none", width: "400px", height: "200px" });
$(‘#notice .cbtn‘).css({ color: "#FF0000", cursor: "pointer", "padding-right": "5px", float: "right", position: "relative" });
$(‘#notice .notice_content‘).css({ margin: "3px", "font-weight": "normal", border: "1px #B9C9EF solid", "line-height": "20px", "margin-bottom": "10px", padding: "10px", height: "135px" });

/* 绑定事件*/
$(‘#notice‘).hover(
function () {
$(this).stop(true, true).slideDown();
clearTimeout(time);
},
function () {
time = setTimeout(‘_notice()‘, delayTime);
}
);

//绑定关闭事件
$(‘.cbtn‘).bind(‘click‘, function () {
$(‘#notice‘).slideUp(‘fast‘);
clearTimeout(time);
});
});
$.extend({
lay: function (_width, _height) {
$(‘#notice‘).css({ width: _width, height: _height });
},
show: function (_title, _msg, _time) {
delayTime = _time;
$(‘.notice_title‘).html(_title);
$(‘.notice_content‘).html(_msg);
$(‘#notice‘).slideDown(2000);
time = setTimeout(‘_notice()‘, delayTime);
}
});
function _notice() {
$(‘#notice‘).slideUp(2000);
}
</script>

ASP.NET添加待办事物提醒

标签:relative   java   play   fas   order   position   提醒   asp   display   

原文地址:http://www.cnblogs.com/guapi/p/6758008.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!