收藏本页
切换浏览模式

华夏网·艺术论坛站务管理服务大厅 → 查看评论

帖子评论信息
评论主题: 动网论坛7.1SP1 CSS详解
评论对象: 夏雪儿 | 2009/3/29 17:19:37
评论言论: 关于动网论坛美化

友情链接实现单行循环滚动的修改方法

1、文字链接!
动网默认风格分页面模板(page_index)界面风格管理template.html(0)找到如下代码:
<div class="th" style="margin-top:0px;"><font color="#F8F5E9">友情论坛</font></div>
<div class="mainbar3">
<div style="padding:10px;line-height:20px;">
<xsl:for-each select="BoardList/bbslink/link[@islogo=0]">
<div style="float:left;width:16%;text-align : left;height:20px;"><a href="{@url}" title="{@readme}" target="_blank" ><xsl:value-of select="@boardname"/></a></div><xsl:if test="(position() mod 6)=0 "><br /></xsl:if>
</xsl:for-each>
</div>
<xsl:if test="count(BoardList/bbslink/link[@islogo=0]) mod 9 !=0"><br /></xsl:if>
把下面代码替换上面的
<div class="th" style="margin-top:0px;"><font color="#F8F5E9">友情论坛</font></div>
<div class="mainbar3">
<!--友情链接文字滚动修改方法开始-->
<marquee id="shownews" direction="left" scrollamount="4" scrolldelay="60" hspace="10" vspace="0" onmouseover="this.stop()" onmouseout="this.start()">
<div style="padding:10px;line-height:30px;">
<xsl:for-each select="BoardList/bbslink/link[@islogo=0]">
<div style="float:left;width:10%;text-align : left;height:10px;"><a href="{@url}" title="{@readme}" target="_blank" ><xsl:value-of select="@boardname"/></a></div><xsl:if test="(position() mod 16)=0 "><br /></xsl:if>
</xsl:for-each>
</div>
<xsl:if test="count(BoardList/bbslink/link[@islogo=0]) mod 9 !=0"></xsl:if>
</marquee>
<!--友情链接文字滚动修改方法结束-->
2、logo链接!
找到下面代码
<div style="padding:10px;line-height:33px;">
<xsl:for-each select="BoardList/bbslink/link[@islogo=1]">
<div style="float:left;width:10%;text-align : left;height:33px;" title="{@boardname}
{@readme}"> <a href="{@url}" target="_blank" ><img border="0" src="{@logo}" height="31" width="88" alt="{@boardname}
{@readme}" /></a></div>
</xsl:for-each>
<xsl:if test="BoardList/bbslink/link[@islogo=1]"><br /></xsl:if>
</div>
</div>
把下面代码替换上面的
<!--友情链接LOGO滚动修改方法开始-->
<marquee id="shownews" direction="left" scrollamount="4" scrolldelay="60" hspace="10" vspace="0" onmouseover="this.stop()" onmouseout="this.start()">
<div style="padding:10px;line-height:33px;">
<xsl:for-each select="BoardList/bbslink/link[@islogo=1]">
<div style="float:left;width:10%;text-align : left;height:33px;" title="{@boardname}
{@readme}"> <a href="{@url}" target="_blank" ><img border="0" src="{@logo}" height="31" width="88" alt="{@boardname}
{@readme}" /></a></div><xsl:if test="(position() mod 1000)=0 "><br /></xsl:if>
</xsl:for-each>
<xsl:if test="BoardList/bbslink/link[@islogo=1]"><br /></xsl:if>
</div>
</marquee>
<!--友情链接LOGO滚动修改方法结束-->
</div>
注1:以上红色数字“60”是移动的速度,ie默认值为60(单位:毫秒) 取值越大,移动越慢(小于60,ie仍默认为60)。 取值60 取值100 取值150 取值200 取值250
注2:可能每个论坛都设置不同,反正,以上代码中数字基本上都是变量,大家可以根据自己的论坛设置再做修改。

4.修改短信欢迎内容的方法
进入后台:风格界面模板总管理----------默认风格分页面模板(page_login)----------template.html(18)把以下改成你要的内容:
{$Forumname}全体管理人员欢迎您的到来
如有任何疑问请及时联系系统管理员。
如有任何使用上的问题请查看论坛帮助。
感谢您注册本系统,让我们一起来建设这个网上家园!
{$Forumname}是你的论坛名称~~
________________________________________

