本帖最后由 cgen8 于 2010-11-7 03:07 编辑
搜城随州圈二级代码不是导航是版块介绍绝对漂亮(见演示站点)
其实就是全部html代码
没什么其他的
就这段代码放进去就可以了
- <div id="pw_content" class=""><!--关闭侧栏使用样式 sideClose-->
- <div id="sidebar" class="f_tree cc">
- <div class="content_thread cc">
- <div class="content_ie">
- <div>
- <style type="text/css">
- #un_body{
- width:960px;
- overflow: hidden;
- position: relative;
- margin-bottom: 6px;
- }
- .un_child{
- width:960px;
- position: absolute;
- z-index: 90;
- top:0px;
- left: 0px;
- }
- .un_child .list{
- border-bottom: 4px solid #F26520;
- background-image: url(diy/quanquan/child_bg.jpg);
- background-position: left bottom;
- background-repeat: repeat-x;
- overflow: hidden;
- margin-top: -75px;
- float: left;
- width:960px;
- }
- .un_child .item{
- padding-left: 43px;
- float: left;
- width:273px!important;
- height:62px!important;
- }
- .un_child .split{
- background-image: url(diy/quanquan/child_item_bg.jpg);
- background-position: right bottom;
- background-repeat: no-repeat;
- height:75px;
- width:5px;
- float: left;
- }
- .un_child .item h3{
- font-weight: bold;
- font-size: 14px;
- height: 22px;
- line-height: 22px;
- width:250px;
- }
- .un_child .item h3 a{
- color:#F06520;
- }
- .un_child .item p{
- line-height: 18px;
- color:#626262;
- width:250px;
- height:36px;
- overflow: hidden;
- margin-top: 3px;
- }
- .pd_btn{
- text-align: right;
- height:33px;
- }
- .pd_btn .span1{
- background: url(diy/quanquan/food_child_btn.gif);
- background-position: 1px top;
- cursor: pointer;
- width:123px;
- height:33px;
- display: block;
- float: right;
- }
- .pd_btn .span2{
- background: url(diy/quanquan/food_child_btn2.gif);
- background-position: 1px top;
- cursor: pointer;
- width:123px;
- height:33px;
- display: block;
- float: right;
- }
- .un_content{
- background-image: url(diy/quanquan/food_bg.jpg);
- background-position: left 4px;
- background-repeat: no-repeat;
- width: 960px;
- height:467px;
- position: relative;
- z-index: 0;
- top:0px;
- left:0px;
- }
- .forum_info{
- width:550px;
- height:67px;
- background-image: url(diy/quanquan/food_desc_bg.gif);
- background-position: left bottom;
- background-repeat: no-repeat;
- position: absolute;
- top: 19px;
- left: 231px;
- display: inline;
- }
- .ban_topicC{
- padding-left: 17px;
- height:20px;
- color:#636363;
- line-height: 20px;
- }
- .ban_topicC a{
- color:#636363;
- }
- .forum_des{
- padding-left: 17px;
- color:#252525;
- }
- .hot_topics{
- position: absolute;
- top: 86px;
- left: 374px;
- display: inline;
- width:330px;
- }
- .hot_topics a{
- color:#757575;
- }
- .hot_topics .topic_item{
- height:24px;
- line-height: 24px;
- background-repeat: no-repeat;
- padding-left: 30px;
- font-size: 14px;
- background-position: 10px 5px;
- overflow: hidden;
- }
- .hot_topics .sort1{
- background-image: url(diy/quanquan/sort_num_1.jpg);
- }
- .hot_topics .sort2{
- background-image: url(diy/quanquan/sort_num_2.jpg);
- }
- .hot_topics .sort3{
- background-image: url(diy/quanquan/sort_num_3.jpg);
- }
- .hot_topics .sort4{
- background-image: url(diy/quanquan/sort_num_4.jpg);
- }
- .hot_topics .sort5{
- background-image: url(diy/quanquan/sort_num_5.jpg);
- }
- .hot_topics .sort6{
- background-image: url(diy/quanquan/sort_num_6.jpg);
- }
- .hot_topics .logo img{
- _behavior: url("u/images/iepngfix.htc");
- width:129px;
- height:40px;
- }
- .hot_topics .logo{
- height:56px;
- }
- .un_active{
- background-image: url(diy/quanquan/unarea_food_bot_bg.jpg);
- background-position: left bottom;
- background-repeat: repeat-x;
- position: absolute;
- display: inline;
- bottom: 0px;
- height:110px;
- width:960px;
- z-index: 0;
- }
- .hot_topics .logo2 img{
- _behavior: url("u/images/iepngfix.htc");
- width:173px;
- height:40px;
- }
- .hot_topics .logo2{
- text-align: left;
- margin-top: 14px;
- }
- .active_item{
- width:300px;
- height:90px;
- float: right;
- display: inline;
- }
- .active_item div{
- float: left;
- display: inline;
- overflow: hidden;
- }
- .active_item img{
- border:4px solid #E1E1E1;
- width:280px;
- height:70px;
- }
- .active_item .img{
- width:290px;
- height:80px;
- margin-right: 10px;
- border: none;
- padding: 0px;
- }
- .active_item .title{
- height:22px;
- line-height: 28px;
- font-size: 14px;
- font-weight: bold;
- width:190px;
- }
- .active_item .title a{
- color:#F26520;
- }
- .active_item .desc{
- margin-top: 14px;
- color:#464646;
- width:190px;
- height:54px;
- float: left;
- display: inline;
- }
- #food_hot{
- background-image: url(diy/quanquan/food_hot_bg.jpg);
- background-position: left bottom;
- background-repeat: repeat-x;
- padding:0 12px;
- padding:0 8px;
- width:200px;
- position: absolute;
- top:86px;
- right: 30px;
- }
- #food_hot span {
- color:#F26520;
- display:inline;
- float:left;
- font-size:14px;
- font-weight:bold;
- overflow:hidden;
- width:200px;
- }
- #food_hot ul{
- display:inline;
- float:left;
- margin-left:0;
- margin-top:4px;
- overflow:hidden;
- width:200px;
- margin-bottom: 4px;
- }
- #food_hot li {
- display:inline;
- float:none;
- height:18px;
- line-height:18px;
- padding-left:0;
- padding-right:5px;
- width:auto;
- }
- .un_flash{
- position: absolute;
- top:92px;
- width:324px;
- height:317px;
- }
- .flash_btn{
- background-image: url(diy/quanquan/food_flash_btn_bg.gif);
- height: 15px;
- width: 15px;
- color:#F36324;
- text-align: center;
- line-height: 15px;
- position: absolute;
- font-weight: bold;
- z-index: 5;
- cursor: pointer;
- }
- .flash_btn_current{
- background-image: url(diy/quanquan/food_flash_btn_h_bg.gif);
- color:#fff;
- }
- .fbtn1 {
- left:128px;
- top:410px;
- }
- .fbtn2 {
- left:149px;
- top:415px;
- }
- .fbtn3 {
- left:170px;
- top:417px;
- }
- .fbtn4 {
- left:191px;
- top:416px;
- }
- .fbtn5 {
- left:212px;
- top:412px;
- }
- .flash_img{
- width:288px;
- height:282px;
- position:absolute;
- top:127px;
- left:36px;
- z-index: 2;
- }
- .a_img{
- width:288px;
- height:282px;
- z-index: 3;
- position: absolute;
- top:127px;
- left:36px;
- }
- </style>
- <script type="text/javascript" src="diy/quanquan/jquery-1.3.2.min.js"></script>
- <script type="text/javascript">
- jQuery.noConflict();
- </script>
- <div id="un_body">
- <div class="un_child">
- <div class="list">
- <div class="item">
- <h3><a href="#">同城食品</a></h3>
- <p>都为零食狂</p>
- </div>
- <div class="split"></div>
- <div class="item">
- <h3><a href="#">美食商家自荐</a></h3>
- <p>商家发布餐厅、菜品、食材食器信息专区</p>
- </div>
- <div class="split"></div>
- <div class="item">
- <h3><a href="#">随州美食打折专区</a></h3>
- <p>分享随州美食餐饮打折优惠信息。</p>
- </div>
- <div style="clear:both;"></div>
- </div>
- <div class="pd_btn">
- <span class="span1"></span>
- </div>
- </div>
- <div class="un_content">
- <div class="forum_info">
- <div class="ban_topicC">
- 版主:
- <a class="username" href="#">林夕</a>
- 商务合作电话:15897649850
- </div>
- <div class="forum_des">
- 每次享受美食的同时要记得先拍照哦,那样就方便参加“吃了就来秀”活动了!如果你觉得活动不错,别忘了提醒你身边的朋友们,享受美食,分享美食,有机会得大奖哦!
- </div>
- </div>
- <div class="hot_topics">
- <div class="logo">
- <img alt="美食热门推荐" src="diy/quanquan/food_hot_logo.png"/>
- </div>
- <div class="topic_item sort1">
- <a href="#" target="_blank">生日蛋糕 哈根达斯淘宝购物切记~</a>
- </div>
- <div class="topic_item sort2">
- <a href="#" target="_blank">郊外觅食FB小记 泽园别有一番洞天</a>
- </div>
- <div class="topic_item sort3">
- <a href="#" target="_blank">港丽茶餐厅,这里的柠檬水淡的像白开水</a>
- </div>
- <div class="topic_item sort4">
- <a href="#" target="_blank">海派风情老克勒不是李克勤,上海菜餐厅尝鲜</a>
- </div>
- <div class="topic_item sort5">
- <a href="#" target="_blank">小房子,橘色顶。来自街有食情。</a>
- </div>
- <div class="topic_item sort6">
- <a href="#" target="_blank">吃喝版主又一大贴,福利加腐败的一天</a>
- </div>
- <div class="logo2">
- <img alt="美食精彩活动" src="diy/quanquan/food_active_logo.png"/>
- </div>
- </div>
- <div id="food_hot">
- <span>[热门菜]</span>
- <ul>
- <li><a target="_blank" href="#">自助餐</a></li>
- <li><a target="_blank" href="#">西餐</a></li>
- <li><a target="_blank" href="#">韩国菜</a></li>
- <li><a target="_blank" href="#">泰国菜</a></li>
- <li><a target="_blank" href="#">川菜</a></li>
- <li><a target="_blank" href="#">日本料理</a></li>
- <li><a target="_blank" href="#">龙虾</a></li>
- </ul>
- <span>[热门商圈]</span>
- <ul>
- <li><a target="_blank" href="#">新天地</a></li>
- <li><a target="_blank" href="#">随州</a></li>
- <li><a target="_blank" href="#">曾都区</a></li>
- <li><a target="_blank" href="#">百盛</a></li>
- </ul>
- <span>[热门街区]</span>
- <ul>
- <li><a target="_blank" href="#">丁公路</a></li>
- <li><a target="_blank" href="#">福州路</a></li>
- <li><a target="_blank" href="#">二七北路</a></li>
- <li><a target="_blank" href="#">民德路</a></li>
- <li><a target="_blank" href="#">子固路</a></li>
- <li><a target="_blank" href="#">沿江路</a></li>
- <li><a target="_blank" href="#">建德观街</a></li>
- </ul>
- <span>[热门分类]</span>
- <ul>
- <li><a target="_blank" href="#">近郊觅食</a></li>
- <li><a target="_blank" href="#">随州老字号</a></li>
- <li><a target="_blank" href="#">西餐</a></li>
- <li><a target="_blank" href="#">火锅</a></li>
- <li><a target="_blank" href="#">咖啡馆</a></li>
- <li><a target="_blank" href="#">夜宵</a></li>
- <li><a target="_blank" href="#">喝粥</a></li>
- </ul>
- </div>
- <img class="flash_img" src="diy/quanquan/hdp_17.jpg" style="display: list-item;"/>
- <a target="_blank" href="#"><img class="a_img" style="display: list-item;" src="diy/quanquan/tm.gif"/></a>
- <img class="flash_img" src="diy/quanquan/hdp_18.jpg" style="display: none;"/>
- <a target="_blank" href="#"><img class="a_img" style="display: none;" src="diy/quanquan/tm.gif"/></a>
- <img class="flash_img" src="diy/quanquan/hdp_19.jpg" style="display: none;"/>
- <a target="_blank" href="#"><img class="a_img" style="display: none;" src="diy/quanquan/tm.gif"/></a>
- <img class="flash_img" src="diy/quanquan/hdp_20.jpg" style="display: none;"/>
- <a target="_blank" href="#"><img class="a_img" style="display: none;" src="diy/quanquan/tm.gif"/></a>
- <img class="flash_img" src="diy/quanquan/hdp_21.jpg" style="display: none;"/>
- <a target="_blank" href="#"><img class="a_img" style="display: none;" src="diy/quanquan/tm.gif"/></a>
- <div style="z-index: 2; background-image: url(diy/quanquan/food_flash_bg.png);_behavior: url(u/images/iepngfix.htc); height: 375px; width: 356px; position: absolute; top: 92px;"></div>
- <div class="flash_btn flash_btn_current fbtn1" current="1" num="1">1</div>
- <div class="flash_btn fbtn2" current="0" num="2">2</div>
- <div class="flash_btn fbtn3" current="0" num="3">3</div>
- <div class="flash_btn fbtn4" current="0" num="4">4</div>
- <div class="flash_btn fbtn5" current="0" num="5">5</div>
- <script language="JavaScript">
- var autoplay = setInterval(function(){flash_play(-1)},2*1000);
- jQuery(".a_img,.flash_btn").mouseover(function(){
- clearInterval(autoplay);
- });
- jQuery(".a_img,.flash_btn").mouseout(function(){
- autoplay = setInterval(function(){flash_play(-1)},2*1000);
- });
- jQuery(".flash_btn").mouseover(function(){
- flash_play(parseInt(jQuery(this).attr("num"))-1);
- });
- function flash_play(i){
- if(i==-1){
- i = parseInt(jQuery(".flash_btn[current=1]").attr("num"));
- }
- jQuery(".flash_btn_current").attr("current","0");
- jQuery(".flash_btn_current").removeClass("flash_btn_current");
- jQuery(".flash_img,.a_img").css("display","none");
- var count = jQuery(".flash_btn").length;
- if(i==count){
- i=1;
- }else{
- i++;
- }
- jQuery(".flash_btn[num="+i+"]").addClass("flash_btn_current");
- jQuery(".flash_btn[num="+i+"]").attr("current","1");
- jQuery(".flash_img").eq(i-1).css({"display":"list-item","opacity":"0"});
- jQuery(".flash_img").eq(i-1).animate({"opacity":"1"},{queue:false},600);
- jQuery(".a_img").eq(i-1).css({"display":"list-item","opacity":"0"});
- jQuery(".a_img").eq(i-1).animate({"opacity":"1"},{queue:false},600);
- }
- </script>
- <div class="un_active">
- <div class="active_item">
- <div class="img"><a href="#" target="_blank"><img src="diy/quanquan/hd_6.jpg"/></a></div>
- <div class="title"><a href="#" target="_blank">【吃了就来秀12】新一期的活动</a></div>
- </div>
- <div class="active_item">
- <div class="img"><a href="#" target="_blank"><img src="diy/quanquan/hd_5.jpg"/></a></div>
- <div class="title"><a href="#" target="_blank">Office零食大作战</a></div>
- </div>
- <div style="clear:both"></div>
- </div>
- </div>
- </div>
- <script type="text/javascript">
- jQuery(".pd_btn span").click(function(){
- if(jQuery(this).attr("class")=='span1'){
- jQuery(this).attr("class","span2");
- jQuery(".un_child .list").animate({marginTop:"0px"},200);
- }else{
- jQuery(this).attr("class","span1");
- jQuery(".un_child .list").animate({marginTop:"-75px"},200);
- }
- });
- </script>
- </div>
复制代码
|