ASP.NET添加待辦事物提醒

來源:互聯網
上載者:User

標籤: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添加待辦事物提醒

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.