利用jquery实现大幅图片墙裁剪



50 198 67



特效描述:利用jquery实现 大幅图片墙裁剪,利用jquery实现大幅图片墙裁剪

代码结构

1. 引入CSS

<link rel="stylesheet" type="text/css" href="css/style.css" media="screen" />

2. 引入JS

<script src="js/jquery-1.4.2.min.js" type="text/javascript"></script>
<script src="js/jquery-ui-1.8.2.custom.min.js" type="text/javascript"></script>
<script src="js/large_thumbs.js" type="text/javascript"></script>

3. HTML代码

<div id="wrapper">
  <div id="content">
    <div id="title"><img src="img/title.gif" width="283" height="45" alt="jquery photogallery" /><br />
<br />
</div>
    <div id="arrow_wrap">
      <div id="prev"><a href="javascript:void(0);"><img src="img/prev.png" alt="prev" /></a></div>
      <div id="photo_wrap">
        <div id="close_msg" class="hide">
          <p>Click Image To close</p>
        </div>
        <ul id="thumbs">
          <li>
            <ul class="group">
              <li>
                <div class="thumb_img"><a href="img/image1.jpg"><img src="img/thumbs/thumb1.jpg" alt="thumb1" /></a></div>
                <div class="thumb_desc">
                  <p>This texture came from an advertising board on the streets of New York.</p>
                </div>
              </li>
              <li>
                <div class="thumb_img"><a href="img/image2.jpg"><img src="img/thumbs/thumb2.jpg" alt="thumb2" /></a></div>
                <div class="thumb_desc">
                  <p>This texture is from a wall I took a photo of.</p>
                </div>
              </li>
              <li>
                <div class="thumb_img"><a href="img/image3.jpg"><img src="img/thumbs/thumb3.jpg" alt="thumb3" /></a></div>
                <div class="thumb_desc">
                  <p>This is some old wood with some interesting paint on it.</p>
                </div>
              </li>
              <li>
                <div class="thumb_img"><a href="img/image4.jpg"><img src="img/thumbs/thumb4.jpg" alt="thumb4" /></a></div>
                <div class="thumb_desc">
                  <p>This is another old advertising board that had been picked apart</p>
                </div>
              </li>
              <li>
                <div class="thumb_img"><a href="img/image5.jpg"><img src="img/thumbs/thumb5.jpg" alt="thumb5" /></a></div>
                <div class="thumb_desc">
                  <p>I don't remember if I downloaded this one or shot it, but it is a garage door.</p>
                </div>
              </li>
              <li>
                <div class="thumb_img"><a href="img/image6.jpg"><img src="img/thumbs/thumb6.jpg" alt="thumb1" /></a></div>
                <div class="thumb_desc">
                  <p>This is on an iron rail outside a brownstone that has been rusted.</p>
                </div>
              </li>
            </ul>
            <ul class="group">
              <li>
                <div class="thumb_img"><a href="img/image7.jpg"><img src="img/thumbs/thumb7.jpg" alt="thumb1" /></a></div>
                <div class="thumb_desc">
                  <p>Another concrete texture. Interesting colors.</p>
                </div>
              </li>
              <li>
                <div class="thumb_img"><a href="img/image8.jpg"><img src="img/thumbs/thumb8.jpg" alt="thumb2" /></a></div>
                <div class="thumb_desc">
                  <p>Texture of rusted metal that I got off stockxchange.</p>
                </div>
              </li>
              <li>
                <div class="thumb_img"><a href="img/image9.jpg"><img src="img/thumbs/thumb9.jpg" alt="thumb3" /></a></div>
                <div class="thumb_desc">
                  <p>Some weird "broccoli" according to my roomate, although I think it is suspect.</p>
                </div>
              </li>
              <li>
                <div class="thumb_img"><a href="img/image10.jpg"><img src="img/thumbs/thumb10.jpg" alt="thumb4" /></a></div>
                <div class="thumb_desc">
                  <p>Some wood with graffiti on it and some kind of paper.</p>
                </div>
              </li>
              <li>
                <div class="thumb_img"><a href="img/image11.jpg"><img src="img/thumbs/thumb11.jpg" alt="thumb5" /></a></div>
                <div class="thumb_desc">
                  <p>Another rusty door for your pleasure</p>
                </div>
              </li>
              <li>
                <div class="thumb_img"><a href="img/image12.jpg"><img src="img/thumbs/thumb12.jpg" alt="thumb1" /></a></div>
                <div class="thumb_desc">
                  <p>This is the sidewalk on the north side of houston and mott I believe in NYC.</p>
                </div>
              </li>
            </ul>
          </li>
        </ul>
        <!-- end thumbs-->
        <div class="loading"><img src="img/ajax-loader.gif" /></div>
        <div id="large_images">
        </div>
        <!--end photo wrap -->
      </div>
      <div id="next"><a href="javascript:void(0);"><img src="img/next.png" alt="next" /></a></div>
      <!--end arrow wrap -->
    </div>
    <!-- end content-->
  </div>
</div>
<!-- end wrapper -->
<div style="text-align:center;clear:both"><br>
</font> </p><br>
</div>



用户评论
大牛,别默默的看了,快登录帮我点评一下吧!:)      登录 | 注册


热门标签: 滑动导航菜单 收缩导航菜单 图片淡出淡进 缩略图 滑动选项卡切换 文字收缩展开 文字淡出淡进 图片相册 图片滑动 图片收缩展开 图片墙 文字滑动 百叶窗 滑动手风琴 图片网格 滑动星星打分 图片九宫格 图片高亮 图片对比 图片文字 单排图片 响应式图片 图片列表 图片拖动 图片放大镜 图片叠加 图片翻转旋转 图片延迟加载 图片淡出淡进 图片全屏 图片头像上传 二维码 滑动滑过 图片广告 图片放大缩小 html5图片动画 带缩略图的幻灯片 地图 图片滚动 图片滑动 图片切换 图片收缩展开 旋转木马 图片轮播 自动滚动图片轮播 图标导航菜单 背景切换 手风琴 收缩收起展开 渐隐切换 淡出淡入淡进 图表 图片 头像截图

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

jQuery/js讨论群
群号:642649996
Css3+Html5讨论群
群号:322131262

加群请备注:从官网了解到