免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1936 | 回复: 9
打印 上一主题 下一主题

清管理员帮帮忙。 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-02-20 00:28 |只看该作者 |倒序浏览
能不能把简单的模版改成绿色模版的文章列表那样的。

绿的记忆这个模版里文章列表之列出文章的标题,而其他的两个模版把整篇文章都列出来了,这样要找东西很不方便。而我又不太喜欢绿色的这个模版。对网页编辑一点都不会。。。


希望管理员能帮我代码整理下,使简单模版也能想绿的记忆那样的文章管理,对于我这样的菜鸟没办法弄。

论坛徽章:
0
2 [报告]
发表于 2006-02-20 15:41 |只看该作者
还有,相册在firefox中不能放幻灯片。。。只能看头一张图片。。。。

论坛徽章:
1
2016猴年福章徽章
日期:2016-02-18 15:30:34
3 [报告]
发表于 2006-02-20 17:11 |只看该作者
如果你会修改模板的话,我可以告诉你在哪里将模板改成你所要的。

论坛徽章:
0
4 [报告]
发表于 2006-02-22 14:28 |只看该作者
谢谢拉,我的google talk :hunter86.email@gmail.com

论坛徽章:
1
2016猴年福章徽章
日期:2016-02-18 15:30:34
5 [报告]
发表于 2006-02-22 17:42 |只看该作者
我没有google talk 。
你可以修改文章模板,找到

  1. <xsl:for-each select="BLOG/ARTILCES/ATRICLE" >
  2.         <table border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" width="96%">
  3.         <tr><td width="7" height="7"><img src="../../templates/tech/images/w_left_top.gif" border="0" alt="" /></td>
  4.         <td bgcolor="#F3F3F3" width="100%"></td>
  5.         <td width="7" height="7"><img src="../../templates/tech/images/w_right_top.gif" border="0" alt="" /></td>
  6.         </tr>
  7.         <tr><td colspan="3"  bgcolor="#F3F3F3" align="center">

  8. <table border="0" cellspacing="0" cellpadding="0" bgcolor="#F3F3F3" style="border-collapse: collapse;word-wrap:break-word;table-layout: fixed" width="100%">
  9.         <tr height="25"><td width="25" align="center"><img src="../../templates/tech/images/dot.gif" width="8" height="8" border="0" alt="" /></td>
  10.         <td width="90%">
  11.         <xsl:element name="a">
  12.         <xsl:attribute name="href">showart.php?id=<xsl:value-of select="ID" /></xsl:attribute>
  13.         <xsl:attribute name="class">list1</xsl:attribute>
  14.         <xsl:attribute name="target"><xsl:value-of select="/BLOG/STYLE_TARGET" /></xsl:attribute>
  15.         <font style="font-size:10pt" color="#02368D"><b><xsl:value-of select="TITLE" /></b></font></xsl:element>
  16.         </td><td width="25" align="center">
  17.         <xsl:element name="img">
  18.         <xsl:attribute name="src">../../templates/tech/images/dot2.gif</xsl:attribute>
  19.         <xsl:attribute name="onclick">ShowHideDiv('art<xsl:value-of select="ID" />',this);</xsl:attribute>
  20.         <xsl:attribute name="border">0</xsl:attribute>
  21.         <xsl:attribute name="title">收起</xsl:attribute>
  22.         </xsl:element>
  23.        
  24.         </td>
  25.         </tr>

  26.         <tr><td width="25"></td>
  27.         <td  colspan="2" style="line-height: 120%; margin: 5px">
  28.                 <xsl:element name="div">
  29.                 <xsl:attribute name="id">art<xsl:value-of select="ID" /></xsl:attribute>
  30.                 <xsl:attribute name="style">height:100%; margin-top: 5px;</xsl:attribute>
  31.                   
  32.                 </xsl:element>

  33.                 <script language="javascript">
  34.                 var tid=<xsl:value-of select="ID" />;
  35.                 document.getElementById("art"+tid).innerHTML="<xsl:value-of select='CONTENT' disable-output-escaping="yes" />";
  36.                 </script>


  37.         </td>
  38.         </tr>
  39.         <tr height="20"><td colspan="3" align="right">
  40.         <xsl:element name="a">
  41.         <xsl:attribute name="href">showart.php?id=<xsl:value-of select="ID" /></xsl:attribute>
  42.         <xsl:attribute name="class">list1</xsl:attribute>
  43.         <xsl:attribute name="target"><xsl:value-of select="/BLOG/STYLE_TARGET" /></xsl:attribute>
  44.         <font style="font-size:10pt" color="#02368D"><b>查看全文</b></font>
  45.         </xsl:element>       
  46.        
  47.         </td></tr>
  48.         <tr height="20"><td></td><td colspan="2" align="right">
  49.         发表于:<xsl:value-of select="UDATE" /> ┆
  50.         <xsl:element name="a">
  51.         <xsl:attribute name="href">showart.php?id=<xsl:value-of select="ID" /></xsl:attribute>
  52.         <xsl:attribute name="class">list1</xsl:attribute>
  53.         <xsl:attribute name="target"><xsl:value-of select="/BLOG/STYLE_TARGET" /></xsl:attribute>
  54.         阅读(<xsl:value-of select="CLICKS" />)
  55.         </xsl:element> ┆
  56.         <xsl:element name="a">
  57.         <xsl:attribute name="href">showart.php?id=<xsl:value-of select="ID" /></xsl:attribute>
  58.         <xsl:attribute name="class">list1</xsl:attribute>
  59.         <xsl:attribute name="target"><xsl:value-of select="/BLOG/STYLE_TARGET" /></xsl:attribute>
  60.         评论(<xsl:value-of select="COMMENTS" />)
  61.         </xsl:element>       
  62.        
  63.         </td></tr>

  64. </table>
  65.         </td></tr>
  66.         <tr><td width="7" height="7"><img src="../../templates/tech/images/w_left_buttom.gif" border="0" alt="" /></td>
  67.         <td bgcolor="#F3F3F3"></td>
  68.         <td width="7" height="7"><img src="../../templates/tech/images/w_right_buttom.gif" border="0" alt="" /></td>
  69.         </tr>
  70.         </table>

  71. <br />

  72. </xsl:for-each>
