How to display the copy address in DEDECMS?
I saw that many websites have several icons under the articles, such as the function of copying the article address and recommending it to QQ friends, which is very good. Let me share the code with everyone
Recommended learning: Dream Weaver cms
Add the following code to the verification position in the corresponding template
The code is as follows:
<script language="JavaScript"> <!-- function copyUrl(url){ var content=''; window.clipboardData.setData("Text",url); alert("复制成功,请粘贴到你的QQ/MSN上推荐给你的好友"); }//--> </script> <a href="javascript:copyUrl('{dede:field name='title'/}\n{dede:field name='arcurl'/}')">复制地址给好友</a>
The above is the detailed content of How to display the copy address in DEDECMS. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SublimeText3 Linux new version
SublimeText3 Linux latest version

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Notepad++7.3.1
Easy-to-use and free code editor