标签:
JS message是一个非常小的(用gzip压缩之后才3kb)JavaScript library 用于轻松在网页上展示通知提醒。除了通知,它还支持创建带风格的对话框和确认对话框。不需要任何JS框架。每一种消息类型(除了通知提醒)都拥有回调事件用于实现可定制的交互功能。消息外观也通过CSS自定义。
支持大部分浏览器除了IE6。
项目地址: http://dhtmlx.github.com/message/
下载地址: https://github.com/DHTMLX/message
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.
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.");
标签:
原文地址:http://www.cnblogs.com/boonya/p/4175320.html