2003³â 1¿ù 8ÀÏ ÀÌÈÄ 
¸ðµÎ ¸í  ¿À´Ã ¸í 
¸ÞÀÎ ÆäÀÌÁö  
Ä®·³ º¸±â  
Ä«Å÷ º¸±â  
°Ô½ÃÆÇ °¡±â  
»çÀÌÆ®¸Ê  
±×¹ÛÀÇ °Íµé  

°¡ÀÔÇϸé Á¤¸» ÆíÇÕ´Ï´Ù;;
¢º¸®µð ½ºÅ¸ÀÏ
·£´ý¹è³Ê ºÏ¸¶Å©
Æß Àü¿ë À̸ðÅ×ÀÌÆÛ
 

The others
¸®µðÆø½º´åÄÄ ºôµù¸Ê
¸®µðÆø½º´åÄÄÀ» ¸¸µé¶§ »ç¿ëµÈ °¢Á¾ ¼Ò½º¸¦ ¸ð¾Ò½À´Ï´Ù.
Áú¹®Àº Áú´ä°Ô½ÃÆÇ¿¡¼­¸¸ ¹Þ½À´Ï´Ù.

 Multiple Show & Hide function  
 ¸®µð  posted at 2004-05-06 09:29:06
5355 hits  0 comments
 http://reedyfox.com/fox NeWin reedyfox is level 38  llllllllll 
 ÆÛ¸Ó¸µÅ© : http://reedyfox.com/island.php/building/83  [º¹»ç]
This tip is based on Tattertools' source code.
http://www.tattertools.com»õâÀ¸·Î ¿­±â



1) Insert below code at the top of write.php which is in skin directory.
(/skin/skin name/write.php)


<script>
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();
        }
}
</script>



And make a button at suitable place in the same file.
It's okay wherever you can see it in 'write-mode'.

<a href="JavaScript:onclick=AddshowandhideTag('[showandhide|Show more|Hide this|','|showa$ndhide]');">Show & Hide</a>



2) Insert below code at the top(suitable) of setup.php which is in skin directory, too.

<script>
function layer_toggle(obj) {
        if (obj.style.display == 'none') obj.style.display = 'block';
        else if (obj.style.display == 'block') obj.style.display = 'none';
}
</script>



3) Open list_check.php. (include/list_check.php)
Approximately at the line 82, you can find this.

                // À̹ÌÁö ¹Ú½º »ç¿ëÀ» À§Çؼ­ Á¤±ÔÇ¥Çö½Ä »ç¿ë
                if($data[ismember]) {
                        $imageBoxPattern = "/\[img\:(.+?)\.(jpg|gif)\,align\=([a-z]){0,}\,width\=([0-9]+)\,height\=([0-9]+)\,vspace\=([0-9]+)\,hspace\=([0-9]+)\,border\=([0-9]+)\]/i";
                        $data[memo]=preg_replace($imageBoxPattern,"<img src='icon/member_image_box/$data[ismember]/\\1.\\2' align='\\3' width='\\4' height='\\5' vspace='\\6' hspace='\\7' border='\\8'>", stripslashes($data[memo]));
                } else {
                        $data[memo]=stripslashes($data[memo]);
                }


And add code under that like this.

                // À̹ÌÁö ¹Ú½º »ç¿ëÀ» À§Çؼ­ Á¤±ÔÇ¥Çö½Ä »ç¿ë
                if($data[ismember]) {
                        $imageBoxPattern = "/\[img\:(.+?)\.(jpg|gif)\,align\=([a-z]){0,}\,width\=([0-9]+)\,height\=([0-9]+)\,vspace\=([0-9]+)\,hspace\=([0-9]+)\,border\=([0-9]+)\]/i";
                        $data[memo]=preg_replace($imageBoxPattern,"<img src='icon/member_image_box/$data[ismember]/\\1.\\2' align='\\3' width='\\4' height='\\5' vspace='\\6' hspace='\\7' border='\\8'>", stripslashes($data[memo]));
                } else {
                        $data[memo]=stripslashes($data[memo]);
                }


