[問題]FI Code Expand"程式碼"不在框內!!!

phpBB 2 MOD Support
無論是官方或非官方認證之外掛,安裝與使用問題討論。
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群

leslietaur
星球公民
星球公民
文章: 78
註冊時間: 2004-08-17 11:46

文章 leslietaur »

死狐狸 寫:fi_divexpand.js~

代碼: 選擇全部

/* 
Forum Images Expand & Hilight control for Code Divs 
Version 1.1 re-coded by SamG 05-04-03
*/ 

function selectAll(elementId) { 
  var element = document.getElementById(elementId); 
  if ( document.selection ) { 
    var range = document.body.createTextRange(); 
    range.moveToElementText(element); 
    range.select(); 
  } 
  if ( window.getSelection ) { 
    var range = document.createRange(); 
    range.selectNodeContents(element); 
    var blockSelection = window.getSelection(); 
    blockSelection.removeAllRanges(); 
    blockSelection.addRange(range); 
  } 
} 

function resizeLayer(layerId, newHeight) { 
  var myLayer = document.getElementById(layerId); 
  myLayer.style.height = newHeight + 'px'; 
} 

function codeDivStart() { 
  var randomId = Math.floor(Math.random() * 2000); 
  var imgSrc = 'templates/subSilver/images/'; 
  document.write('<div class="codetitle" align="none"><span class="genmed"><b>程式碼:</b></span><img src="' + imgSrc + 'nav_expand.gif" width="14" height="10" title="View More of this Code" onclick="resizeLayer(' + randomId + ', 200)" onmouseover="this.style.cursor = \'pointer\'" /><img src="' + imgSrc + 'nav_expand_more.gif" width="14" height="10" title="View Even More of this Code" onclick="resizeLayer(' + randomId + ', 500)" onmouseover="this.style.cursor = \'pointer\'" /><img src="' + imgSrc + 'nav_contract.gif" width="14" height="10" title="View Less of this Code" onclick="resizeLayer(' + randomId + ', 50)" onmouseover="this.style.cursor = \'pointer\'" /><img src="' + imgSrc + 'nav_select_all.gif" width="14" height="10" title="Select All of this Code" onclick="selectAll(' + randomId + ')" onmouseover="this.style.cursor = \'pointer\'" /></div><div class="codediv" id="' + randomId + '">'); 
}
bbcode.tpl~

代碼: 選擇全部

<!-- BEGIN ulist_open --><ul><!-- END ulist_open -->
<!-- BEGIN ulist_close --></ul><!-- END ulist_close -->

<!-- BEGIN olist_open --><ol type="{LIST_TYPE}"><!-- END olist_open -->
<!-- BEGIN olist_close --></ol><!-- END olist_close -->

<!-- BEGIN listitem --><li><!-- END listitem -->

<!-- BEGIN quote_username_open --></span>
<table width="90%" cellspacing="1" cellpadding="3" border="0" align="center">
<tr> 
	  <td><span class="genmed"><b>{USERNAME} {L_WROTE}:</b></span></td>
	</tr>
	<tr>
	  <td class="quote"><!-- END quote_username_open -->
<!-- BEGIN quote_open --></span>
<table width="90%" cellspacing="1" cellpadding="3" border="0" align="center">
<tr> 
	  <td><span class="genmed"><b>{L_QUOTE}:</b></span></td>
	</tr>
	<tr>
	  <td class="quote"><!-- END quote_open -->
<!-- BEGIN quote_close --></td>
	</tr>
</table>
<span class="postbody"><!-- END quote_close -->

<!-- BEGIN code_open --><table width="90%" cellspacing="0" cellpadding="0" border="0" align="center"> 
<tr> 
   
   </tr> 
   <tr> 
     <td class="code"><script type="text/javascript" src="fi_divexpand.js"></script> 
<script type="text/javascript">codeDivStart()</script> 
<!-- END code_open --> 
<!-- BEGIN code_close --></div></td> 
   </tr> 
