Notificationjq.js 是使用 css 3 和 javascript 来创建 windows 8 风格通知的 jQuery 插件。它是一个可完全定制的插件,可以用在网站中创建重要的通知。适用于 Internet Explorer, Google Chrome, Mozilla Firefox, Safari 和 Mobile Browsers。
代码示例:
<script src="//code.jquery.com/jquery-1.7.1.js"></script> <script src="~/Scripts/Notificationjq.js"></script> <div id="divProgress"></div> <script> $.notify({ text: " Hello from technoplugin.com!!" }); </script> <script src="//code.jquery.com/jquery-1.7.1.js"></script> /*定制部分*/ <script src="~/Scripts/Notificationjq.js"></script> <div id="divProgress"></div> <script> $.notify({ text: "Hello from technoplugin.com!!",//Text to be displayed in notification thumbSrc: "Images/guest.png",//Image source for thumbnail image background: "#cecece",//Background colour of notification fontColor: "black",//Font colour of text fontSize: "16px",//Font size of text autoClose: false//Set false to keep notification on the screen unless closed manually }); </script>