公告板
 2007-01-18網址變更,請使用新網址瀏覽網站。http://blog.nnickk.com/
 2007-01-17有任何問題歡迎到留言板留言!
 廣告一則電腦桌椅專賣店,另有辦公桌椅、家具、寢具等您來挑...

PJblog-2.5-用參數去設定置頂的日誌是否展開

找class/cls_default.asp

第一步

CODE:


<div class=&#34;BttnE&#34; onclick=&#34;TopicShow(this,'log_<%=webLogArr(0,PageCount)%>')&#34;></div>


改成
CODE:


         <%if firstpageopen=&#34;Y&#34; then%>

             <div class=&#34;BttnC&#34; onclick=&#34;TopicShow(this,'log_<%=webLogArr(0,PageCount)%>')&#34;></div>

         <%else%>

             <div class=&#34;BttnE&#34; onclick=&#34;TopicShow(this,'log_<%=webLogArr(0,PageCount)%>')&#34;></div>

         <%end if%>



第二步

CODE:


<div id=&#34;log_<%=webLogArr(0,PageCount)%>&#34;<%if webLogArr(9,PageCount)=true then %> style=&#34;display:none&#34;<%end if%>>


改成
CODE:


         <%if firstpageopen=&#34;Y&#34; then%>

          <div id=&#34;log_<%=webLogArr(0,PageCount)%>&#34;<%if webLogArr(9,PageCount)=true then %> style=&#34;display:&#34;<%end if%>>

         <%else%>

          <div id=&#34;log_<%=webLogArr(0,PageCount)%>&#34;<%if webLogArr(9,PageCount)=true then %> style=&#34;display:none&#34;<%end if%>>

         <%end if%>



第三步
修改const.asp


CODE:


Const IPViewURL=&#34;http://www.dheart.net/ip/index.php?ip=&#34;



下面增加這一行
CODE:


Const firstpageopen = &#34;N&#34; '設定首頁公告是否展開,Y為展開,N為不展開。



引用通告地址: 點擊獲取引用地址
標籤:  pjblog{422}
評論: 2 | 引用: 0 | 閱讀: 1397 | 列印 | 文件 | 轉發
 收入網摘
  • 1 
nnickk [ 2006-05-14 15:54 | 回覆 | 編輯/刪除 ]
[quote=ashang]试过没有用,当然是大写的"Y"[/quote] 可不可以將您這兩個檔案寄給我研究一下, class/cls_default.asp const.asp nnickk@gmail.com
ashang [ 2006-05-14 15:05 | 回覆 | 編輯/刪除 ]
试过没有用,当然是大写的"Y"
  • 1 
發表評論
暱 稱(*): 密 碼:
網 址: E - mail:
驗證碼(*): 驗證碼圖片 選 項:
頭 像:
內 容(*):