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 ...
随机推荐
- 一个项目中说系统分为表现层、控制层、逻辑层、DAO层和最终数据库五层架构-转
表现层就是看到的东西,比如你现在看到的当前页面控制层就将你的请求从页面传到后台代码逻辑层就是处理你的请求的代码DAO层就是将数据存到数据库中的代码数据库就是数据库了,存东西用的 ,DAO层就是将访问数 ...
- ajax两种不同方式的不同结果
function upLoadAlterData(){ $("#form_main").ajaxSubmit({ url:"XX", cache:false, ...
- Oracle 支持正则表达式的函数
内容提要 oracle 10g 增加的正则表达式函数有以下四种: regexp_like() --返回满足条件的字段 regexp_instr() --返回满足条件的字符或字符串的位置 regexp_ ...
- C#本地时间和GMT(UTC)时间的转换
/// <summary> /// 本地时间转成GMT时间 /// </summary> 4 public static string ToGMTString(DateTime ...
- URL地址中的转义符
如果在XML里面存储URL地址可能涉及到转义符的问题 WEB开发中通过问号(?)方式在浏览器地址栏中传值时.浏览器是通过“&”来区分问号后的参数个数的. 如果出现传值参数中带有“&”时 ...
- 【LVM】LVM自动扩容脚本
概要说明: /dev/mapper/vg0-data挂载在目录/data下: 当新增物理磁盘时,需要自动对/dev/mapper/vg0-data磁盘时进行扩容(自动化脚本): 当新增物理磁盘时,自动 ...
- CenOS下搭建VPN服务
公司生产环境使用的是阿里云主机,采用的是两台nginx主机进行反向代理,现在需要内网一台服务器能够访问公网,所以在nginx服务器上搭建了VPN服务,用于进行内网访问公网. 系统环境:CenOS 6. ...
- Django的列表反序
Django虽然是python的web框架,但它不是所有的python特性都支持的. 最近在项目中遇到一个问题,需要在Django中将获得的列表反序排列,一开始我使用的是python的reverse方 ...
- AngularJS PhoneCat代码分析
转载自:http://www.tuicool.com/articles/ym6Jfen AngularJS 官方网站提供了一个用于学习的示例项目:PhoneCat.这是一个Web应用,用户可以浏览一些 ...
- event 关键字
event(C# 参考) event 关键字用于在发行者类中声明事件.下面的示例演示如何声明和引发将 EventHandler 用作基础委托类型的事件. C# public class SampleE ...