JS message是一个非常小的(用gzip压缩之后才3kb)JavaScript library 用于轻松在网页上展示通知提醒。除了通知,它还支持创建带风格的对话框和确认对话框。不需要任何JS框架。每一种消息类型(除了通知提醒)都拥有回调事件用于实现可定制的交互功能。消息外观也通过CSS自定义。
支持大部分浏览器除了IE6。
项目地址: http://dhtmlx.github.com/message/
下载地址: https://github.com/DHTMLX/message
Custom notifications, alerts, confirmations
This library was extracted from the code of DHTMLX suite.
The library can be used under terms of MIT license (basically free).
Only 4kb gzipped, without external dependencies.
Examples
dhtmlx.confirm({
type:"confirm",
text: "Continue?",
callback: function(result){
dhtmlx.message("Result: "+result);
}
});
//or
dhtmlx.confirm("Continue?");
dhtmlx.alert({
text: "Download is completed.",
callback: function(){
dhtmlx.message("Alert clicked");
}
}); //or
dhtmlx.alert("Download is completed.");
See it in action
Skin
Default
Growl - dark
Growl - shiny
Solid
SkyBlue
Message Alert Confirm Modal Box
DHTMLX is a JavaScript library that provides essential functionality