塞维利亚地图
加入收藏    手機頻道
當前位置:首頁  >>  網頁設計
瀑布流代碼分析 文章出處:淮南智誠網絡公司    網站責任編輯:     作者:     人氣:1288    發表時間:2013-11-4

今天小編用ASPCMS分析下瀑布流如何制作,代碼如下

 

<!doctype html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>{aspcms:sorttitle}-{aspcms:sitetitle}</title>
<meta name="Keywords" content="{aspcms:sortkeyword}" >
<meta name="Description" content="{aspcms:sortdesc}" >
<link rel="shortcut icon" type="image/ico" href="/favicon.ico" />

<link href="{aspcms:sitepath}/Templates/{aspcms:defaulttemplate}/theme/css/style.css" rel="stylesheet" type="text/css" />

 
 
<!--[if lt IE 9]><script src="{aspcms:sitepath}/Templates/{aspcms:defaulttemplate}/theme/js/html5.js"></script><![endif]-->
<link href="{aspcms:sitepath}/Templates/{aspcms:defaulttemplate}/theme/js/style.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="{aspcms:sitepath}/Templates/{aspcms:defaulttemplate}/theme/js/jquery-1.8.2.min.js"></script>
<script>
var cid= parseInt();
</script>
 
</head>
<body>


<div class="c">
<div class="float">
<a href="http://login.53kf.com/webCompany.php?arg=10033978&style=1" target="_blank" style="height:126px;"></a>
<a href="/weixin.html" target="_blank" style="height:195px;"></a>
<a href="http://weibo.com/njlomo" target="_blank" style="height:105px;"></a>

<script>
    $(function() {
        $(window).resize(function() { goTop(); });
        $(window).scroll(function() { goTop(); });
    });
    function goTop() {
  $(".float").stop().animate({ "top": ($(window).height() + $(window).scrollTop() - ($(window).height() + $(".float").height()) / 2) < 555 ? 555 :
 $(window).height() + $(window).scrollTop() - ($(window).height() + $(".float").height()) / 2 }, 600);
    }
</script>
</div>
</div>

<div class="head">
    <div class="header">
        <h1>
            <a href="/">
                <img src="{aspcms:sitepath}/Templates/{aspcms:defaulttemplate}/theme/bg/logo.gif" /></a></h1>
        <div class="nav">
            <ul>
   {aspcms:navlist num=1}
                <li class="n[navlist:order]"><a href="[navlist:link]" title="[navlist:name]" class=""><span></span>
                </a></li>
   {/aspcms:navlist}
            </ul>
        </div>
    </div>
</div>
 
<div id="goTopButton" class="gotop_btn" style="filter:alpha(opacity=70);-moz-opacity:0.7;background:url(../bg/bg1.gif) repeat-x #b3dddc;  height:50px; width:100%; cursor:pointer;display:none; position:fixed; z-index:99999; top:-1px;">
 
 
<div class="head" style="filter:alpha(opacity=70);-moz-opacity:0.7; height:50px;">
    <div class="header">
       
        <div class="nav1">
            <ul>
            <li><a href="{aspcms:sitepath}{aspcms:languagepath}">網站首頁</a></li>
   {aspcms:navlist num=1}
               
                <li class="n[navlist:order]"><a href="[navlist:link]" title="[navlist:name]" class="">[navlist:name]
                </a></li>
   {/aspcms:navlist}
            </ul>
        </div>
    </div>
</div>

<script>
$(function(){
$(window).resize(function(){goTop();});
$(window).scroll(function(){goTop();});
});
function goTop(){
$(".float").stop().animate({"top":($(window).height()+$(window).scrollTop()-($(window).height()+$(".float").height())/2)<200 ? 200 : $(window).height()+$(window).scrollTop()-($(window).height()+$(".float").height())/2},800);
}
</script>
 
 

</div>
<!--head-->
 
 
  

 

 

 

 

<div class="w100" style="background-color:#FFFFFF;">
<div class="wrap">
<div class="ny_title">
<span>每日客片</span>
<font>您的當前位置:<a href="{aspcms:sitepath}{aspcms:languagepath}">首頁</a>{aspcms:position} &gt; [position:link]{/aspcms:position}  </font>
</div>
<div class="ny_body">
<div id="photolistcon">

<div class="cell">
<ul class="subm">

{aspcms:navlist type={aspcms:sortid}}
                  
<li>
 <h2><a href="[navlist:link]"  >[navlist:name]</a></h2>
</li>
{/aspcms:navlist}
 
 
 
</ul>
</div>
<!--頁面固定幻燈圖片------->
      <!--頁面固定幻燈圖片------->
     <p>&nbsp;</p>
   <p>&nbsp;</p>  <p>&nbsp;</p>  <p>&nbsp;</p>  <p>&nbsp;</p>  <p>&nbsp;</p>  <p>&nbsp;</p>  <p>&nbsp;</p>  <p>&nbsp;</p>  <p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p><p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p><p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p><p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</div>