// show and hide
$imageBoxPattern = "/\[showandhide\|([^\n]*)\|([^\n]*)\|([0-9]+)\|/i";
$data[memo]=preg_replace($imageBoxPattern,"<div id='a\\3' style='display:block'><a href='javascript:;' onclick=\"layer_toggle(document.getElementById('a\\3')); layer_toggle(document.getElementById('b\\3')); return false;\">\\1</a></div><div id='b\\3' style='display:none'><a href='javascript:;' onclick=\"layer_toggle(document.getElementById('a\\3')); layer_toggle(document.getElementById('b\\3')); return false;\">\\2</a><br />", $data[memo]);

$data[memo]=str_replace("|showa$ndhide]","</div>", $data[memo]);



I inserted '$' not to be replaced, so you must erase '$'. (marked in red)


  PRINT Text  PRINT HTML  

  Trackbacks for this Posting (0)
'»ý°¢Çϴ¼¶ ¹Ù´å°¡ - Multiple Show & Hide function'
LIST ALL               GO TO THE TOP


N
   Subject
Posted by
Date
H
64
   (ÄÚ¸à ¸»°í) ´äº¯±Û ´Þ¸®¸é ÂÊÁö º¸³»±â 1+

¸®µð
2003/06/23  2809
N
  Ãâó¸¦ ¸í±âÇÏÁö ¾ÊÀº ÆßÀº ±ÝÁöÇÕ´Ï´Ù.

¸®µð
2003/10/08  2564
N
  ÀÌ ÀÚ·áµéÀÇ ¾²ÀÓ»õ¿¡ ´ëÇÏ¿© 1+

¸®µð
2003/02/14  3104

   Multiple Show & Hide function

2004/05/06  5355
60
   MY VIEW ±â´É (³» ±Û¸¸ º¸¿©ÁÖ±â) 3+

2003/09/02  7237
59
   PHP 5 ÀÌ»óÀ¸·Î ÀÌÀü½Ã ·Î±×ÀÎ ¾ÈµÇ´Â ¹®Á¦

2018/06/10  1023
58
  ºñ¹Ð±ÛÀÔ´Ï´Ù [re] ¸®µðÆø½º´åÄÄ¿¡¼­ ¾²°í ÀÖ´Â °Í

2003/08/16  203
57
   [re] ¿©·¯°³ÀÇ ¸¶ÀÌÄ®·³À» select box ·Î...

2004/01/08  2540
56
  ºñ¹Ð±ÛÀÔ´Ï´Ù [re] À̹ÌÁö/¹Ìµð¾î ÀÚµ¿¸µÅ© - mms ÇØ°á ¹öÀü 3+

2003/09/27  357
55
  ºñ¹Ð±ÛÀÔ´Ï´Ù [re] À̹ÌÁö/¹Ìµð¾î ÀÚµ¿¸µÅ© - ÅÂ±× »ç¿ë½Ã ±úÁü Çö»ó 1+

2004/02/04  82
54
  ºñ¹Ð±ÛÀÔ´Ï´Ù [re] ÀÚµ¿¸µÅ©½Ã À̹ÌÁö ±úÁü Áõ»ó

2003/08/28  82
53
   [re] ÄÚ¸àÆ® °³¼ö¿¡ Æ®·¢¹é ¼ýÀÚ »©±â

2004/02/10  2221
52
   [re] Æ®·¢¹é ´Þ¸®¸é ÂÊÁö·Î ¾Ë·ÁÁÖ±â 1+

2004/02/10  2822
51
   [Á¦·Îº¸µå] °Ô½Ã¹° ÀÛ¼ºÀÚ¿¡°Ô ÄÚ¸àÆ® ¾Ë¸²±â´É 4+

