Let me show you the renderings first. If you feel it is pretty good, please continue to refer to the implementation code.
The key code is as follows:
function tishi(content,url) {var html = '<div id="msg" style="z-index:9999;left: 5%;width: 90%;position: fixed;background:none;top:50%;"> <p style="background:none repeat scroll 0 0 #000; border-radius: 30px;color: #ffff; margin: 0 auto;padding: 1.5em;text-align: center;width: 70%;opacity: 0.8;"></p></div>';$(document.body).append(html); $("#msg").show();$(".msg").html(content);if(url){window.setTimeout("location.href='"+url+"'", 1500);}else{setTimeout('$("#msg").fadeOut()', 1500);}} tishi('Leave a message successfully');The above is a simple and easy-to-understand pop-up box introduced to you by the editor. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply to you in time. Thank you very much for your support to Wulin.com website!