Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[疑难] 请教这个头部导航菜单的循环语句怎么带入啊!!

[复制链接]
adp365 发表于 2008-2-20 20:15:54 | 显示全部楼层 |阅读模式
我修改了一部分,就是到菜单哪里不知道怎么带入这个语句了。代码如下:
<?exit?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=$_SCONFIG[charset]" />
<title>$title  $_SCONFIG[seotitle]- Powered by SupeSite</title>
<meta name="keywords" content="$keywords $_SCONFIG[seokeywords]" />
<meta name="description" content="$description $_SCONFIG[seodescription]" />
<link rel="stylesheet" type="text/css" href="{S_URL}/templates/$_SCONFIG

[template]/css/style.css" />
<link rel="stylesheet" type="text/css" href="{S_URL}/templates/$_SCONFIG[template]/head/css.css"

/>
$_SCONFIG[seohead]
<script type="text/javascript">
var siteUrl = "{S_URL}";
</script>
<script src="{S_URL}/include/js/ajax.js" type="text/javascript" language="javascript"></script>
<script src="{S_URL}/include/js/common.js" type="text/javascript"

language="javascript"></script>
<script src="{S_URL}/templates/$_SCONFIG[template]/head/config.js"

language="javascript"></SCRIPT>
<script src="{S_URL}/templates/$_SCONFIG[template]/head/common.js"

language="javascript"></SCRIPT>
<script src="{S_URL}/templates/$_SCONFIG[template]/head/prototype.js"

language="javascript"></SCRIPT>
</head>

<BODY>
<DIV class=top_bg>
<DIV class=top_shijian><!--时间-->
<script src="{S_URL}/templates/$_SCONFIG[template]/head/time.js" language="javascript"></SCRIPT>
</DIV>
<script src="{S_URL}/templates/$_SCONFIG[template]/head/login.htm"

language="javascript"></SCRIPT>
</DIV>
<DIV id=hd><!--top-->
<DIV id=top>
<DIV id=logo><A href="{S_URL}/"><IMG src="{S_URL}/templates/$_SCONFIG[template]/head/logo.gif"

alt="$_SCONFIG[sitename]"></A></DIV>
<DIV id=topbanner>
<script src="{S_URL}/templates/$_SCONFIG[template]/head/1.js" language="javascript"></SCRIPT>
</DIV>
<DIV id=dl><A id=StranLink>【繁体中文】</A><BR><A
onclick="this.style.behavior='url(#default#homepage)';this.setHomePage ('{S_URL}/');"
href="{S_URL}/#">【设为首页】</A><BR><A
onclick="window.external.addFavorite('{S_URL}/','$_SCONFIG[sitename]')"
href="{S_URL}/#">【加入收藏】</A></DIV></DIV>
<div id="Nav-head">
<ul>
<li class="nav-off" onmouseover="show_menu(0);" id="menu_0">
<a href="{S_URL}/"><p>首页</p></a></li>
{loop $CHANNEL $cid $chan}
        <li class="nav-off" onmouseover="show_menu({$cid});" id="menu_{$cid}">
        <a href="{$chan[linkurl]}"><p>{$chan[channelname]}</p></a>
</li>{/loop}
</ul>
</div>

<div class="Nav-Bottom" id="sub_menu"></div>

<div id="menu_cont_0" style="display:none;">
<span>{tag_全站头部置顶}</span>
</div>

<!--{loop $CHANNEL $channel}-->
<div id="menu_cont_{$channel['channelid']}" style="display:none;">
<span>
<a href="{$channel['linkurl']}">{$channel['channelname']}首页</a>
{php if($channel[module]=='product' || $channel[module]=='wenba') $tempchinnalid=$channel

[module];else $tempchinnalid=$channel[channelid];}
{tag_导航菜单循环}
{if $channel[module]=='movie'}<span><a href="{$channel['linkurl']}letter.php" >按字母浏览

</a></span>
{elseif !$channel[islink]}<span><a href="{$channel['linkurl']}special/" >专题</a></span><span><a

href="{$channel['linkurl']}type.php" >类别</a></span><span><a href="{$MODULE[guestbook]

