Mvc Kissy uploader实现图片批量上传 附带瀑布流的照片墙
2013-08-08 10:37
363 查看
前言
KISSY
View Code
DEMO下载
KISSY
@model List<MvcApplication3.Models.Photos> @{Layout = null;} <!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=gb2312"> <title>jQuery实现的瀑布流布局的图片特效代码</title> <link href="../../Content/lanrenzhijia.css" rel="stylesheet" type="text/css" /> <script src="../../Scripts/jquery-1.7.1.min.js" type="text/javascript"></script> <!--[if lt IE 9]> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <script src="../../Scripts/blocksit.min.js" type="text/javascript"></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> <!-- Content --> <section id="wrapper"> <div id="container"> @foreach (var item in Model) { <div class="grid"> <div class="imgholder"> <img src="@item.Src" /> </div> <strong>@item.Desc</strong> <p>上 传 时 间:</p> <div class="meta">@item.PubliseTime.ToString()</div> </div> } <!----> </div> </section> </body> </html>
View Code
DEMO下载
相关文章推荐
- Mvc利用淘宝Kissy uploader实现图片批量上传附带瀑布流的照片墙
- Mvc利用淘宝Kissy uploader实现图片批量上传附带瀑布流的照片墙
- Mvc利用淘宝Kissy uploader实现图片批量上传附带瀑布流的照片墙
- Mvc利用淘宝Kissy uploader实现图片批量上传附带瀑布流的照片墙
- Mvc利用淘宝Kissy uploader实现图片批量上传附带瀑布流的照片墙
- struts+swfupload实现批量图片上传(下篇)
- struts+swfupload实现批量图片上传(上):swfupload
- Beego+uploadify实现图片批量上传
- PHP批量上传图片的具体实现方法介绍.
- OneThink实现多图片批量上传功能
- jspSmartUpload实现图片的批量上传
- .net 实现批量上传图片,图片还要显示出来
- php fileinput实现多图片批量上传
- SSM中使用Kindeditor插件实现图片的批量上传与回显
- 在easyui的框架中,使用ajax实现批量上传图片到服务器
- thinkPHP5框架整合plupload实现图片批量上传功能的方法
- JQuery+ajax实现批量上传图片
- JQuery+ajax实现批量上传图片(自写)
- .NET MVC实现多图片上传并附带参数(ajaxfileupload)
- form实现图片批量上传+不跳转页面