5.网页之间跳转过程中加个过渡界面
把下面的代码放到每个网页的body下面.你就可以看到一个很好的效果.
<div id="Loading" style="position:absolute; left:0px; top:0px;right:0px; width:100%; height:100%; background-color:#000000; z-index:1000;">
<table width="50%" height="80%" align="center" border="0" cellspacing="1" cellpadding="0" bgcolor="#000000">
<tr>
<td align="center" bgcolor="#000000">
<table align=center width="80%"><tr><td align=center><span id="ShowLoadedTime"></span></td></tr></table>
<DIV id=sb style="width:100%; HEIGHT: 18px;dbackground:#FFFFFF;border:1px solid #666666; TEXT-ALIGN: left">
<DIV id=sbChild1 style="FILTER: Alpha(Opacity=20, FinishOpacity=80, Style=1, StartX=1, StartY=0, FinishX=100, FinishY=0); WIDTH: 0%; POSITION: absolute; HEIGHT: 18px">
<DIV style="FONT-SIZE: 2px; BACKGROUND: #aaaaaa; WIDTH: 100%; HEIGHT: 100%"></DIV>
</DIV>
</DIV>
<br><br><br>
<table align=center><tr><td style="color:#999999">Wellcome To My Homepage</td></tr></table>
<table align=center><tr><td style="color:#999999">Copyright (c)2005,<a href="#top" target="_blank" style="color:#DCDEFF">TsAdmin.cn</a> All Rights Reserved.</td></tr></table>
</td>
</tr>
</table>
</div>
<!-- Status Bar Ends -->
<script type="text/javascript" language="Javascript">
<!--
//初始加载时间
var BaseTime = new Date().getTime();
//初始进度条长度
var percentN = 0;
//提示信息:isTime = true 显示加载时间
var isTime = true;
//加载满耗时间
var TimeLoaded;
//加载满后,再延迟多少毫秒加载正文?
var delayLoaded = 1000 ;
document.body.style.margin=0;
PageLoading();
function PageLoading() {
var newTime = new Date().getTime();
var LoadedTime = newTime - BaseTime;
var el = document.all["sb"];
filterEl = el.children[0];
ShowLoadedTime.style.color="#FF0000";
if (percentN <= 100){
filterEl.style.width = percentN + "%";
if (isTime){
ShowLoadedTime.innerText = "已经加载时间:" + (LoadedTime/1000).toString() + "% ";
}else{
ShowLoadedTime.innerText = "已经加载数量:" + percentN + "秒";
}
TimeLoaded = LoadedTime;
}
percentN = percentN + 1;
time = setTimeout("PageLoading()",100);
if (LoadedTime-TimeLoaded >= delayLoaded)
{
clearTimeout(time);
Loading.style.display = 'none';
}
}
//-->
</script>
________________________________________

6.将注册时区顺序修改,方便注册的办法
修改inc目录下Time_difference.xml文件
根据你的 喜好 可将北京时间提升到第一位 以下是我修改的~
<time_difference value="8">(GMT+8.00)北京,重庆,香港特别行政区,乌鲁木齐</time_difference >
<time_difference value="-12">(GMT-12.00)国际日期变更线西</time_difference >
<time_difference value="-11">(GMT-11.00)中途岛,萨摩亚群岛</time_difference >
<time_difference value="-10">(GMT-10.00)夏威夷</time_difference >
<time_difference value="-9">(GMT-9.00)阿拉斯加</time_difference >
<time_difference value="-8">(GMT-8.00)太平洋时间(美国和加拿大);蒂华纳</time_difference >
<time_difference value="-7">(GMT-7.00)奇瓦瓦,拉巴斯,马扎特兰</time_difference >
<time_difference value="-7">(GMT-7.00)山地时间(美国和加拿大)</time_difference >
<time_difference value="-7">(GMT-7.00)亚利桑那</time_difference >
<time_difference value="-6">(GMT-6.00)瓜达拉哈拉,墨西哥城,蒙特雷</time_difference >
<time_difference value="-6">(GMT-6.00)萨斯喀彻温</time_difference >
<time_difference value="-6">(GMT-6.00)中部时间(美国和加拿大)</time_difference >
<time_difference value="-6">(GMT-6.00)中美洲</time_difference >
<time_difference value="-5">(GMT-5.00)波哥大,利马,基多</time_difference >
<time_difference value="-5">(GMT-5.00)东部时间(美国和加拿大)</time_difference >
<time_difference value="-5">(GMT-5.00)印第安那州(东部)</time_difference >
<time_difference value="-4">(GMT-4.00)大西洋时间(加拿大)</time_difference >
<time_difference value="-4">(GMT-4.00)加拉加斯,拉巴斯</time_difference >
<time_difference value="-4">(GMT-4.00)圣地亚哥</time_difference >
<time_difference value="-3">(GMT-3.00)纽芬兰</time_difference >
<time_difference value="-3">(GMT-3.00)巴西利亚</time_difference >
<time_difference value="-3">(GMT-3.00)布宜诺斯艾利斯,乔治敦</time_difference >
<time_difference value="-3">(GMT-3.00)格陵兰</time_difference >
<time_difference value="-2">(GMT-2.00)中大西洋</time_difference >
<time_difference value="-1">(GMT-1.00)佛得角群岛</time_difference >
<time_difference value="-1">(GMT-1.00)亚速尔群岛</time_difference >
<time_difference value="0">(GMT)格林威治标准时间,都柏林,爱丁堡,伦敦,里斯本</time_difference>
<time_difference value="0">(GMT)卡萨布兰卡,蒙罗维亚</time_difference >
<time_difference value="1">(GMT+1.00)阿姆斯特丹,柏林,伯尔尼,罗马,斯德哥尔摩,维也纳</time_difference >
<time_difference value="1">(GMT+1.00)贝尔格莱德,布拉迪斯拉发,布达佩斯,卢布尔雅那,布拉格</time_difference >
<time_difference value="1">(GMT+1.00)布鲁塞尔,哥本哈根,马德里,巴黎</time_difference >
<time_difference value="1">(GMT+1.00)萨拉热窝,斯科普里,华沙,萨格勒布</time_difference >
<time_difference value="1">(GMT+1.00)中非西部</time_difference >
<time_difference value="2">(GMT+2.00)布加勒斯特</time_difference >
<time_difference value="2">(GMT+2.00)哈拉雷,比勒陀利亚</time_difference >
<time_difference value="2">(GMT+2.00)赫尔辛基,基辅,里加,索非亚,塔林,维尔纽斯</time_difference >
<time_difference value="2">(GMT+2.00)开罗</time_difference >
<time_difference value="2">(GMT+2.00)雅典,贝鲁特,伊斯坦布尔,明斯克</time_difference >
<time_difference value="2">(GMT+2.00)耶路撒冷</time_difference >
<time_difference value="3">(GMT+3.00)巴格达</time_difference >
<time_difference value="3">(GMT+3.00)科威特,利雅得</time_difference >
<time_difference value="3">(GMT+3.00)莫斯科,圣彼得堡,伏尔加格勒</time_difference >
<time_difference value="3">(GMT+3.00)内罗毕</time_difference >
<time_difference value="3">(GMT+3.00)德黑兰</time_difference >
<time_difference value="4">(GMT+4.00)阿布扎比,马斯喀特</time_difference >
<time_difference value="4">(GMT+4.00)巴库,第比利斯,埃里温</time_difference >
<time_difference value="4.5">(GMT+4.30)喀布尔</time_difference >
<time_difference value="5">(GMT+5.00)叶卡捷琳堡</time_difference >
<time_difference value="5">(GMT+5.00)伊斯兰堡,卡拉奇,塔什干</time_difference >
<time_difference value="5.5">(GMT+5.30)马德拉斯,加尔各答,孟买,新德里</time_difference >
<time_difference value="5.75">(GMT+5.45)加德满都</time_difference >
<time_difference value="6">(GMT+6.00)阿拉木图,新西伯利亚</time_difference >
<time_difference value="6">(GMT+6.00)阿斯塔纳,达卡</time_difference >
<time_difference value="6">(GMT+6.00)斯里哈亚华登尼普拉</time_difference >
<time_difference value="6">(GMT+6.30)仰光</time_difference >
<time_difference value="7">(GMT+7.00)克拉斯诺亚尔斯克</time_difference >
<time_difference value="7">(GMT+7.00)曼谷,河内,雅加达</time_difference >
<time_difference value="8">(GMT+8.00)吉隆坡,新加坡</time_difference >
<time_difference value="8">(GMT+8.00)珀斯</time_difference >
<time_difference value="8">(GMT+8.00)台北</time_difference >
<time_difference value="8">(GMT+8.00)伊尔库茨克,乌兰巴图</time_difference >
<time_difference value="9">(GMT+9.00)大坂,东京,札幌</time_difference >
<time_difference value="9">(GMT+9.00)汉城</time_difference >
<time_difference value="9">(GMT+9.00)雅库茨克</time_difference >
<time_difference value="9.5">(GMT+9.30)阿德莱德</time_difference >
<time_difference value="9.5">(GMT+9.30)达尔文</time_difference >
<time_difference value="10">(GMT+10.00)布里斯班</time_difference >
<time_difference value="10">(GMT+10.00)符拉迪沃斯托克(海参崴)</time_difference >
<time_difference value="10">(GMT+10.00)关岛,莫尔兹比港</time_difference >
<time_difference value="10">(GMT+10.00)霍巴特</time_difference >
<time_difference value="10">(GMT+10.00)堪塔拉,墨尔本,悉尼</time_difference >
<time_difference value="11">(GMT+11.00)马加丹,索罗门群岛,新喀里多尼亚</time_difference >
<time_difference value="12">(GMT+12.00)奥克兰,惠灵顿</time_difference >
<time_difference value="12">(GMT+12.00)斐济,堪察加半岛,马绍尔群岛</time_difference >
<time_difference value="13">(GMT+13.00)努库阿洛法</time_difference >

反对方

支持方

反对方人数(0
支持方人数(0

中立方

中立方人数(0
Copyright ©2004 - 2020 cnrr.cn
Powered By Dvbbs Version 8.0.0
页面执行时间 0.04297 秒, 9 次数据查询