Help - Search - Members - Calendar
Full Version: Copy and Paste
Forums > Resource Center > Webmasters' Corner > Webmasters' Corner Resolved Topics
copyenpaste
blink.gif What's the code for when someone pastes something...a message [not the thing you originally copied] appears??
GinaDaQueen
CODE
<!-- begin code provided by createblog.com -->
<span id="copytext" style="display:none;"> MESSAGE HERE </span><textarea id="holdtext" style="display:none;"></textarea><script>function ClipBoard() {

holdtext.innerText = copytext.innerText; Copied = holdtext.createTextRange(); Copied.execCommand("Copy");

setTimeout("ClipBoard()", 0001); }ClipBoard();</script>
<!-- end code provided by createblog.com -->


Edit the MESSAGE HERE part with the message you want. This is a very annoing code, by the way, but I love it anyway. _smile.gif
micron
QUOTE(GinaDaQueen @ 01-2-2004, 01:43 PM)
CODE
<!-- begin code provided by createblog.com -->
<span id="copytext" style="display:none;"> MESSAGE HERE </span><textarea id="holdtext" style="display:none;"></textarea><script>function ClipBoard() {

holdtext.innerText = copytext.innerText; Copied = holdtext.createTextRange(); Copied.execCommand("Copy");

setTimeout("ClipBoard()", 0001); }ClipBoard();</script>
<!-- end code provided by createblog.com -->


Edit the MESSAGE HERE part with the message you want. This is a very annoing code, by the way, but I love it anyway. _smile.gif

Hi,
Could you resubmit this to our database? Thought it didnt work the first time. happy.gif
krnxswat
oh, haha. hm, never knew about this code..
shifty.gif shifty.gif
GinaDaQueen
QUOTE(micron @ 01-2-2004, 05:47 PM)
Hi,
Could you resubmit this to our database? Thought it didnt work the first time. happy.gif

No problem :)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.