나는 그가 Z-Blog에 실행중인 코드 함수를 추가하는 것을 보았다. 며칠 쉬 후에, 나는 이렇게 유휴 상태를 유지하면 녹슬 겠다는 것을 두려워했다. 1 시간 반 후에 블로그에 실행되는 기능을 추가했습니다. L- 블로그에서 수정되었으므로 L- 블로그에도 적합합니다. 또한 FBS는 L- 블로그에서 수정 되었으며이 기사의 메소드를 사용하여 실행중인 코드 기능을 추가해야합니다. 또한 코드 복사 및 저장 코드는 각 브라우저와 호환되는 솔루션을 찾지 못했기 때문에 추가되지 않았습니다.
예:
단계는 다음과 같습니다.
1. 포함/common.js에서 다음 코드를 추가하십시오.
코드 사본은 다음과 같습니다.
functionruncode (codeobjid) {
varcodeobj = document.getElementById (CodeObjid)
varcodest = codeobj.value;
if (codest! = "") {
varcodewin = window.open ( '', '', '');
codewin.document.open ( 'text/html', 'replace');
codewin.opener = null
codewin.document.write (codest);
codewin.document.close ();
}
}
2. include/ubbcode.asp (change [】 ~ [])에서 strcontent = re.replace (strcontent, "【code】")를 찾아 다음 코드를 추가하십시오.
l- 블로그 :
코드 사본은 다음과 같습니다.
re.pattern = "/[html/] (<br>)+"
strcontent = re.replace (strcontent, "【html】")
FBS :
코드 사본은 다음과 같습니다.
re.pattern = "/[html/] (<br/>)+"
strcontent = re.replace (strcontent, "【html】")
그런 다음 re.pattern = "/[code /개/])를 찾은 다음 setStrmatches = 다음 코드를 추가 한 다음 세그먼트 코드의 아무것도 다음과 같습니다.
코드 사본은 다음과 같습니다.
re.pattern = "/[html/] (.*??)/ [// html/]" "
setStrmatches = re.Execute (strcontent)
foreachstrmatchinstrmatches
RNDSTR = int (7999*RND+2000)
tmpstr1 = strmatch.submatches (0)
strcontent = replace (strcontent, strmatch.value, "<textarearows ="10 "" "_
& "style =" "너비 : 90%;" "class =" "input_border" "id =" "html _"& rndstr & "" "" ">"_.
& tmpstr1 & "</textarea> <br/>"_
& "<inputtype =" "버튼" "onclick =" "runcode ( 'html _"& rndstr & "');"value = ""runcode ""/> "_
& "[Ctrl+A 모든 선택 팁 : 먼저 코드를 수정 한 다음 실행을 누릅니다]") ").
다음
setstrmatches = 아무것도 없습니다
3. 수정이 완료되었습니다. 로그를 게시 할 때 코드를 사용하여 [/html]에서 []로 [] ([]로 [])를 실행하여 실행중인 코드 함수를 사용 할 수 있습니다.