
怎樣變成 好像竹貓一樣:

謝謝
版主: 版主管理群



問題外掛:(例:快速回覆)
參考連結:(連結至外掛發表區的主題)
使用版本:(例:phpBB 2.0.2)
網站位置:(例:http://phpbb-tw.net)
狀況描述:
(這裡描述您遇到的狀況)
補充:
(若是需要,請列出您曾裝過的外掛名稱)

對不起.....下次不會...神川小羽 寫:外掛問題請使用此格式發表唷 方便的話 請提供你的網址 或是攝圖來看看吧\r問題外掛:(例:快速回覆)
參考連結:(連結至外掛發表區的主題)
使用版本:(例:phpBB 2.0.2)
網站位置:(例:http://phpbb-tw.net)
狀況描述:
(這裡描述您遇到的狀況)
補充:
(若是需要,請列出您曾裝過的外掛名稱)

程式碼的code放在哪的阿WaterPeng 寫:寫出你的code吧....
應該是程式碼的code沒寫到那一個區段內才會落在外面...


不,死狐狸 寫:所以說你是要這樣嗎??
程式碼:
-----------------------------------------------------
xxxx<-----有箭頭的地方(x=箭頭
-----------------------------------------------------
|abcd
|
-----------------------------------------------------

我想要死狐狸 寫:所以是要跟竹貓一樣的就是了?


謝謝...但可不可以交我改?我想學.....死狐狸 寫:把fi_divexpand.js和和你風格底下的bbdoce.tpl給我(非外掛包裡的bbdoce.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>
<td><span class="genmed"><b>{L_CODE}:</b></span></td>
</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 -->代碼: 選擇全部
<td><span class="genmed"><b>{L_CODE}:</b></span></td>代碼: 選擇全部
/*
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"><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 + '">');}代碼: 選擇全部
/*
Forum Images Expand & Hilight control for Code Divs
Version 1.1 re-coded by SamG 05-04-03
*/
\r
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 + '">');
}代碼: 選擇全部
<!-- 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 -->