i am sorry that i don't know korean language, so i really want to get your help.
i am chinese in HK. i know chinese and english.
i use zboard in my site. i want to use the special effect on "Show & Hide".
eg.
i go to
http://www.nzeo.com/bbs/zboard.php?id=cgi_tip&page=1&sn1=&divpage=1&sn=off&ss=on&sc=off&keyword=hide&select_arrange=headnum&desc=asc&no=5857
there are something i can't understand.
1) in write.php
is this file in the "skin/skin file/write.php"?
just insert the below at the top of the write.php?
function random(n) {
return Math.floor(Math.random()*n);
}
function AddshowandhideTag(ch1,ch2){
if(document.write.memo.createTextRange){
document.write.memo.focus();
document.selection.createRange().duplicate().text = ch1 + random(10000) + "|" + document.selection.createRange().duplicate().text + ch2;
document.selection.createRange().select();
}
}
2)
function layer_toggle(obj) {
if (obj.style.display == 'none') obj.style.display = 'block';
else if (obj.style.display == 'block') obj.style.display = 'none';
}
i don't know where should i put into?
i know it inserts between <head> and </head>, but what is the specific place?
is it inside the "skin/skin file" or in the root?
3) include/list_chech.php ?? <--- is it wrong?
it should be list_check.php, right?
// show and hide
$imageBoxPattern = "/(W)[showandhide(W)|([^(W)n]*)(W)|([^(W)n]*)(W)|([0-9]+)(W)|/i";
$memo = preg_replace($imageBoxPattern,"<div id=a(W)(W)3 style=display:block><a class=keyword href=.javascript; onclick=(W)"layer_toggle(document.getElementById('a(W)(W)3')); layer_toggle(document.getElementById('b(W)(W)3')); return false;(W)">(W)(W)1</a></div><div id=b(W)(W)3 style=display:none ><a class=keyword href=.javascript; onclick=(W)"layer_toggle(document.getElementById('a(W)(W)3')); layer_toggle(document.getElementById('b(W)(W)3')); return false;(W)">(W)(W)2</a><br>", $memo);
$memo = str_replace("
" ,"</div>", $memo);
there is question i really don't understand, it is "where should the passage put into the right place?
1)