Fork自Alert提示框

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>RunJS</title>
<script id="jquery_183" type="text/javascript" class="library" src="/js/sandbox/jquery/jquery-1.8.3.min.js"></script>


<script type="text/javascript" src="jquery-1.11.0.js"></script>

</script>
<script type="text/javascript" src="http://sandbox.runjs.cn/uploads/rs/457/xronimgj/AlertMessage-1.3.js"></script>
</head>
<body>
<h2 style = "color:red">
您只需要一个小小的JS就可以完成以下功能,移动 IOS7弹出提示
</h2>
<button onclick="javascript:showMessage();">Alert提示</button>
<button onclick="javascript:showNotify();">Notify通知</button>
<button onclick="javascript:showConfirm();">Confirm确认框</button>
</body>
</html>

 

<script>

function showMessage(){
Message.showMessage("Hello RunJS! 我是郏高阳");
};
function showNotify(){
Message.showNotify("这是一个2秒钟隐藏的通知",2000);
}
function showConfirm(){
Message.showConfirm("你是郏高阳吗?","是","不是",function(){
Message.showMessage("点击了:是");
},function(){
Message.showMessage("点击了:不是");
});
}



</script>

 

posted @ 2016-05-23 14:52  八路逆袭寡妇村  阅读(127)  评论(0)    收藏  举报
www.zxzidian.com