首页 信息技术正文

又整了下我的自留地

一、增加了GreyBox特效

具体见:http://bbs.rainbowsoft.org/viewthread.php?tid=11455&highlight=greybox

GreyBox 图片特效 for zblog 1.7(比lightbox效果更炫,安装更简单)

由zx.asd提供.

1. GreyBox 介绍及下载: http://orangoo.com/labs/GreyBox/

2.解压GreyBox_v5_30,将greybox文件上传到博客目录下

3.修改模板default.html , catalog.html , single.html
1). 在< head > < /head > 加入:

    <script type="text/javascript">
        var GB_ROOT_DIR = "<#ZC_BLOG_HOST#>greybox/";
    </script>
    <script type="text/javascript" src="<#ZC_BLOG_HOST#>greybox/AJS.js"></script>
    <script type="text/javascript" src="<#ZC_BLOG_HOST#>greybox/AJS_fx.js"></script>
    <script type="text/javascript" src="<#ZC_BLOG_HOST#>greybox/gb_scripts.js"></script>
    <link href="<#ZC_BLOG_HOST#>greybox/gb_styles.css" _fcksavedurl=""<#ZC_BLOG_HOST#>greybox/gb_styles.css"" _fcksavedurl=""<#ZC_BLOG_HOST#>greybox/gb_styles.css"" _fcksavedurl=""<#ZC_BLOG_HOST#>greybox/gb_styles.css"" _fcksavedurl=""<#ZC_BLOG_HOST#>greybox/gb_styles.css"" _fcksavedurl=""<#ZC_BLOG_HOST#>greybox/gb_styles.css"" _fcksavedurl=""<#ZC_BLOG_HOST#>greybox/gb_styles.css"" rel="stylesheet" type="text/css" media="all" />


2). 在底部的 script 内 加入:

 
$(document).ready(function(){
        $("div[@class='post-body']").find("a[@href$=.bmp],a[@href$=.png],a[@href$=.gif],a[@href$=.jpg],a[@href$=.jpeg]").each(function(i){
                $(this).rel("gb_imageset[nice_pics]");
        });
});

4. 如何使用.
1). 用两个UBB组合,如
 
[code][U R L=http://blog.rainbowsoft.org/show/zb_users/upload/2007/3/effect.cn.png][I M G=500,375,记忆碎片]http://blog.rainbowsoft.org/show/zb_users/upload/2007/3/zb_users/upload/2007/3/s_effect.cn.png[/IMG][/URL][/code]
不知道怎么才能在这里边插入UBB代码而不被执行,此处本是一行代码示例
用插入文本框的方式试了也不行
 
 
2). html代码,如

 
<a href="http://blog.rainbowsoft.org/show/zb_users/upload/2007/3/effect.cn.png" target="_blank"><img src="http://blog.rainbowsoft.org/show/zb_users/upload/2007/3/s_effect.cn.png" alt="记忆碎片"/></a>
 
二、增加了节日提醒功能
 
 
使用方法:将4nothing_canlendar.rar解压后上传到博客的script目录下,然后修改Template目录下的default.html,



 
<div class="function" id="divCalendar">
<h3><#ZC_MSG050#></h3>
<#CACHE_INCLUDE_CALENDAR#>
</div>

后添加

 
<div class="function">
<script language="JavaScript" src="<#ZC_BLOG_HOST#>script/4nothing_calendar.js" type="text/javascript"></script>
</div>

即可。

如要在每篇文章中都添加,请修改template目录下的single.html文件
 
 
三、增加了关于博主模块、将原先直接写在模板文件中的代码单独放出
 
从:http://bbs.rainbowsoft.org/viewthread.php?tid=253&page=1#pid21745 得知1.7中可以引用INCLUDE下的任意文件,使用<#CACHE_INCLUDE_文件名(全大写且不要后缀)#>这种标签,于是决定将原先直接写在模板文件中的代码单独放到include文件夹中
 
在/include文件下新建aboutme.asp、searchs.asp、myothersite.asp、musicplay.asp这几个文件,分别存放&ldquo;关于博主&rdquo;、&ldquo;搜索&rdquo;、&ldquo;其它站点&rdquo;、&ldquo;背景音乐&rdquo;中的内容。
 
在default.html、single.html等文件中调用的标签分别是:
<#CACHE_INCLUDE_ABOUTME#>
<#CACHE_INCLUDE_SEARCHS#>
<#CACHE_INCLUDE_MYOTHERSITE#>
<#CACHE_INCLUDE_MUSICPLAY#>
 

四、评论下给作者/管理员加上直接编辑按钮

修改文件:template/b_article_comment.html

