my_msg.html 979 Bytes
<script>
function my_msg(val,type) {
if(type){
layer.open({
type: 1
,content: '<p style=" text-align:center; margin-bottom: 5px"><img src="__PUBLIC__/images/sucess_g.png" style="width: 42px"></p><p class="fs16" style="margin-top: 10px">'+val+'</p>'
,style: 'color:#fff; background:#333; padding:30px 80px;border-radius:5px; ',
    /*,style: 'color:#fff; background:#333; padding:18px 18px;border-radius:5px; ',*/
time:2,
});
}else{
layer.open({
type: 1
,content: '<p style="text-align:center; margin-bottom: 5px"><img src="__PUBLIC__/images/gt.png" style="width: 30px"></p><p>'+val+'</p>'
,style: 'color:#fff; background:#333; padding:18px 18px;border-radius:5px; ',
time:2,
});
}
}

function format_time(isFull) {
var d = new Date();
var m = d.getMonth() + 1;  if(m<10) m="0"+m;
var dd = d.getDate(); if (dd < 10) dd = "0" + dd;
var fm=[d.getFullYear(),m,dd ].join('-');
if(isFull==1)
fm=fm + ' '+ [d.getHours(), d.getMinutes(), d.getSeconds()].join(':')
return fm;
}
</script>