</table> 
<span class="postbody"><!-- END code_close -->


<!-- BEGIN b_open --><span style="font-weight: bold"><!-- END b_open -->
<!-- BEGIN b_close --></span><!-- END b_close -->

<!-- BEGIN u_open --><span style="text-decoration: underline"><!-- END u_open -->
<!-- BEGIN u_close --></span><!-- END u_close -->

<!-- BEGIN i_open --><span style="font-style: italic"><!-- END i_open -->
<!-- BEGIN i_close --></span><!-- END i_close -->

<!-- BEGIN color_open --><span style="color: {COLOR}"><!-- END color_open -->
<!-- BEGIN color_close --></span><!-- END color_close -->

<!-- BEGIN size_open --><span style="font-size: {SIZE}px; line-height: normal"><!-- END size_open -->
<!-- BEGIN size_close --></span><!-- END size_close -->

<!-- BEGIN img --><img src="{URL}" border="0" /><!-- END img -->

<!-- BEGIN url --><a href="{URL}" target="_blank" class="postlink">{DESCRIPTION}</a><!-- END url -->

<!-- BEGIN email --><a href="mailto:{EMAIL}">{EMAIL}</A><!-- END email -->
覆蓋即可~ :mrgreen:
改了甚麼??教我....please
http://www.ironbeanfarm.com
^ ^
鐵豆牧場是個包括了所有電腦技術的一個論壇.裡面擁有豐富的電腦技術教學(包括了硬體,軟體,繪圖等等).進來可能可以幫到你電腦技術上的難題喔. ... 鐵豆牧場公告區 這裡會有關於鐵豆牧場最新動態的公告~~ ...
死狐狸
星球公民
星球公民
文章: 144
註冊時間: 2004-05-12 17:34
來自: 江狐....
聯繫:

文章 死狐狸 »

現在再忙~等下再跟你講 :mrgreen:
對了~應該符合你的要求了吧?
●架設主機作業系統:Xp Pro
●快速架站程式:Appserv2.4.4a
●我的網站 : 1. http://foxbbs.24cc.com 2.建造中\r
●免費空間連結: http://members.lycos.co.uk/
●您的 phpBB2 版本:1. 2.08 2. 2.0.17
------------------------------------------------------
您在使用電腦上有任何問題嗎?歡迎來江狐論壇跟大家一起解決喔!!

P.S 直接叫我"死狐狸"沒關係啦!! :mrgreen:
leslietaur
星球公民
星球公民
文章: 78
註冊時間: 2004-08-17 11:46

文章 leslietaur »

死狐狸 寫:現在再忙~等下再跟你講 :mrgreen:
對了~應該符合你的要求了吧?
我剛試了
不行連框框也沒了

怎辦><
http://www.ironbeanfarm.com
^ ^
鐵豆牧場是個包括了所有電腦技術的一個論壇.裡面擁有豐富的電腦技術教學(包括了硬體,軟體,繪圖等等).進來可能可以幫到你電腦技術上的難題喔. ... 鐵豆牧場公告區 這裡會有關於鐵豆牧場最新動態的公告~~ ...
死狐狸
星球公民
星球公民
文章: 144
註冊時間: 2004-05-12 17:34
來自: 江狐....
聯繫:

文章 死狐狸 »

對了~忘了跟你講,我的fi_divexpand.js是放在phpbb/底下的...........sorry喔
再試試看吧!!
●架設主機作業系統:Xp Pro
●快速架站程式:Appserv2.4.4a
●我的網站 : 1. http://foxbbs.24cc.com 2.建造中\r
●免費空間連結: http://members.lycos.co.uk/
●您的 phpBB2 版本:1. 2.08 2. 2.0.17
------------------------------------------------------
您在使用電腦上有任何問題嗎?歡迎來江狐論壇跟大家一起解決喔!!

P.S 直接叫我"死狐狸"沒關係啦!! :mrgreen:
leslietaur
星球公民
星球公民
文章: 78
註冊時間: 2004-08-17 11:46