[linkurl]}index.php?keyid={$channelid}" class="white">留言本</a></span><span><a href="{$CHA

[linkurl]}contribute.php" class="white">投稿</a></span>
{elseif $channel[module]=='yp'}
<span><a href="{$channel['linkurl']}article.php" >企业新闻</a></span>
<span><a href="{$channel['linkurl']}company.php" >企业库</a></span>
<span><a href="{$channel['linkurl']}product.php" >产品库</a></span>
<span><a href="{$channel['linkurl']}job.php" >人才招聘</a></span>
<span><a href="{$channel['linkurl']}buy.php" >找买家</a></span>
<span><a href="{$channel['linkurl']}sales.php" >找促销</a></span>
{elseif $channel[module]=='house'} &nbsp;
<span><a href="{$channel['linkurl']}listinfo.php?infocat=1" >出租</a></span>
<span><a href="{$channel['linkurl']}listinfo.php?infocat=2" >求租</a></span>
<span><a href="{$channel['linkurl']}listinfo.php?infocat=3" >合租</a></span>
<span><a href="{$channel['linkurl']}listinfo.php?infocat=4" >出售</a></span>
<span><a href="{$channel['linkurl']}listinfo.php?infocat=5" >求购</a></span>
<span><a href="{$channel['linkurl']}listinfo.php?infocat=6" >置换</a></span>
<span><a href="{$channel['linkurl']}listdisplay.php" >新楼盘</a></span>
<span><a href="{$channel['linkurl']}web.php" >中介列表</a></span>
<span><a href="{$channel['linkurl']}displaymgr.php?action=add" >发布楼盘</a></span>
{/if}

</span>
</div>
<!--{/loop}-->


</div>

<script type="text/javascript">
var tID={$channelid};
function show_menu(ID){
  if(ID!=tID){
    $('sub_menu').innerHTML = '&nbsp;'+$('menu_cont_'+ID).innerHTML;
    $('menu_'+ID).className = 'nav-on';
    $('menu_'+tID).className = 'nav-off';
    tID=ID;
  }else{
    $('menu_'+ID).className = 'nav-on';
    $('sub_menu').innerHTML = '&nbsp;'+$('menu_cont_'+ID).innerHTML;   
  }
}
show_menu({$channelid});
</script>
<!--站内搜索-->
    <div class="search">
      <script language=http://www.adp365.com/data/js/search.js"></script>
    </div>

SS/XS的一个头部模板代码:
<?exit?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=$_SCONFIG[charset]" />
<title>$title  $_SCONFIG[seotitle]- Powered by SupeSite</title>
<meta name="keywords" content="$keywords $_SCONFIG[seokeywords]" />
<meta name="description" content="$description $_SCONFIG[seodescription]" />
<link rel="stylesheet" type="text/css" href="{S_URL}/templates/$_SCONFIG[template]/css/style.css" />
$_SCONFIG[seohead]
<script type="text/javascript">
var siteUrl = "{S_URL}";
</script>
<script src="{S_URL}/include/js/ajax.js" type="text/javascript" language="javascript"></script>
<script src="{S_URL}/include/js/common.js" type="text/javascript" language="javascript"></script>
</head>

<body>
<div id="wrap">
        <div id="header">
                <table border="0" cellpadding="0" cellspacing="0" id="headertab">
                        <tr>
                                <td id="logo">
                                        <a href="{S_URL}/"><img src="{S_URL}/templates/$_SCONFIG[template]/images/logo.jpg" alt="$_SCONFIG[sitename]" style="border:none;" /></a>
                                </td>
                                <td id="topmenu">
                                        <ul>
                                                <!--{loop $channels['menus'] $key $value}-->
                                                <li><a href="$value[url]" class="$key">$value[name]</a></li>
                                                <!--{/loop}-->
                                        </ul>
                                </td>
                        </tr>
                </table>
        </div>
       
        <div id="menu">
                <!--{block name="category" parameter="type/file/isroot/1/ischannel/2/order/c.displayorder/limit/0,100/cachetime/93600/cachename/category/tpl/data"}-->
                <ul>
                        <!--{loop $_SBLOCK['category'] $value}-->
                        <li><a href="$value[url]">$value[name]</a></li>
                        <!--{/loop}-->
                </ul>
        </div>


请高手不吝赐教!谢谢!谢谢!
yan8725831 发表于 2008-2-22 12:04:47 | 显示全部楼层
好的东西,别沉下.我顶~~~!!!
回复

使用道具 举报

yopou 发表于 2008-2-22 12:05:11 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-1-12 07:46 , Processed in 0.023102 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表