2003/02/14  6574
50
   [Á¦·Îº¸µå] °Ô½Ã¹° ÃÖ±ÙÄÚ¸àÆ® »ö»ó ´Ù¸£°Ô Çϱâ 2+

2003/02/14  3952
49
   [Á¦·Îº¸µå] ´ÐÄÜ, ȸ¿øÀÌ ¾Ë¾Æ¼­ ¾÷·Îµå

2003/02/14  2673
48
   [Á¦·Îº¸µå] ÃֱٰԽù° ÃÖ±ÙÄÚ¸àÆ® »ö»ó ´Ù¸£°Ô Çϱâ

2003/02/14  3245
47
   [Á¦·Îº¸µå] ÃֱٰԽù°¿¡ »õ±Û Ç¥½ÃÇϱâ

2003/02/16  2583
46
   [Á¦·Îº¸µå] ÄÚ¸àÆ® ´Þ¸° ±ÛÀº »èÁ¦ ¸øÇÏ°Ô Çϱâ

2003/07/28  1808
45
   [Á¦·Îº¸µå] ȸ¿ø°¡ÀÔÇÏ¸é °ü¸®ÀÚ¿¡°Ô ¾Ë¸² ÂÊÁö

2003/02/14  2968
44
   [Æß±ÝÁö] Æ®·¢¹é ±â´É ¾÷±×·¹À̵å 1+1

2004/02/10  2761
43
  ºñ¹Ð±ÛÀÔ´Ï´Ù °¢Á¾ ¹Ìµð¾î ÀÚµ¿¸µÅ©

2003/04/02  386
42
   °£´ÜÇÑ ÅؽºÆ® Àμâ / HTML Àμâ

2004/03/27  4410
41
   ±ÇÇÑ·¹º§°ú º°µµ·Î ½ºÅ³·¹º§°ú ±×·¡ÇÁ Ç¥½ÃÇϱâ 1+

2004/01/12  3702
40
   ³¯Â¥Ç¥½Ã¿¡ »ç¿ëµÇ´Â ¸Å°³º¯¼ö

2003/02/17  2346
LIST ALL   1 2 3  Next
Copyright 1999-2024 Zeroboard

 
»ý°¢ÇÏ´Â ¼¶, ¹Ù´å°¡´Â ¸®µð°¡ ¿î¿µÇÏ´Â °³ÀÎ Ä®·³ »çÀÌÆ®À̸ç ÀϺΠÄÁÅÙÃ÷´Â ¸®µð ¿ÜÀÇ ÇÊÁø¿¡ ÀÇÇØ ÀÛ¼ºµÇ¾ú½À´Ï´Ù. ÀÌ°÷ÀÇ ¸ðµç ÄÁÅÙÃ÷´Â Ãâó(Deep Link URL) ¹× ÀÛ°¡¸¦ ¸í½ÃÇÏ´Â Á¶°ÇÀ¸·Î ºñ»ó¾÷Àû ¿ëµµÀÇ ÀüÁ¦/º¹Á¦°¡ °¡´ÉÇÕ´Ï´Ù. ±×·¯³ª ÀÌ°÷¿¡ °ÔÀçµÈ ÄÁÅÙÃ÷ÀÇ ÃëÁö ¶Ç´Â ÀÛ°¡ÀÇ Àǵµ°¡ ¿Ö°îµÇ¾î Çؼ®µÉ ¼ö ÀÖ´Â ÄÁÅÙÃ÷ º¯ÇüÀº ±ÝÁöÇÕ´Ï´Ù. ÀÌ°÷¿¡ ±âÀçµÈ ÀüÀÚ¿ìÆíÁÖ¼Ò¿¡ ´ëÇÑ ÀÏüÀÇ ¼öÁýÇàÀ§¸¦ °ÅºÎÇÕ´Ï´Ù.(°Ô½ÃÀÏ 2008³â 1¿ù 1ÀÏ)
Google
  Autumn leaves.... - lunebleue  
Window close