<ul class="msg">
 <li class="msgname"><a onclick="InsertQuote(this.parentNode.parentNode.getElementsByTagName('a')[2].innerHTML,this.parentNode.parentNode.getElementsByTagName('li')[2].innerHTML);return false;" href=""><img _fcksavedurl="""><img" _fcksavedurl="""><img" _fcksavedurl="""><img" src="<#ZC_BLOG_HOST#>image/common/quote.gif" height="9" width="9" alt="quote" title="quote" />[<#ZC_MSG014#>]</a> <a name="cmt<#article/comment/id#>"><#article/comment/count#></a>.<a href="mailto:<#article/comment/email#>" onclick="this.href=(this.href).replace(/\[AT\]/,String.fromCharCode(64));"><#article/comment/name#></a></li>
 <li class="msgurl"><a href="<#article/comment/url#>" rel="nofollow" target="_blank"><#article/comment/url#></a></li>
 <li class="msgarticle"><#article/comment/content#></li>
 <li class="msgtime"><a href="#comment" onclick="RevertComment('<#article/comment/id#>')">[<#ZC_MSG265#>]</a>&nbsp;&nbsp;<script>
if(GetCookie("password")){
document.write("<a href=\"<#ZC_BLOG_HOST#>cmd.asp?act=CommentEdt&id=<#article/comment/id#>&log_id=<#article/id#>\">[<#ZC_MSG078#>]</a>&nbsp;&nbsp;<a href=\"<#ZC_BLOG_HOST#>cmd.asp?act=CommentDel&id=<#article/comment/id#>&log_id=<#article/id#>\">[<#ZC_MSG063#>]</a>")}</script><#article/comment/posttime#></li>
</ul>

 

五、操作成功后加上到&ldquo;文章管理&rdquo;&ldquo;评论管理&rdquo;&ldquo;首页&rdquo;的链接

方便作者/管理员本人在进行单篇日志编辑或直接编辑评论等操作后的下一步操作,将后台左栏的管理菜单全部搬过来

修改文件:function/c_system_base.asp

给以下代码

If bolOperateSuccess=True Then
   Response.Write "<p class='hint hint_green'><font color='green'>" & ZC_MSG266 & "</font></p>"
  End If

中增加蓝色粗体部分内容即可

If bolOperateSuccess=True Then
   Response.Write "<p class='hint hint_green'><font color='green'>" & ZC_MSG266 & "</font><br>&nbsp;&nbsp;<a href=../default.asp>" & ZC_MSG213 & "</a>&nbsp;&nbsp;<a href=../cmd.asp?act=SiteInfo>" & ZC_MSG245 & "</a>&nbsp;&nbsp;<a href=../cmd.asp?act=ArticleEdt&type=fckeditor>" & ZC_MSG168 & "("& ZC_MSG100 & ")</a>&nbsp;&nbsp;<a href=../cmd.asp?act=ArticleEdt>" & ZC_MSG168 & "(" & ZC_MSG101 & ")</a>&nbsp;&nbsp;<a href=../cmd.asp?act=BlogReBuild>" & ZC_MSG072 & "</a>&nbsp;&nbsp;<a href=../cmd.asp?act=AskFileReBuild>" & ZC_MSG073 & "</a><br><br>&nbsp;&nbsp;<a href=../cmd.asp?act=ArticleMng>" & ZC_MSG067 & "</a>&nbsp;&nbsp;<a href=../cmd.asp?act=CategoryMng>" & ZC_MSG066 & "</a>&nbsp;&nbsp;<a href=../cmd.asp?act=TagMng>" & ZC_MSG141 & "</a>&nbsp;&nbsp;<a href=../cmd.asp?act=CommentMng>" & ZC_MSG068 & "</a>&nbsp;&nbsp;<a href=../cmd.asp?act=TrackBackMng>" & ZC_MSG069 & "</a>&nbsp;&nbsp;<a href=../cmd.asp?act=FileMng>" & ZC_MSG071 & "</a><br><br>&nbsp;&nbsp;<a href=../cmd.asp?act=SettingMng>" & ZC_MSG247 & "</a>&nbsp;&nbsp;<a href=../cmd.asp?act=SiteFileMng>" & ZC_MSG210 & "</a>&nbsp;&nbsp;<a href=../cmd.asp?act=UserMng>" & ZC_MSG070 & "</a>&nbsp;&nbsp;<a href=../cmd.asp?act=PlugInMng>" & ZC_MSG107 & "</a>&nbsp;&nbsp;<a href=../cmd.asp?act=Update>" & ZC_MSG172 & "</a>&nbsp;&nbsp;<a href=../cmd.asp?act=logout>" & ZC_MSG020 & "</a></p>"
End If

 

评论

精彩评论
  • 2007-09-26 20:58:34

    1、去掉4nothing_calendar.js文件里下边的这两条,
    document.write("<table><tr><td>今天是阳历:" + thisInfo.sYear + "年" + (thisInfo.sMonth+1) + "月" + thisInfo.sDay + "日<font color=red>" + fstInfo.sFev + "</font></td></tr>");
    document.write("<tr><td align=right>农历:" + (thisInfo.isLeap ? "闰" : "") + thisInfo.lMonth + "月" + thisInfo.lDay + "日<font color=red>" + fstInfo.lFev + "</font></td></tr>");
    2、把
    document.write("[S]<tr><td>[/S]距离下一节日:<font color=red>" + tempInfo.sFev + " " + tempInfo.lFev + "</font> 还有<b><i>" + i + "</i></b>天[S]</td></tr></table>[/S]");
    中的与表格定义有关的东西去掉

  • 2007-09-26 14:41:40

    如何只加节日倒计时呢?

  • 2007-09-25 08:43:44

    二、增加了节日提醒功能
    就是你首页右侧栏显示的节日倒计时提醒吗?

«    2024年3月    »
123
45678910
11121314151617
18192021222324
25262728293031

控制面板

您好,欢迎到访网站!
  查看权限

文章归档