標籤:
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.
DownloadLatest version from GitHubExamples
dhtmlx.confirm({ type:"confirm", text: "Continue?", callback: function(result){ dhtmlx.message("Result: "+result); }});//ordhtmlx.confirm("Continue?");
dhtmlx.alert({ text: "Download is completed.", callback: function(){ dhtmlx.message("Alert clicked"); }});//ordhtmlx.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
JS Message 網頁訊息提醒