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

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}
  • 1