blocksit
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Sc.Chinaz.Com</title> | |
<link rel='stylesheet' href='style.css' media='screen' /> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
<!--[if lt IE 9]> | |
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> | |
<![endif]--> | |
<script src="../blocksit.min.js"></script> | |
<script> | |
$(document).ready(function() { | |
//vendor script | |
$('#header') | |
.css({ 'top':-50 }) | |
.delay(1000) | |
.animate({'top': 0}, 800); | |
$('#footer') | |
.css({ 'bottom':-15 }) | |
.delay(1000) | |
.animate({'bottom': 0}, 800); | |
//blocksit define | |
$(window).load( function() { | |
$('#container').BlocksIt({ | |
numOfCol: 5, | |
offsetX: 8, | |
offsetY: 8 | |
}); | |
}); | |
//window resize | |
var currentWidth = 1100; | |
$(window).resize(function() { | |
var winWidth = $(window).width(); | |
var conWidth; | |
if(winWidth < 660) { | |
conWidth = 440; | |
col = 2 | |
} else if(winWidth < 880) { | |
conWidth = 660; | |
col = 3 | |
} else if(winWidth < 1100) { | |
conWidth = 880; | |
col = 4; | |
} else { | |
conWidth = 1100; | |
col = 5; | |
} | |
if(conWidth != currentWidth) { | |
currentWidth = conWidth; | |
$('#container').width(conWidth); | |
$('#container').BlocksIt({ | |
numOfCol: col, | |
offsetX: 8, | |
offsetY: 8 | |
}); | |
} | |
}); | |
}); | |
</script> | |
</head> | |
<body> | |
<!-- Header --> | |
<header id="header"> | |
<h1>BlocksIt.js | Dynamic Grid Layout jQuery Plugin</h1> | |
<div id="backlinks"> | |
<a href="../">Back to Home Page »</a> | |
<a href="http://Sc.Chinaz.Com/">Sc.Chinaz.Com</a> | |
</div> | |
<div class="clearfix"></div> | |
</header> | |
<!-- Content --> | |
<section id="wrapper"> | |
<hgroup> | |
<h2>BlocksIt.js Demonstration 2</h2> | |
<h3>Pinterest Dynamic Grid Layout with CSS3 Transitions (RESIZE)</h3> | |
</hgroup> | |
<div id="container"> | |
<div class="grid"> | |
<div class="imgholder"> | |
<img src="http://www.inwebson.com/demo/blocksit-js/demo2/images/img27.jpg" /> | |
</div> | |
<strong>Sunset Lake</strong> | |
<p>A peaceful sunset view...</p> | |
<div class="meta">by j osborn</div> | |
</div> | |
<div class="grid"> | |
<div class="imgholder"> | |
<img src="http://www.inwebson.com/demo/blocksit-js/demo2/images/img26.jpg" /> | |
</div> | |
<strong>Bridge to Heaven</strong> | |
<p>Where is the bridge lead to?</p> | |
<div class="meta">by SigitEko</div> | |
</div> | |
<div class="grid"> | |
<div class="imgholder"> | |
<img src="http://www.inwebson.com/demo/blocksit-js/demo2/images/img15.jpg" /> | |
</div> | |
<strong>Autumn</strong> | |
<p>The fall of the tree...</p> | |
<div class="meta">by Lars van de Goor</div> | |
</div> | |
<div class="grid"> | |
<div class="imgholder"> | |
<img src="http://www.inwebson.com/demo/blocksit-js/demo2/images/img23.jpg" /> | |
</div> | |
<strong>Winter Whisper</strong> | |
<p>Winter feel...</p> | |
<div class="meta">by Andrea Andrade</div> | |
</div> | |
<div class="grid"> | |
<div class="imgholder"> | |
<img src="http://www.inwebson.com/demo/blocksit-js/demo2/images/img17.jpg" /> | |
</div> | |
<strong>Light</strong> | |
<p>The only shinning light...</p> | |
<div class="meta">by Lars van de Goor</div> | |
</div> | |
<div class="grid"> | |
<div class="imgholder"> | |
<img src="http://www.inwebson.com/demo/blocksit-js/demo2/images/img22.jpg" /> | |
</div> | |
<strong>Rooster's Ranch</strong> | |
<p>Rooster's ranch landscape...</p> | |
<div class="meta">by Andrea Andrade</div> | |
</div> | |
<div class="grid"> | |
<div class="imgholder"> | |
<img src="http://www.inwebson.com/demo/blocksit-js/demo2/images/img16.jpg" /> | |
</div> | |
<strong>Autumn Light</strong> | |
<p>Sun shinning into forest...</p> | |
<div class="meta">by Lars van de Goor</div> | |
</div> | |
<div class="grid"> | |
<div class="imgholder"> | |
<img src="http://www.inwebson.com/demo/blocksit-js/demo2/images/img21.jpg" /> | |
</div> | |
<strong>Yellow cloudy</strong> | |
<p>It is yellow cloudy...</p> | |
<div class="meta">by Zsolt Zsigmond</div> | |
</div> | |
<div class="grid"> | |
<div class="imgholder"> | |
<img src="http://www.inwebson.com/demo/blocksit-js/demo2/images/img28.jpg" /> | |
</div> | |
<strong>Herringfleet Mill</strong> | |
<p>Just a herringfleet mill...</p> | |
<div class="meta">by Ian Flindt</div> | |
</div> | |
<div class="grid"> | |
<div class="imgholder"> | |
<img src="http://www.inwebson.com/demo/blocksit-js/demo2/images/img2.jpg" /> | |
</div> | |
<strong>Battle Field</strong> | |
<p>Battle Field for you...</p> | |
<div class="meta">by Andrea Andrade</div> | |
</div> | |
<div class="grid"> | |
<div class="imgholder"> | |
<img src="http://www.inwebson.com/demo/blocksit-js/demo2/images/img24.jpg" /> | |
</div> | |
<strong>Sundays Sunset</strong> | |
<p>Beach view sunset...</p> | |
<div class="meta">by Robert Strachan</div> | |
</div> | |
<div class="grid"> | |
<div class="imgholder"> | |
<img src="http://www.inwebson.com/demo/blocksit-js/demo2/images/img19.jpg" /> | |
</div> | |
<strong>Sun Flower</strong> | |
<p>Good Morning Sun flower...</p> | |
<div class="meta">by Zsolt Zsigmond</div> | |
</div> | |
<div class="grid"> | |
<div class="imgholder"> | |
<img src="http://www.inwebson.com/demo/blocksit-js/demo2/images/img5.jpg" /> | |
</div> | |
<strong>Beach</strong> | |
<p>Something on beach...</p> | |
<div class="meta">by unknown</div> | |
</div> | |
<div class="grid"> | |
<div class="imgholder"> | |
<img src="http://www.inwebson.com/demo/blocksit-js/demo2/images/img25.jpg" /> | |
</div> | |
<strong>Flowers</strong> | |
<p>Hello flowers...</p> | |
<div class="meta">by R A Stanley</div> | |
</div> | |
<div class="grid"> | |
<div class="imgholder"> | |
<img src="http://www.inwebson.com/demo/blocksit-js/demo2/images/img20.jpg" /> | |
</div> | |
<strong>Alone</strong> | |
<p>Lonely plant...</p> | |
<div class="meta">by Zsolt Zsigmond</div> | |
</div> <!----> | |
</div> | |
</section> | |
<!-- Footer --> | |
<footer id="footer"> | |
<span>© 2012 <a href="http://Sc.Chinaz.Com">Sc.Chinaz.Com</a>.</span> | |
</footer> | |
</body> | |
</html> |
http://demo.sc.chinaz.com/Files/DownLoad/webjs/jiaoben67/demo2/
blocksit的更多相关文章
- Mvc利用淘宝Kissy uploader实现图片批量上传附带瀑布流的照片墙
前言 KISSY 是由阿里集团前端工程师们发起创建的一个开源 JS 框架.它具备模块化.高扩展性.组件齐全,接口一致.自主开发.适合多种应用场景等特性.本人在一次项目中层使用这个uploader组件. ...
- jQuery制作瀑布流(转)
“瀑布流布局”随着pinterest网的流行而出名,现在国内使用这种风格布局的网站也越来越多,比如说Mark之,蘑菇街,点点网,哇哦等等.我第一次听到这个布局名称是来自于“乔花写的<瀑布流布局浅 ...
- Mvc Kissy uploader实现图片批量上传 附带瀑布流的照片墙
前言 KISSY 是由阿里集团前端工程师们发起创建的一个开源 JS 框架.它具备模块化.高扩展性.组件齐全,接口一致.自主开发.适合多种应用场景等特性.本人在一次项目中层使用这个uploader组件. ...
- jQuery插件之-瀑布流插件
jquery.wookmark.js 一个实现瀑布流自适应宽度布局的jQuery插件—jquery.wookmark.js , wookmark使用非常简单到只需要一句代码就能实现,除此之外,当页面宽 ...
- jQuery超酷响应式瀑布流效果
参考 http://www.sucaihuo.com/js/74.html <script src="scripts/blocksit.min.js"></scr ...
随机推荐
- Phonegap在ios7上系统状态栏的问题解决
用Phonegap+jqm开发的应用,在ios6下没问题,但是在ios7下会出现如下系统状态栏和header重合的问题,搜索了一下,发现这其实是 phonegap当前版本的一个已知问题,通过修改./p ...
- LintCode "Max Tree"
Something new I learnt from it: what is Treap and a O(n) construction https://en.wikipedia.org/wiki/ ...
- <新手必读>Eclipse中,Add Jars与Add Library的区别
Eclipse中,工程属性的Java Build Path的Library标签页下,有如下几个按钮:Add Jars...添加JAR包,是指本Eclipse当前包含的工程中的,在工程列表下选取即可Ad ...
- golang rbac框架
在 https://github.com/mikespook/gorbac/tree/v1.0 github上新的版本是开发板,得用这里的老版 demo package main import ( & ...
- asp.net中Respons.Write()的用法
很多时候,我们为了是页面的传输速率更高.很自然回去选择脚本和ajax结合进行传值,在传值如要向页面回传数据时,可能只有一次也会是多次.一次的情况下我们可以很好的用Respons.End()方法来截取我 ...
- activiti自定义流程之自定义表单(二):创建表单
注:环境配置:activiti自定义流程之自定义表单(一):环境配置 在上一节自定义表单环境搭建好以后,我就正式开始尝试自己创建表单,在后台的处理就比较常规,主要是针对ueditor插件的功能在前端进 ...
- Linux启动过程详解(转)
启动第一步--加载BIOS当你打开计算机电源,计算机会首先加载BIOS信息,BIOS信息是如此的重要,以至于计算机必须在最开始就找到它.这是因为BIOS中包含了CPU的相关信息.设备启动顺序信息.硬盘 ...
- fork()详解
参照: http://blog.csdn.net/jason314/article/details/5640969 http://coolshell.cn/articles/7965.html
- PLSQL_性能优化系列03_Oracle Parallel并发处理
2014-09-25 Created By BaoXinjian
- GL_Oracle Erp月结和年节流程讨论(概念)
2014-02-06 Created By BaoXinjian