复制代码


改成



  1. <table border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" width="100%">
  2. <tr><td colspan="3" height="5"></td></tr>
  3. <xsl:for-each select="BLOG/ARTILCES/ATRICLE" >

  4.         <tr height="18">
  5.         <td width="25" align="right">·</td>
  6.         <td >
  7.                 <xsl:element name="a">
  8.                 <xsl:attribute name="href">showart.php?id=<xsl:value-of select="ID" /></xsl:attribute>
  9.                 <xsl:attribute name="class">list1</xsl:attribute>
  10.                 <xsl:attribute name="target"><xsl:value-of select="/BLOG/STYLE_TARGET" /></xsl:attribute>
  11.                 <font style="font-size:10pt" color="#295200"><xsl:value-of select="TITLE" /></font>
  12.                 </xsl:element>
  13.         </td>
  14.         <td width="165" style="color:#737373" align="right"><xsl:value-of select="UDATE" /></td>
  15.         </tr>

  16.         <tr><td colspan="3" align="center"><img src="../../templates/green/images/middle_line.gif" width="496" height="6" border="0" alt="" /> </td></tr>


  17. </xsl:for-each>
  18. <tr><td colspan="3" align="center" height="20" id="pagelist"></td></tr>
  19. </table>
复制代码

论坛徽章:
0
6 [报告]
发表于 2006-02-22 23:34 |只看该作者
谢谢。虽然成功了不过还是不怎么好看,背景颜色能弄成白色吗???

