摘要:今天给大家推荐一个复制文章后弹出版权提醒的方法,运用script在wordpress主题的文章内容页面添加以下代码,通常…
今天给大家推荐一个复制文章后弹出版权提醒的方法,运用script在wordpress主题的文章内容页面添加以下代码,通常为single.php文章,将下面的代码添加下文件的头部位置,在复制该页面内容时就会自动添加代码中的内容。
|
<script>document.body.oncopy=function(){alert(“复制成功!转载请保留原文链接,谢谢合作!”);}</script>
|
代码中的提示内容可自主修改。
来源:http://www.wazhuti.com/2507.html
微信公众号
手机浏览(小程序)
Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(): Failed to enable crypto in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_13099.jpg): failed to open stream: operation failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57