<nav id="page-nav">
<a></a>
</nav>
<div class="pagenum"><!--
[list:pagenumber linktype=guestlist len=5]-->
<!--
    &nbsp;<span class='current'>1</span>&nbsp;<a href='/index.php/Kepian/index.shtml?&p=2'>&nbsp;2&nbsp;</a>&nbsp;<a href='/index.php/Kepian/index.shtml?&p=3'>&nbsp;3&nbsp;</a>&nbsp;<a href='/index.php/Kepian/index.shtml?&p=4'>&nbsp;4&nbsp;</a>&nbsp;<a href='/index.php/Kepian/index.shtml?&p=5'>&nbsp;5&nbsp;</a> <a href='/index.php/Kepian/index.shtml?&p=2'>下一頁</a>  <a href='/index.php/Kepian/index.shtml?&p=6' >下5頁</a>
 
 --></div>

</div>
</div>
</div>

<script language="javascript" src="{aspcms:sitepath}/Templates/{aspcms:defaulttemplate}/theme/js/jquery.lazyload.min.js"></script>
<script language="javascript" src="{aspcms:sitepath}/Templates/{aspcms:defaulttemplate}/theme/js/common.js"></script>
<script language="javascript">
$(function(){
$("img.lazy").lazyload({effect:"fadeIn"});
st();
window.onscroll=st;
$(".loginin span").hover(function(){
$(this).find("ul:first").show();//鼠標滑過查找li下面的第一個ul然后顯示;
$(this).find(".pmh").hide();
},function(){
$(this).find("ul:first").hide();//鼠標離開隱藏li下面d的ul;
$(this).find(".pmh").show();
});
})
</script>


<script language="javascript" src="{aspcms:sitepath}/Templates/{aspcms:defaulttemplate}/theme/js/jquery.masonry.min.js"></script>
<script language="javascript" src="{aspcms:sitepath}/Templates/{aspcms:defaulttemplate}/theme/js/jquery.infinitescroll.min.js"></script>
<script>
  $(function(){
 
     showhide(".cellshare","ul:first");
 
 var sm=$(".slishow_pro span a").length;
var sw = 0;
$(".slishow_pro span a").mouseover(function(){
sw = $(".slishow_pro span a").index(this);
myShow(sw);
});
function myShow(i){
$(".slishow_pro span a").eq(i).addClass("cu").siblings("a").removeClass("cu");
$(".slishow_pro ul li").eq(i).stop(true,true).fadeIn(300).siblings("li").fadeOut(300);
}
//滑入停止動畫,滑出開始動畫
$(".slishow_pro").hover(function(){
if(myTime){
clearInterval(myTime);
}
},function(){
myTime = setInterval(function(){
myShow(sw)
sw++;
if(sw==sm){sw=0;}
} , 3000);
});
//自動開始
var myTime = setInterval(function(){
myShow(sw)
sw++;
if(sw==sm){sw=0;}
} , 3000);
 
////////////////////////////////////////////////////////////////////////////////
var p = parseInt(1);
var sp = 2;
var wallpage = parseInt(8);
var cid=1
var url = 'walllist.asp?sp='+sp+'&p='+p+'&cid='+cid;

$('#page-nav a').attr('href','walllist.asp?sp='+sp+'&p='+p+'&cid='+cid);
    var $container = $('#photolistcon');
   
    $container.imagesLoaded(function(){
      $container.masonry({
        itemSelector:'.cell',
        columnWidth:0,
  //isAnimated:true, //使用jquery的布局變化,是否啟用動畫效果
  animationOptions:{
   //jquery animate屬性 ,動畫效果選項。比如漸變效果 Object { queue: false, duration: 500 }
  },
  gutterWidth:0,//列的間隙
     //isFitWidth:true,//自適應寬度
     isResizableL:true,// 是否可調整大小
     isRTL:false//使用從右到左的布局
      });

    $container.infinitescroll({
       navSelector  : '#page-nav',    // selector for the paged navigation
       nextSelector : '#page-nav a',  // selector for the NEXT link (to page 2)
       itemSelector : '.cell',     // selector for all items you'll retrieve
       dataType     : 'html',
       donetext     : "..." ,
       pixelsFromNavToBottom:250,
       debug:false,
       loading: {
        speed: 200,
        msgText: "加載中....",
           finishedMsg: '',
           finished: function(){sp++; if(sp>wallpage){$("#infscr-loading").hide();$(".pagenum").show();$(window).unbind('.infscr');}},
           errorCallback:function(){ $(".pagenum").show(); }}}, function( newElements ) { var $newElems = $( newElements ).css({ opacity: 0 }); $container.infinitescroll('pause');$newElems.imagesLoaded(function(){ $newElems.animate({ opacity: 1 }); $container.masonry( 'appended', $newElems, true );$container.infinitescroll('resume');
           showhide(".cellshare","ul:first");
    // alert(sp);
         });
       }
     );
    });
  });
</script>

 {aspcms:foot}
 </body>
</html>
如果有不太明白,可以加QQ問我

想和他們一樣成功嗎?
此文關鍵詞:
域名查詢

    國家域名處理投訴中心
    010-58813000
    Email:[email protected]
Copyright © 2007 - 2018 版權所有 淮南智誠互動網絡科技有限公司
皖ICP備09027578號 聯系我們
塞维利亚地图 快速时时是哪里开的 双色球复式兑奖图表 中国山东时时 三分pk10是正规彩票吗 捕鱼棋牌 宝马后排娱乐 8个数复式二中二怎么算 28杠生死门公式技巧 二人斗地主让牌什么意思 重庆时时彩平台手机app 什么是澳门时时彩 678龙虎电玩城