티스토리 뷰

http://www.cssscript.com/super-simple-javascript-message-toaster-toast-js/


http://www.cssscript.com/demo/super-simple-javascript-message-toaster-toast-js/




Load the necessary toast.js JavaScript library in your project.

1<script src="toast.js"></script>

Display a basic toast message on your web application.

1var toast = new iqwerty.toast.Toast();
2toast.setText('This is a basic toast message!')
3.show();

Custom the duration. This toast message will auto dismiss after a timeout (5000 ms).

1var toast = new iqwerty.toast.Toast();
2toast.setText('This is a basic toast message!')
3.setDuration(5000)
4.show();

Style the toast message.

1var toast = new iqwerty.toast.Toast();
2toast
3.setText('This is a basic toast message!')
4.stylize({
5  background: 'pink',
6  color: 'black',
7  'box-shadow''0 0 50px rgba(0, 0, 0, .7)'
8})
9.show();


댓글
댓글쓰기 폼