发新话题
打印

[两栏] 国庆巨献-4u-hemingway-Kenshin修改版(2007年10月17日更新)

本主题由 月上之木 于 2007-10-5 18:17 加入精华
谢谢你提供模板 我发现一个问题
wz.js 里面的图片连接到你的网站 导致速度变慢了

我已自己修正
希望你发fix文件的时候能分开来 因为有时候别人会改meta标签之类的
花了不少时间 要是再一大堆文件覆盖上去 原来的劳动就白费了

谢谢啊 很有意思 有时间我也想做模板

TOP

还有 正文颜色是不是太淡了 :)全 稍微深点会好些吧

如果你能调整 我就等着你发css文件了

TOP

在索引页点评论 怎么才能在文章页打开评论并跳转到 #comments
??? 这个问题挺大的

[ 本帖最后由 emj365 于 2007-10-7 07:13 编辑 ]

TOP

修复 "添加网摘:" 从k-zone读取图片的bug

修改 “PLUGIN\wz\wz.js” 如下:

var url="http://你blog的路径/"
document.write(" <a href=\"javascript:location.href='http://www.google.com/bookmarks/mark?op=add&bkmk='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)\"><img src='"+url+"PLUGIN/WZ/google.gif' alt='Google书签' border='0'></a> ");
document.write(" <a href=\"javascript:location.href='http://del.icio.us/post?&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)\"><img src='"+url+"PLUGIN/WZ/delicious.gif' alt='Del.icio.us' border='0'></a> ");
document.write(" <a href=\"javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://myweb.cn.yahoo.com/popadd.html?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title),'yahoo','scrollbars=no,width=720,height=420,left=75,top=20,status=no,resizable=yes'));vivi.focus();\"><img src='"+url+"PLUGIN/WZ/yahoo.gif' alt='Yahoo书签' border='0'></a> ");
document.write(" <a href=\"javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=28&title='+escape(d.title)+'&url='+escape(d.location.href)+'&desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();\"><img src='"+url+"PLUGIN/WZ/vivi.gif' alt='新浪ViVi' border='0'></a> ");
document.write(" <a href=\"javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://z.sohu.com/storeit.do?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();\"><img src='"+url+"PLUGIN/WZ/sohuz.gif' alt='搜狐网摘' border='0'></a> ");
document.write(" <a href=\"javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();\"><img src='"+url+"PLUGIN/WZ/365key.gif' alt='365Key网摘' border='0'></a> ");
document.write(" <a href=\"javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(yesky=window.open('http://hot.yesky.com/dp.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t)+'&st=2','yesky','scrollbars=no,width=400,height=480,left=75,top=20,status=no,resizable=yes'));yesky.focus();\"><img src='"+url+"PLUGIN/WZ/yesky.gif' alt='天极网摘' border='0'></a> ");
document.write(" <a href=\"javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://my.poco.cn/fav/storeIt.php?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t)+'&img=http://www.h-strong.com/blog/logo.gif','keyit','scrollbars=no,width=475,height=575,status=no,resizable=yes'));keyit.focus();\"><img src='"+url+"PLUGIN/WZ/poco.gif' alt='POCO网摘' border='0'></a> ");
document.write(" <a href=\"javascript:t=document.title;u=location.href;e=document.selection?(document.selection.type!='None'?document.selection.createRange().text:''):(document.getSelection?document.getSelection():'');void(open('http://bookmark.hexun.com/post.aspx?title='+escape(t)+'&url='+escape(u)+'&excerpt='+escape(e),'HexunBookmark','scrollbars=no,width=600,height=450,left=80,top=80,status=no,resizable=yes'));\"><img src='"+url+"PLUGIN/WZ/hexun.gif' alt='和讯网摘' border='0'></a> ");
document.write(" <a href=\"javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(blog=window.open('http://www.bolaa.com/CommendBlog/SmallLogin.aspx?title='+escape(d.title)+'&newspath='+escape(d.location.href)+'&subtitle='+escape(t),'bolaa','width=400px,height=400px'));blog.focus();\"><img src='"+url+"PLUGIN/WZ/bolaa.gif' alt='博拉网' border='0'></a> ");

修复“最热文章TOP15”的错误显示

修改“\PLUGIN\randomsort\blog.asp”操作:

