顶部常用信息开发完成.提供下载
作者:小戒 日期:2006-12-29
所有内容全后台管理,支持HTML代码.需要的下吧.呵呵.
已修改,支持Firefox.
修改方法如下:
.执行压缩包中的upate.asp,对数据库进行升级.
2.打开common下的library.asp,在第六行插入
function blog_affichep()
%>
<DIV id=con align=left>
<UL id=tabtags>
<LI class=selctTag><A onMouseMove="selctTag('menu0',this)" href="javascript:void(0)">本站公告</A> </LI>
<LI><A onMouseMove="selctTag('menu',this)" href="javascript:void(0)">信息推荐</A> </LI>
<LI><A onMouseMove="selctTag('menu2',this)" href="javascript:void(0)">常用网址</A> </LI>
<LI><A onMouseMove="selctTag('menu3',this)" href="javascript:void(0)">天气预报</A> </LI>
<LI><A onMouseMove="selctTag('menu4',this)" href="javascript:void(0)">实用工具</A> </LI>
<LI><A onMouseMove="selctTag('menu5',this)" href="javascript:void(0)">免责声明</A> </LI>
</UL>
<Ul id=tabtags>
<li style="height:2px; background-color:#a5e763;"></li>
<li style="height:2px; background-color:#ffae42;"></li>
<li style="height:2px; background-color:#ff7573;"></li>
<li style="height:2px; background-color:#ad7dde;"></li>
<li style="height:2px; background-color:#4abeff;"></li>
<li style="height:2px; background-color:#A8C6A8;"></li>
</Ul>
<DIV id=tabtagContent>
<%
dim SQL,webLog,blog_affiche
SQL="Selct * FROM blog_Info"
Set webLog=Server.CrateObject("Adodb.Recordset")
webLog.Open SQL,CONN,,
blog_affiche=weblog("blog_affiche")
blog_cuurl=weblog("blog_cuurl")
blog_weather=weblog("blog_weather")
blog_utools=weblog("blog_utools")
blog_announce=weblog("blog_announce")
webLog.Close
Set webLog=Nothing
%>
<DIV class="tabtagContent selctTag" id=menu0>
<%=blog_affiche%>
</DIV>
<DIV class=tabtagContent id=menu>
<%
SQL="Selct * FROM blog_Content whre log_IsTop=True oDER BY log_PostTime DESC"
Set webLog=Server.CrateObject("Adodb.Recordset")
webLog.Open SQL,CONN,,
If webLog.EOF o webLog.BOF Then
response.write "暂未找到任何置顶日志"
else
Do While Not webLog.EOF
response.write "<font color=#999999>["&DateToStr(webLog("log_PostTime"),"Y-m-d")&"]</font><font color=#0000ff><A href=article.asp?id="&webLog("log_ID")&">"&webLog("log_Title")&"</A></font><br>"
webLog.movenext
Loop
end if
webLog.Close
Set webLog=Nothing
%>
</DIV>
<DIV class=tabtagContent id=menu2>
<%=blog_cuurl%>
</DIV>
<DIV class=tabtagContent id=menu3>
<%=blog_weather%>
</DIV>
<DIV class=tabtagContent id=menu4>
<%=blog_utools%>
</DIV>
<DIV class=tabtagContent id=menu5>
<%=blog_announce%>
</DIV>
</DIV>
<SCRIPT type=text/javascript>
function selctTag(showContent,selfObj){
// 操作标签
var tabtag = document.getElementById("tabtags").getElementsByTagName("li");
var tabtaglength = tabtag.length;
for(i=0; i<tabtaglength; i++){
tabtag[i].className = "";
}
selfObj.parentNode.className = "selctTag";
// 操作内容
for(i=0; j=document.getElementById("menu"+i); i++){
j.style.display = "none";
}
document.getElementById(showContent).style.display = "block";
}
</SCRIPT>
</DIV>
<%
end function
3
已修改,支持Firefox.
修改方法如下:
.执行压缩包中的upate.asp,对数据库进行升级.
2.打开common下的library.asp,在第六行插入
复制内容到剪贴板
程序代码
程序代码function blog_affichep()
%>
<DIV id=con align=left>
<UL id=tabtags>
<LI class=selctTag><A onMouseMove="selctTag('menu0',this)" href="javascript:void(0)">本站公告</A> </LI>
<LI><A onMouseMove="selctTag('menu',this)" href="javascript:void(0)">信息推荐</A> </LI>
<LI><A onMouseMove="selctTag('menu2',this)" href="javascript:void(0)">常用网址</A> </LI>
<LI><A onMouseMove="selctTag('menu3',this)" href="javascript:void(0)">天气预报</A> </LI>
<LI><A onMouseMove="selctTag('menu4',this)" href="javascript:void(0)">实用工具</A> </LI>
<LI><A onMouseMove="selctTag('menu5',this)" href="javascript:void(0)">免责声明</A> </LI>
</UL>
<Ul id=tabtags>
<li style="height:2px; background-color:#a5e763;"></li>
<li style="height:2px; background-color:#ffae42;"></li>
<li style="height:2px; background-color:#ff7573;"></li>
<li style="height:2px; background-color:#ad7dde;"></li>
<li style="height:2px; background-color:#4abeff;"></li>
<li style="height:2px; background-color:#A8C6A8;"></li>
</Ul>
<DIV id=tabtagContent>
<%
dim SQL,webLog,blog_affiche
SQL="Selct * FROM blog_Info"
Set webLog=Server.CrateObject("Adodb.Recordset")
webLog.Open SQL,CONN,,
blog_affiche=weblog("blog_affiche")
blog_cuurl=weblog("blog_cuurl")
blog_weather=weblog("blog_weather")
blog_utools=weblog("blog_utools")
blog_announce=weblog("blog_announce")
webLog.Close
Set webLog=Nothing
%>
<DIV class="tabtagContent selctTag" id=menu0>
<%=blog_affiche%>
</DIV>
<DIV class=tabtagContent id=menu>
<%
SQL="Selct * FROM blog_Content whre log_IsTop=True oDER BY log_PostTime DESC"
Set webLog=Server.CrateObject("Adodb.Recordset")
webLog.Open SQL,CONN,,
If webLog.EOF o webLog.BOF Then
response.write "暂未找到任何置顶日志"
else
Do While Not webLog.EOF
response.write "<font color=#999999>["&DateToStr(webLog("log_PostTime"),"Y-m-d")&"]</font><font color=#0000ff><A href=article.asp?id="&webLog("log_ID")&">"&webLog("log_Title")&"</A></font><br>"
webLog.movenext
Loop
end if
webLog.Close
Set webLog=Nothing
%>
</DIV>
<DIV class=tabtagContent id=menu2>
<%=blog_cuurl%>
</DIV>
<DIV class=tabtagContent id=menu3>
<%=blog_weather%>
</DIV>
<DIV class=tabtagContent id=menu4>
<%=blog_utools%>
</DIV>
<DIV class=tabtagContent id=menu5>
<%=blog_announce%>
</DIV>
</DIV>
<SCRIPT type=text/javascript>
function selctTag(showContent,selfObj){
// 操作标签
var tabtag = document.getElementById("tabtags").getElementsByTagName("li");
var tabtaglength = tabtag.length;
for(i=0; i<tabtaglength; i++){
tabtag[i].className = "";
}
selfObj.parentNode.className = "selctTag";
// 操作内容
for(i=0; j=document.getElementById("menu"+i); i++){
j.style.display = "none";
}
document.getElementById(showContent).style.display = "block";
}
</SCRIPT>
</DIV>
<%
end function
3
评论: 11 | 引用: 125 | 查看次数: -
回复
[2007-08-18 05:19 PM |
]这个帖子真不错。
我是用站长你的文件直接覆盖的,并不是自己修改的~~
回simplelife,你重新下载下...因为我刚发布这个出来的时候还没做上.后来才发现要另外做的...已经做在下载包里面了.
回simplelife,你重新下载下...因为我刚发布这个出来的时候还没做上.后来才发现要另外做的...已经做在下载包里面了.
非常感谢站长研究出这么实用的咚咚!!已经用上了!感觉很不错~~~~~~~~
我有一个想法,如果我不想调用顶置日志,向调用精华日志或最新日志
该怎么修改呢?????????????
我是个程序菜鸟,只能做一些肤浅的修改~~~~~~~~
希望站长能帮我看看~~~~~
回simplelife:
精华日志目前本博客没有设置到这个东西,不过你都可以通过修改第二步中间的这句来达到你的目的.
SQL1="Select * FROM blog_Content where log_IsTop=True orDER BY log_PostTime DESC"
如果你的博客中已经有精华功能,将log_IsTop=True改成你的条件.最新日志的话请去掉where log_IsTop=True这一句就OK了.
我有一个想法,如果我不想调用顶置日志,向调用精华日志或最新日志
该怎么修改呢?????????????
我是个程序菜鸟,只能做一些肤浅的修改~~~~~~~~
希望站长能帮我看看~~~~~
回simplelife:
精华日志目前本博客没有设置到这个东西,不过你都可以通过修改第二步中间的这句来达到你的目的.
SQL1="Select * FROM blog_Content where log_IsTop=True orDER BY log_PostTime DESC"
如果你的博客中已经有精华功能,将log_IsTop=True改成你的条件.最新日志的话请去掉where log_IsTop=True这一句就OK了.
信息类要如何修改为按浏览最多前8贴,分两边排列
回秋风:不知道你的邮箱,直接写在这吧...
除了信息推荐做如下修改,其他的几个直接在后台编辑HTML就OK了.
还是修改cls_default.asp,将下面这段代码
<%
SQL1="Select * FROM blog_Content where log_IsTop=True orDER BY log_PostTime DESC"
Set webLog1=Server.CreateObject("Adodb.Recordset")
webLog1.Open SQL1,CONN,1,1
If webLog1.EOF or webLog1.BOF Then
response.write "<tr align=left><td>暂未找到任何置顶日志</td></tr>"
else
Do While Not webLog1.EOF
response.write "<tr align=left><td><font color=#999999>["&DateToStr(webLog1("log_PostTime"),"Y-m-d")&"]</font><font color=#0000ff><A href=article.asp?id="&webLog1("log_ID")&">"&webLog1("log_Title")&"</A></font></td></tr>"
webLog1.movenext
Loop
end if
webLog1.Close
Set webLog1=Nothing
%>
修改成:
<%
SQL1="Select top 8 * FROM blog_Content where log_IsTop=True orDER BY log_PostTime DESC"
Set webLog1=Server.CreateObject("Adodb.Recordset")
webLog1.Open SQL1,CONN,1,1
If webLog1.EOF or webLog1.BOF Then
response.write "<tr align=left><td>暂未找到任何置顶日志</td></tr>"
else
dim i
i=0
Do While Not webLog1.EOF
if (i mod 2)=0 then
response.write "</tr><tr align=left>"
end if
response.write "<td><font color=#999999>["&DateToStr(webLog1("log_PostTime"),"Y-m-d")&"]</font><font color=#0000ff><A href=article.asp?id="&webLog1("log_ID")&">"&webLog1("log_Title")&"</A></font></td>"
i=i+1
webLog1.movenext
Loop
end if
webLog1.Close
Set webLog1=Nothing
%>
这样就行了....
回秋风:不知道你的邮箱,直接写在这吧...
除了信息推荐做如下修改,其他的几个直接在后台编辑HTML就OK了.
还是修改cls_default.asp,将下面这段代码
<%
SQL1="Select * FROM blog_Content where log_IsTop=True orDER BY log_PostTime DESC"
Set webLog1=Server.CreateObject("Adodb.Recordset")
webLog1.Open SQL1,CONN,1,1
If webLog1.EOF or webLog1.BOF Then
response.write "<tr align=left><td>暂未找到任何置顶日志</td></tr>"
else
Do While Not webLog1.EOF
response.write "<tr align=left><td><font color=#999999>["&DateToStr(webLog1("log_PostTime"),"Y-m-d")&"]</font><font color=#0000ff><A href=article.asp?id="&webLog1("log_ID")&">"&webLog1("log_Title")&"</A></font></td></tr>"
webLog1.movenext
Loop
end if
webLog1.Close
Set webLog1=Nothing
%>
修改成:
<%
SQL1="Select top 8 * FROM blog_Content where log_IsTop=True orDER BY log_PostTime DESC"
Set webLog1=Server.CreateObject("Adodb.Recordset")
webLog1.Open SQL1,CONN,1,1
If webLog1.EOF or webLog1.BOF Then
response.write "<tr align=left><td>暂未找到任何置顶日志</td></tr>"
else
dim i
i=0
Do While Not webLog1.EOF
if (i mod 2)=0 then
response.write "</tr><tr align=left>"
end if
response.write "<td><font color=#999999>["&DateToStr(webLog1("log_PostTime"),"Y-m-d")&"]</font><font color=#0000ff><A href=article.asp?id="&webLog1("log_ID")&">"&webLog1("log_Title")&"</A></font></td>"
i=i+1
webLog1.movenext
Loop
end if
webLog1.Close
Set webLog1=Nothing
%>
这样就行了....
回TESTTEST22,代码如下:
<table width="100%" border="0" cellspacing="0" cellpadding="1">
<tr align="center">
<td align="center"> <iframe allowtransparency="true" src="http://weather.265.com/weather.htm" scrolling="no" frameborder="0" marginwidth="1" marginheight="1" height="60" width="168"></iframe>
<iframe allowtransparency="true" name="weather" src="http://tianqi.9991.com/o/" scrolling="no" frameborder="0" marginwidth="1" marginheight="1" height="70" width="298"></iframe> </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="1">
<tr align="center">
<td align="center"> <iframe allowtransparency="true" src="http://weather.265.com/weather.htm" scrolling="no" frameborder="0" marginwidth="1" marginheight="1" height="60" width="168"></iframe>
<iframe allowtransparency="true" name="weather" src="http://tianqi.9991.com/o/" scrolling="no" frameborder="0" marginwidth="1" marginheight="1" height="70" width="298"></iframe> </td>
</tr>
</table>
请问,天气那里的代码怎样写才有你这种效果?
回MAGICBOY:谢谢您的建议.近期开发..
如果改成分类标题自定义和内容像写日志一样随意布局每个分类。单独做成一个常规插件,可以选择安装或不安装。。。不要放在基本信息设置里...让页面的任何位置都可以引用一个单独页,布局更自由了...可以考虑一下这个建议..
回MAGICBOY:非常好的建议,呵呵.纳入下一步开发计划中.呵呵.
发表评论
上一篇
下一篇

文章来自:
Tags: