我在尋找松樹通知(http://pines.sourceforge.net/pnotify/),它看起來不錯,但它似乎沒有什麼實際的文檔,所以我想知道有什麼更多的建立和工作在那裏?Jquery的良好通知插件?
就像我不想花時間試圖弄清楚如何使用松樹,然後發現它缺少一些功能,我需要幾個月後,我需要改變到不同的插件。
這發生在我與tablesorter 2.0我使用它然後我需要過濾,但他們有點吸所以我發現datatables什麼有這樣一個更大的api和開發更多。
所以我想知道是否有像datatables(在開發和功能方面)只是爲了通知。
編輯
所以我在看jgrowl與如何使用的主題輥與它有點困惑。
所以我採取了一個示例文件,並剝去了我認爲是垃圾的一切。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml" debug="true">
<head>
<title>jGrowl meet Twitter</title>
<link rel="stylesheet" href="../jquery.jgrowl.css" type="text/css"/>
<link type="text/css" href="css/le-frog/jquery-ui-1.7.2.custom.css" rel="Stylesheet" />
<script type="text/javascript">
$(function(){
$('.ui-state-default').hover(
function(){$(this).addClass('ui-state-hover');},
function(){$(this).removeClass('ui-state-hover');}
)
.mousedown(function(){$(this).addClass('ui-state-active');})
.mouseup(function(){$(this).removeClass('ui-state-active');})
.mouseout(function(){$(this).removeClass('ui-state-active');});
});
</script>
<script type="text/javascript" src="jquery-ui-1.7.2.custom.min.js"></script>
<script type="text/javascript" src="../jquery-1.3.2.js"></script>
<script type="text/javascript" src="../jquery.jgrowl.js"></script>
<script type="text/javascript">
$(document).ready(function(){
// This value can be true, false or a function to be used as a callback when the closer is clciked
$.jGrowl.defaults.closer = function() {
console.log("Closing everything!", this);
};
$.jGrowl("Sticky notification with a header",
{
header: 'A Header',
sticky: true,
});
});
</script>
</head>
<body>
<div id="trdevtool_contain" class="ui-widget ui-widget-content ui-corner-all">
<div class="ui-widget-header ui-corner-top">
<h1>jQuery UI ThemeRoller <span>Developer Tool</span></h1>
</div>
</div>
</body>
</html>
我不明白這是什麼
<script type="text/javascript">
$(function(){
$('.ui-state-default').hover(
function(){$(this).addClass('ui-state-hover');},
function(){$(this).removeClass('ui-state-hover');}
)
.mousedown(function(){$(this).addClass('ui-state-active');})
.mouseup(function(){$(this).removeClass('ui-state-active');})
.mouseout(function(){$(this).removeClass('ui-state-active');});
});
</script>
它似乎什麼都沒有做與應用主題。我把它拿走了,主題仍然適用。此外,如果你看看我的jgrow
$.jGrowl("Sticky notification with a header",
{
header: 'A Header',
sticky: true,
});
我沒有提到的主題,但它仍然是一些如何使用的主題。爲什麼要採用這個主題?
雅我看到一堆我試圖找出哪一個是最常用和最發展。 – chobo2 2010-06-12 18:18:21
@ chobo2 - 它們都有略微不同的風格/風味,挑選最適合您的網站和需要的功能集(我需要說)(例如,您是否需要排隊?),它們都非常輕巧 – 2010-06-12 18:19:06
[here](http:/ /stackoverflow.com/questions/2983899/does-jquery-have-a-plugin-to-display-a-message-bar-like-the-twitter-wrong-pas)是你寫給** show notfcation的另一個答案消息頁面頂部** – stom 2016-06-23 13:58:05