查找
strtopmonth = strtopmonth & "<ul class=""counts"" height=""4""><a href=""" & objArticle.Url & """>" & cutStr(objRS("log_Title"),intCutLen) & "</a></ul>"

替换为
strtopmonth = strtopmonth & "<li><a href=""" & objArticle.Url & """>" & cutStr(objRS("log_Title"),intCutLen) & "</a></li>"

修复“首页点 add comments 按钮,无法跳转到在文章页comments界面”的不足
( //由于ie7我把延迟改到了1000现在看来问题不大 )

TEMPLATE\b_article-single.html

最底部加如下JS代码:

<script type="text/javascript">
pageUrl = window.location;
pageUrl = pageUrl.toString();
var Parameter = pageUrl.split("#");
Parameter = Parameter[1];
if (Parameter == "comments") {
        Effect.toggle("hidecomments","slide");
        setTimeout("location.href='#comments';",500);
}
</script>

[ 本帖最后由 emj365 于 2007-10-7 09:05 编辑 ]

TOP

引用:
原帖由 emj365 于 2007-10-7 00:13 发表
还有 正文颜色是不是太淡了 :)全 稍微深点会好些吧

如果你能调整 我就等着你发css文件了
这个问题我认为是个人爱好的问题(*^__^*) ,我现在把正文颜色的CSS代码段发上来,请按照你喜欢的颜色修改(*^__^*)
default.html的正文调整颜色CSS代码:
复制内容到剪贴板
代码:

#primary.twocol-stories .story {
width:74%;
display:inline;
margin-top:0;
margin-right:0;
margin-bottom:0;
float:left;
clear:left;
font-size:10pt;
line-height:1.5;
font: verdana, arial, helvetica;
color:修改成你需要的颜色; (例如黑色:color:#000; 即可)
}

TOP

十分感谢

我想提醒你一下 不少地方的css有问题 比如文章部分 h2 h3 是白色的
评论区域的链接hover是白色的

你网站页脚有个绿色的链接(备案)hover颜色不对

TOP

引用:
原帖由 emj365 于 2007-10-7 18:02 发表
十分感谢

我想提醒你一下 不少地方的css有问题 比如文章部分 h2 h3 是白色的
评论区域的链接hover是白色的

你网站页脚有个绿色的链接(备案)hover颜色不对
呵呵,这个问题由于4u-HK不是我原创的,我之前已经说清楚了,是在4u-hemingway的基础上修改的,所以CSS也是在此基础上修改的。因而难免有些乱七八糟(*^__^*)

你说的H2、H3的color设置成为#fff。这个地方我没有修改过哦,原来4u-hemingway中就是这个样子的。既然原移植者都没有改变,所以我也没有改变(*^__^*)

“评论区域的hover是白色的”我没有找到对应的CSS,不过不出意外的话肯定也是原来遗留下来的:)

关于“备案”是绿色的,这是我特意留上去的,就怕某些人看不到把我BLOG给...

PS:臃肿的CSS会减慢页面的loading。这个道理我知道,无奈没有太多时间去check。望理解(*^__^*)

TOP

修复“首页点 add comments 按钮,无法跳转到在文章页comments界面”的不足 //已修改 2007-10-18 8:20

TEMPLATE\b_article-single.html

最底部加如下JS代码:

<script type="text/javascript">
pageUrl = window.location;
pageUrl = pageUrl.toString();
if (pageUrl.indexOf("#")>0) {
        var Parameter = pageUrl.split("#");
        Parameter = Parameter[1];
        if (Parameter == "comments") {
            Effect.toggle("hidecomments","slide");
            setTimeout("location.href='#secondary';",800);
        }
        else if (Parameter.substring(0,3) == "cmt") {
                Effect.toggle("hidecomments","slide");
                index = Parameter.charAt(3);               
                target = document.getElementById( "comments" );
                target = target.getElementsByTagName( "li" );
                target = target[index-1].id;
                setTimeout("location.href='#'+target;",800);
        }
}
</script>

[ 本帖最后由 emj365 于 2007-10-8 08:24 编辑 ]

TOP

Popavatar头像系统 问题很多 能不能改成别的头像系统?

TOP

我为什么装了不成功呢。
看我的地址是:http://www.520new.cn/blog

TOP

@emj365 Popavatar问题多?什么问题多?如果不用Popavatar头像系统的话,可以使用什么系统?有比它好的系统更好喽(*^__^*) 。不过我使用Popavatar很长时间了。并没有出现你说的问题多的现象。

“请问原先add comment地方 由于添加过评论会显示 "x comments",为什么里面不包括Trackbacks?”首先这句话我没有看懂什么意思?另外,这个地方我也没有改动过,原来就是这个样子的(*^__^*) 。请详细说明:)
PS:多谢改正javascript代码(*^__^*)  

@pcind 我看了你的站,貌似你没有进行文件重建和索引重建哦?

[ 本帖最后由 kenshin520 于 2007-10-8 08:10 编辑 ]

TOP

首页绿色 add comment 按钮 当文章页已经有评论的时候,这个按钮会变成 "x comments"  X代表一个数字
我发现这个数字不包括Trackbacks条目在内,也许是z-blog的bug。

js代码有更新 希望你能用上,刚刚我去过你的blog,代码出问题导致页面非常不好用;对于flex我还是从你这里认识到的,谢谢。
关于popavatar构想很好,但是整个站点开发得似乎很匆忙,昨天我想注册验证码读不出,今天好不容易注册上了发现自己都用不来,可用性很差所有功能似乎都要自己揣摩,我算是有耐心的还是放弃了;其实就是简单的上传一张头像是主要目的弄的我花了不少时间,结果最后添加头像按钮点下去没反应,彻底放弃。
真心希望它能越来越好。

TOP

发新话题