smile-alert Examples

demo 1

show the title and confirm button
	
	<script type="text/javascript">
		alert('demo1 title');
	</script>

demo 2

show the title message and confirm button
	
	<script type="text/javascript">
		alert('this is title','show message');
	</script>

demo 3

show the title message cancel button and confirm button
	

	<script type="text/javascript">
		var options = {
			cancel          : true,
			cancelText		: 'cancel',
			cancelCallBack 	:function(event){
				consle.log('options.cancelCallBack');
			},
			delay           :0,
			confirm	  		: true,
			confirmText 	: 'confirm',
			confirmCallBack : function(event){
				consle.log('options.confirmCallBack');
			}
		}
		alert('demo 3','show message',options);
	</script>

demo 4

	

	<script type="text/javascript">
		var options = {
			cancel          : false,
			cancelText		: 'cancel',
			cancelCallBack 	:function(event){
				console.log('options.cancelCallBack');
			},
			delay           :0,
			confirm	  		: true,
			confirmText 	: 'confirm',
			confirmCallBack : function(event){
				console.log('options.confirmCallBack');
			}
		}
		alert('demo 4','show message',options);
	</script>

demo 5

	

	<script type="text/javascript">
		var options = {
			cancel          : true,
			cancelText		: 'cancel button',
			cancelCallBack 	:function(event){
				console.log('options.cancelCallBack');
			},
			delay           :300,
			confirm	  		: false,
			confirmText 	: 'confirm button',
			confirmCallBack : function(event){
				console.log('options.confirmCallBack');
			}
		}
		alert('demo 5','show message',options);
	</script>