코딩 방법에 따라 LMC Button에 몇 가지 문제가 있습니다.클립 보드에 복사하는 LMC 버튼 편집
ShowLMCButton('Copied Text Here');
"여기에 텍스트를 복사"단어와 함께 페이지가로드, 이미지를 클릭하면 클립 보드에 복사 할 때 이미지 "복사"가로드됩니다.
내가 할 경우이 : 단어 "새 텍스트"클립에 아무 문제가 복사되지 않지만 변수 텍스트가 페이지로드가 필요
var text = "New Text";
ShowLMCButton(text);
. 내가 단어를 바꿀 수있는 방법이 없습니다.
이것은
function ShowLMCButton(cliptext, capt, js, furl)
{
var params = 'txt=' + encodeURIComponent(cliptext);
if (!isNotEmpty(furl)) { furl = "clippy/lmcbutton.swf"; }
if (isNotEmpty(capt)) { params += '&capt=' + capt; }
if (isNotEmpty(js)) { params += '&js=' + js; }
document.write('<object width="40" height="20">');
document.write(' <param name="movie" value="' + furl + '">');
document.write(' <PARAM NAME=FlashVars VALUE="' + params + '">');
document.write(' <embed src="' + furl + '" flashvars="' + params + '" width="40" height="20"></embed>');
document.write('</object>');
//alert('file: ' + furl + ' Params: ' + params); // debug
}
어떻게 내가 텍스트 영역/입력 텍스트 필드에 입력 한 텍스트를 복사 할 수 ShowLMCButton 기능?
Here is the demo of the button
아무도 도와 줄 수 없습니까? : –
당신은 이것을 해결할 수 있었습니까? 나는 복사 할 값을 변경하면서 동일한 prob를 가졌습니다. ( –
화성 -o 작동 방법 – Jus12