原文地址http://tech.powereasy.net/help/SiteWeaver/1056.html
1、打开系统设置----自定义标签管理----找到{$MY_动易2006海蓝首页顶}标签,修改代码如下(注意红色部分是新增加的文章频道栏目JS调用代码。如果您从没修改过这个标签,也可以直接复制下面全部代码,替换原来的代码):
<table height=114 cellSpacing=0 cellPadding=0 width=778 align=center background={$InstallDir}Skin/Ocean/top_bg.jpg border=0> <tr> <td width=213>{$ShowLogo(213,114)}</td> <td> <table cellSpacing=0 cellPadding=0 width="100%" border=0> <tr> <td align=right colSpan=2> <table cellSpacing=0 cellPadding=0 align=right border=0> <tr> <td><A href="{$InstallDir}Announcelist.asp"><IMG height=25 alt=网站公告列表 src="{$InstallDir}Skin/Ocean/Announce_01.jpg" border=0></A></td> <td class=showa width=280 background={$InstallDir}Skin/Ocean/Announce_02.jpg> <MARQUEE onmouseover=this.stop() onmouseout=this.start() scrollAmount=1 scrollDelay=4 width=430 align="left">{$ShowAnnounce(2,5)}</MARQUEE></td> </tr> </table> </td> </tr> <tr> <td width="83%" height=80>{$ShowBanner(468,60)}</td> <td width="17%"> <table height=89 cellSpacing=0 cellPadding=0 width=94 background={$InstallDir}Skin/Ocean/topr.gif border=0> <tr> <td align=middle colSpan=2> <table height=56 cellSpacing=0 cellPadding=0 width=79 border=0> <tr> <td align=middle width=26><IMG height=13 src="{$InstallDir}Skin/Ocean/arrows.gif" width=13></td> <td width=68><A class=Bottom href="javascript:window.external.addFavorite('{$SiteUrl}','{$SiteName}');">加入收藏</A></td> </tr> <tr> <td align=middle><IMG height=13 src="{$InstallDir}Skin/Ocean/arrows.gif" width=13></td> <td><A class=Bottom onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('{$SiteUrl}');" href="#">设为首页</A></td> </tr> <tr> <td align=middle><IMG height=13 src="{$InstallDir}Skin/Ocean/arrows.gif" width=13></td> <td><A class=Bottom href="mailto:{$WebmasterEmail}">联系站长</A></td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> <table cellSpacing=0 cellPadding=0 width=778 align=center border=0> <tr> <td class=menu_s align=middle>{$ShowChannel} {$Rss}{$Wap}</td> </tr> <tr> <td class=top_nav_menu align=middle> <script language='javascript1.2' type='text/javascript' src='{$InstallDir}Js/stm31.js'></script> <script language='javascript1.2'type='text/javascript'src='{$InstallDir}Article/JS/ShowClass_Menu.js'> </script> </td> </tr> <tr> <td><IMG height=7 src="{$InstallDir}Skin/Ocean/menu_bg2.jpg" width=778></td> </tr> <tr> <td background={$InstallDir}Skin/Ocean/addr.jpg height=21> <table cellSpacing=0 cellPadding=0 width="100%" border=0> <tr> <td align=middle width="5%"><IMG height=17 src="{$InstallDir}Skin/Ocean/arrows2.gif" width=16></td> <td width="95%">{$ShowPath}</td> </tr> </table> </td> </tr> <tr> <td background={$InstallDir}Skin/Ocean/addr_line.jpg height=4></td> </tr> </table> |
2、保存后,重新生成文章频道顶部菜单,然后更新缓存。
3、有人不想显示“ | 文章中心首页 | ”这几个字,在哪里修改呢?请您用记事本打开Admin目录下的Admin_RootClass_Menu.asp文件,找到以下代码:
strJS = strJS & stm_aix("p0i1", "p0i0", ChannelName & "首页", ChannelUrl & "/Index." & FileExt_List, "_self", "", False) & vbCrLf Else strJS = strJS & stm_aix("p0i1", "p0i0", ChannelName & "首页", ChannelUrl & "/Index.asp", "_self", "", False) & vbCrLf End If strJS = strJS & stm_aix("p0i2", "p0i0", "|", "", "_self", "", False) & vbCrLf |
修改为如下:
' strJS = strJS & stm_aix("p0i1", "p0i0", ChannelName & "首页", ChannelUrl & "/Index." & FileExt_List, "_self", "", False) & vbCrLf ' Else ' strJS = strJS & stm_aix("p0i1", "p0i0", ChannelName & "首页", ChannelUrl & "/Index.asp", "_self", "", False) & vbCrLf End If strJS = strJS & stm_aix("p0i2", "p0i0", "", "", "_self", "", False) & vbCrLf |
4、 保存后,重新生成文章频道的顶部菜单,然后更新缓存。如果是静态的请重新生成首页HTML。 |