码迷,mamicode.com
首页 > Web开发 > 详细

example_PHPCMS企业站项目

时间:2016-05-10 20:36:16      阅读:141      评论:0      收藏:0      [点我收藏+]

标签:

技术分享
<!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=utf-8" />
<link href="{CSS_PATH}/LX/lingxian.css" rel="stylesheet" type="text/css" />
<script src="{JS_PATH}LX/jquery-1.12.3.min.js"></script>
<title>无标题文档</title>

</head>

<body>

<div class="banner"><img src="{$CATEGORYS[$catid][image]}"/></div>

<div class="down">

        <div class="left">
            
            <div class="about">{$CAT[catname]}</div>
            
            {pc:content action="lists" catid="$catid" num="25" order="id ASC" }
            {loop $data $r}
            
            <div class="list"><div class="DIV1">
            <div class="ico1"><img src="{IMG_PATH}LX/ico_01.jpg" /></div>
            <a  href="#" class="xianshi" bs="{$r[id]}" >{$r[title]}</a>
            <div class="ico2"><img src="{IMG_PATH}LX/ico_02.jpg" /></div>
            </div></div>
            
            {/loop}{/pc}
           
        </div>    
        
        
         {pc:content action="lists" catid="$catid" num="25" order="id ASC" moreinfo="1"}
          {loop $data $r}
          <div class="right" id="{$r[id]}" style="display:none">
          
           <div class="tit"><a href="{siteurl($siteid)}" style="color: #3d3d3d">首页</a><span> &gt; </span>{catpos($catid)}{$r[title]}</div>
           
           <div class="cont">{$r[content]}</div>
           
          </div>
        {/loop}
          {/pc}


</div>
    

</body>
</html>
<script type="text/javascript">
$(document).ready(function(e) {
    $(".right").eq(0).css("display","block");
    $(".xianshi").click(function(){
        
        var id = $(this).attr("bs");
        $(".right").css("display","none");
        $("#"+id).css("display","block");
        
        })
});
</script>
View Code

 

example_PHPCMS企业站项目

标签:

原文地址:http://www.cnblogs.com/sihuiming/p/5479142.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!