论坛徽章:
1
2016猴年福章徽章
日期:2016-02-18 15:30:34
7 [报告]
发表于 2006-02-23 10:00 |只看该作者
将代码改成


  1. <table border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" width="100%" bgcolor="#FFFFFF">
  2. <tr><td colspan="3" height="5"></td></tr>
  3. <xsl:for-each select="BLOG/ARTILCES/ATRICLE" >

  4.         <tr height="18">
  5.         <td width="25" align="right">·</td>
  6.         <td >
  7.                 <xsl:element name="a">
  8.                 <xsl:attribute name="href">showart.php?id=<xsl:value-of select="ID" /></xsl:attribute>
  9.                 <xsl:attribute name="class">list1</xsl:attribute>
  10.                 <xsl:attribute name="target"><xsl:value-of select="/BLOG/STYLE_TARGET" /></xsl:attribute>
  11.                 <font style="font-size:10pt" color="#295200"><xsl:value-of select="TITLE" /></font>
  12.                 </xsl:element>
  13.         </td>
  14.         <td width="165" style="color:#737373" align="right"><xsl:value-of select="UDATE" /></td>
  15.         </tr>

  16.         <tr><td colspan="3" align="center"><img src="../../templates/tech/images/middle_line.gif" width="496" height="6" border="0" alt="" /> </td></tr>


  17. </xsl:for-each>
  18. </table>

复制代码

论坛徽章:
0
8 [报告]
发表于 2006-02-23 13:39 |只看该作者
再次感谢阿。你不如教教我要学习哪方面的资料才能看得懂这些代码。

授之以鱼,不如授之以渔.

论坛徽章:
1
2016猴年福章徽章
日期:2016-02-18 15:30:34
9 [报告]
发表于 2006-02-23 14:31 |只看该作者
学习HTML和XSL与XML的知道就行了。最主要的是XSL。
上面的加了并不是很好看,请用下面的这个:

加了灰色的边框


  1.         <table border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" width="96%">
  2.         <tr><td width="7" height="7"><img src="../../templates/tech/images/w_left_top.gif" border="0" alt="" /></td>
  3.         <td bgcolor="#F3F3F3" width="100%"></td>
  4.         <td width="7" height="7"><img src="../../templates/tech/images/w_right_top.gif" border="0" alt="" /></td>
  5.         </tr>
  6.         <tr><td colspan="3"  bgcolor="#F3F3F3" align="center">

  7. <table border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" width="100%" bgcolor="#FFFFFF">
  8. <tr><td colspan="3" height="5"></td></tr>
  9. <xsl:for-each select="BLOG/ARTILCES/ATRICLE" >

  10.         <tr height="18">
  11.         <td width="25" align="right">·</td>
  12.         <td >
  13.                 <xsl:element name="a">
  14.                 <xsl:attribute name="href">showart.php?id=<xsl:value-of select="ID" /></xsl:attribute>
  15.                 <xsl:attribute name="class">list1</xsl:attribute>
  16.                 <xsl:attribute name="target"><xsl:value-of select="/BLOG/STYLE_TARGET" /></xsl:attribute>
  17.                 <font style="font-size:10pt" color="#295200"><xsl:value-of select="TITLE" /></font>
  18.                 </xsl:element>
  19.         </td>
  20.         <td width="165" style="color:#737373" align="right"><xsl:value-of select="UDATE" /></td>
  21.         </tr>

  22.         <tr><td colspan="3" align="center"><img src="../../templates/tech/images/middle_line.gif" width="496" height="6" border="0" alt="" /> </td></tr>


  23. </xsl:for-each>
  24. </table>


  25.         </td></tr>
  26.         <tr><td width="7" height="7"><img src="../../templates/tech/images/w_left_buttom.gif" border="0" alt="" /></td>
  27.         <td bgcolor="#F3F3F3"></td>
  28.         <td width="7" height="7"><img src="../../templates/tech/images/w_right_buttom.gif" border="0" alt="" /></td>
  29.         </tr>
  30.         </table>
复制代码

论坛徽章:
0
10 [报告]
发表于 2006-02-23 16:50 |只看该作者
3Q了,你有电子邮箱吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP