Source: World of Different Dimensions http://www.x-force.cn/article.asp?id=177
Please back up before modifying any files! ! ! ! in case! ! ! Remember! !
1. Open common/common.js with the editor
2. Find it in the code
//PBlog2 public JS code
//Author:PuterJam
Add after it:
/* I added the copy to post the content to the clipboard function. For more exciting content, please visit: */
//Copy the comment text box
functioncopytext(){
document.all.Message.select();
document.execCommand("copy");
alert("Your published content has been copied to the clipboard. After it is lost, you can use Ctrl+V (paste) to retrieve it. /n/nFor more exciting content, welcome to <Extradimensional World>")
}
3. Open class/cls_article.asp
4. Find the program code
<inputname="submit2"type="submit"class="userbutton"value="Leave a comment"accesskey="S"/>
Modified to:
<inputname="submit2"type="submit"class="userbutton"value="Leave a comment"accesskey="S"onclick="copytext();"/>
5. Open blogpost.asp and find it in it
<inputname="SaveArticle"type="submit"class="userbutton"value="submit log"accesskey="S"/>
Modified to:
<inputname="SaveArticle"type="submit"class="userbutton"value="submission log"accesskey="S"onclick="copytext();"/>
6. Open Plugins/GuestBook/guestbook.asp and find it in it
<inputname="submit"type="submit"class="userbutton"value="<%ifnotreplyMsgthen%>Leave a message<%else%>Reply to a message<%endif%>"/>
Modified to:
<inputname="submit"type="submit"class="userbutton"value="<%ifnotreplyMsgthen%>Leave a message<%else%>Reply to the message<%endif%>"onclick="copytext();"/>
7. Open blogedit.asp and find the following code
<inputname="SaveArticle"type="submit"class="userbutton"value="Save log"accesskey="S"/>
<%iflArticle.logIsDraftthen%>
<inputname="SaveDraft"type="submit"class="userbutton"value="Save and cancel draft"accesskey="D"onclick="document.getElementById('log_IsDraft').value='False'"/>
Modified to:
<inputname="SaveArticle"type="submit"class="userbutton"value="Save log"accesskey="S"onclick="copytext();"/>
<%iflArticle.logIsDraftthen%>
<inputname="SaveDraft"type="submit"class="userbutton"value="Save and cancel draft"accesskey="D"onclick="copytext();document.getElementById('log_IsDraft').value='False'"/>
alright! Now when publishing new logs, editing logs, comments, and leaving messages, the content will be copied to the clipboard "just in case"~
In order to facilitate lazy people and avoid the hassle of modifying code by themselves, this website provides the modified file packaging and download