文章 leslietaur »

死狐狸 寫:對了~忘了跟你講,我的fi_divexpand.js是放在phpbb/底下的...........sorry喔
再試試看吧!!
,我的fi_divexpand.js是放在phpBB2/底下
那要怎改??
http://www.ironbeanfarm.com
^ ^
鐵豆牧場是個包括了所有電腦技術的一個論壇.裡面擁有豐富的電腦技術教學(包括了硬體,軟體,繪圖等等).進來可能可以幫到你電腦技術上的難題喔. ... 鐵豆牧場公告區 這裡會有關於鐵豆牧場最新動態的公告~~ ...
死狐狸
星球公民
星球公民
文章: 144
註冊時間: 2004-05-12 17:34
來自: 江狐....
聯繫:

文章 死狐狸 »

你看你是放在哪裡,改下面紅色的地方\r
bbcode.tpl

代碼: 選擇全部

<!-- BEGIN ulist_open --><ul><!-- END ulist_open --> 
<!-- BEGIN ulist_close --></ul><!-- END ulist_close --> 

<!-- BEGIN olist_open --><ol type="{LIST_TYPE}"><!-- END olist_open --> 
<!-- BEGIN olist_close --></ol><!-- END olist_close --> 

<!-- BEGIN listitem --><li><!-- END listitem --> 

<!-- BEGIN quote_username_open --></span> 
<table width="90%" cellspacing="1" cellpadding="3" border="0" align="center"> 
<tr> 
     <td><span class="genmed"><b>{USERNAME} {L_WROTE}:</b></span></td> 
   </tr> 
   <tr> 
     <td class="quote"><!-- END quote_username_open --> 
<!-- BEGIN quote_open --></span> 
<table width="90%" cellspacing="1" cellpadding="3" border="0" align="center"> 
<tr> 
     <td><span class="genmed"><b>{L_QUOTE}:</b></span></td> 
   </tr> 
   <tr> 
     <td class="quote"><!-- END quote_open --> 
<!-- BEGIN quote_close --></td> 
   </tr> 
</table> 
<span class="postbody"><!-- END quote_close --> 

<!-- BEGIN code_open --><table width="90%" cellspacing="0" cellpadding="0" border="0" align="center"> 
<tr> 
    
   </tr> 
   <tr> 
     <td class="code"><script type="text/javascript" [color=red]src="fi_divexpand.js"[/color]></script> 
<script type="text/javascript">codeDivStart()</script> 
<!-- END code_open --> 
<!-- BEGIN code_close --></div></td> 
   </tr> 
</table> 
<span class="postbody"><!-- END code_close --> 


<!-- BEGIN b_open --><span style="font-weight: bold"><!-- END b_open --> 
<!-- BEGIN b_close --></span><!-- END b_close --> 

<!-- BEGIN u_open --><span style="text-decoration: underline"><!-- END u_open --> 
<!-- BEGIN u_close --></span><!-- END u_close --> 

<!-- BEGIN i_open --><span style="font-style: italic"><!-- END i_open --> 
<!-- BEGIN i_close --></span><!-- END i_close --> 

<!-- BEGIN color_open --><span style="color: {COLOR}"><!-- END color_open --> 
<!-- BEGIN color_close --></span><!-- END color_close --> 

<!-- BEGIN size_open --><span style="font-size: {SIZE}px; line-height: normal"><!-- END size_open --> 
<!-- BEGIN size_close --></span><!-- END size_close --> 

<!-- BEGIN img --><img src="{URL}" border="0" /><!-- END img --> 

<!-- BEGIN url --><a href="{URL}" target="_blank" class="postlink">{DESCRIPTION}</a><!-- END url --> 

<!-- BEGIN email --><a href="mailto:{EMAIL}">{EMAIL}</A><!-- END email -->
●架設主機作業系統:Xp Pro
●快速架站程式:Appserv2.4.4a
●我的網站 : 1. http://foxbbs.24cc.com 2.建造中\r
●免費空間連結: http://members.lycos.co.uk/
●您的 phpBB2 版本:1. 2.08 2. 2.0.17
------------------------------------------------------
您在使用電腦上有任何問題嗎?歡迎來江狐論壇跟大家一起解決喔!!

P.S 直接叫我"死狐狸"沒關係啦!! :mrgreen:
leslietaur
星球公民
星球公民
文章: 78
註冊時間: 2004-08-17 11:46

文章 leslietaur »

死狐狸 寫:你看你是放在哪裡,改下面紅色的地方\r
bbcode.tpl

代碼: 選擇全部

<!-- BEGIN ulist_open --><ul><!-- END ulist_open --> 
<!-- BEGIN ulist_close --></ul><!-- END ulist_close --> 

<!-- BEGIN olist_open --><ol type="{LIST_TYPE}"><!-- END olist_open --> 
<!-- BEGIN olist_close --></ol><!-- END olist_close --> 

<!-- BEGIN listitem --><li><!-- END listitem --> 

<!-- BEGIN quote_username_open --></span> 
<table width="90%" cellspacing="1" cellpadding="3" border="0" align="center"> 
<tr> 
     <td><span class="genmed"><b>{USERNAME} {L_WROTE}:</b></span></td> 
   </tr> 
   <tr> 
     <td class="quote"><!-- END quote_username_open --> 
<!-- BEGIN quote_open --></span> 
<table width="90%" cellspacing="1" cellpadding="3" border="0" align="center"> 
<tr> 
     <td><span class="genmed"><b>{L_QUOTE}:</b></span></td> 
   </tr> 
   <tr> 
     <td class="quote"><!-- END quote_open --> 
<!-- BEGIN quote_close --></td> 
   </tr> 
</table> 
<span class="postbody"><!-- END quote_close --> 

<!-- BEGIN code_open --><table width="90%" cellspacing="0" cellpadding="0" border="0" align="center"> 
<tr> 
    
   </tr> 
   <tr> 
     <td class="code"><script type="text/javascript" [color=red]src="fi_divexpand.js"[/color]></script> 
<script type="text/javascript">codeDivStart()</script> 
<!-- END code_open --> 
<!-- BEGIN code_close --></div></td> 
   </tr> 
</table> 
<span class="postbody"><!-- END code_close --> 


<!-- BEGIN b_open --><span style="font-weight: bold"><!-- END b_open --> 
<!-- BEGIN b_close --></span><!-- END b_close --> 

<!-- BEGIN u_open --><span style="text-decoration: underline"><!-- END u_open --> 
<!-- BEGIN u_close --></span><!-- END u_close --> 

<!-- BEGIN i_open --><span style="font-style: italic"><!-- END i_open --> 
<!-- BEGIN i_close --></span><!-- END i_close --> 

<!-- BEGIN color_open --><span style="color: {COLOR}"><!-- END color_open --> 
<!-- BEGIN color_close --></span><!-- END color_close --> 

<!-- BEGIN size_open --><span style="font-size: {SIZE}px; line-height: normal"><!-- END size_open --> 
<!-- BEGIN size_close --></span><!-- END size_close --> 

<!-- BEGIN img --><img src="{URL}" border="0" /><!-- END img --> 

<!-- BEGIN url --><a href="{URL}" target="_blank" class="postlink">{DESCRIPTION}</a><!-- END url --> 

<!-- BEGIN email --><a href="mailto:{EMAIL}">{EMAIL}</A><!-- END email -->
改好哩!!!
謝謝

你晚一點教我吧!
http://www.ironbeanfarm.com
^ ^
鐵豆牧場是個包括了所有電腦技術的一個論壇.裡面擁有豐富的電腦技術教學(包括了硬體,軟體,繪圖等等).進來可能可以幫到你電腦技術上的難題喔. ... 鐵豆牧場公告區 這裡會有關於鐵豆牧場最新動態的公告~~ ...
主題已鎖定

回到「外掛問題討論」