您当前的位置:网站首页>网站技术教程>JS复制弹窗超级好看版
JS复制弹窗超级好看版
2020年07月24日
投稿作者:小熊云端
围观人数:44
教程如下
add_filter(‘the_content’, ‘old_content_message’); function zm_copyright_tips() { echo ‘<link rel=”stylesheet” type=”text/css” rel=”external nofollow” target=”_blank” href=”https://cdn.bootcss.com/sweetalert/1.1.3/sweetalert.min.css” >’; echo ‘<script src=”https://cdn.bootcss.com/sweetalert/1.1.3/sweetalert.min.js”></script>’; echo ‘<script>document.body.oncopy = function() { swal(“复制成功!”, “蕊蕊博客:若要转载请务必保留原文链接,申明来源,谢谢合作!”,”success”);};</script>’; } add_action( ‘wp_footer’, ‘zm_copyright_tips’, 100 );
标签
版权说明
免责声明:本文文章内容由一起收录网发布,但不代表本站的观点和立场,具体内容可自行甄别.