-
Notifications
You must be signed in to change notification settings - Fork 0
/
pic3.html
149 lines (136 loc) · 16.4 KB
/
pic3.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<!doctype html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>jQuery Wookmark Plug-in Example</title>
<meta name="description" content="An very basic example of how to use the Wookmark jQuery plug-in.">
<meta name="author" content="Christoph Ono">
<meta name="viewport" content="width=device-width,initial-scale=1">
<!-- CSS Reset -->
<link rel="stylesheet" href="css/reset.css">
<!-- Styling for your grid blocks -->
<link rel="stylesheet" href="css/styles.css">
<style>
body {
font-family:"Arial Black", Gadget, sans-serif;
font-size:15px;
}
#navcontainer {
width:500px
}
#navlist {
margin: 0;
padding: 0 ;
}
#navlist ul, #navlist li {
margin: 0;
padding: 0;
display: inline;
list-style-type: none;
}
#navlist a:link, #navlist a:visited {
float: left;
margin: 0 10px 4px 10px;
}
#navlist a:link #current, #navlist a:visited#current, #navlist a:hover {
border-bottom: 1px solid #ff8fab; /* 过文字底部色条 */
padding-bottom: 5px;
}
</style>
</head>
<body>
<div id="navcontainer">
<ul id="navlist">
<li><a href="pic.html" target="_self" id="current"><img src="images/1.png" onMouseOver="this.src='images/1-2.png'" onMouseOut="this.src='images/1.png'"/></a></li>
<li><a href="pic2.html" target="_self"><img src="images/2.png" onMouseOver="this.src='images/2-2.png'" onMouseOut="this.src='images/2.png'"/></a></li>
<li><a href="pic3.html"><img src="images/3-2.png"/></a></li>
<li><a href="pic4.html"><img src="images/4.png" onMouseOver="this.src='images/4-2.png'" onMouseOut="this.src='images/4.png'"/></a></li>
<li><a href="pic5.html"><img src="images/5.png" onMouseOver="this.src='images/5-2.png'" onMouseOut="this.src='images/5.png'"/></a></li>
<li><a href="pic6.html"><img src="images/6.png" onMouseOver="this.src='images/6-2.png'" onMouseOut="this.src='images/6.png'"/></a></li>
</ul>
</div>
<div id="container">
<div id="main">
<ul id="tiles">
<!-- 初始显示图片数 -->
<li><a href="http://lazure.sinaapp.com/images/7f9e9b4dgw1dtr0ab265mj(440x552).jpg" target="_blank"><img src="images/7f9e9b4dgw1dtr0ab265mjc_2.jpg" width="125" height="125"></a><p><a href="http://lazure.sinaapp.com/images/7f9e9b4dgw1dtr0ab265mj(440x552).jpg" target="_blank">大图</a> | <a href="http://lazure.sinaapp.com/images/7f9e9b4dgw1dtr0ab265mj(440x552).jpg" target="_blank" title="440x552">右键另存为</a></p></li>
<li><a href="http://lazure.sinaapp.com/images/1131955539c74073e9l(510x719).jpg" target="_blank"><img src="images/1131955539c74073e9l(510x719)_2.jpg" width="125" height="125"><p><a href="http://lazure.sinaapp.com/images/1131955539c74073e9l(510x719).jpg" target="_blank">大图</a> | <a href="http://lazure.sinaapp.com/images/1131955539c74073e9l(510x719).jpg" target="_blank" title="510x719">右键另存为</a></p></li>
<li><a href="http://lazure.sinaapp.com/images/1135251953f18774f7o()640x426.jpg" target="_blank"><img src="images/1135251953f18774f7o()640x426_2.jpg" width="125" height="125"><p><a href="http://lazure.sinaapp.com/images/1135251953f18774f7o()640x426.jpg" target="_blank">大图</a> | <a href="http://lazure.sinaapp.com/images/1135251953f18774f7o()640x426.jpg" target="_blank" title="640x426">右键另存为</a></p></li>
<li><a href="http://lazure.sinaapp.com/images/1138981586db97c521l(500x666).jpg" target="_blank"><img src="images/1138981586db97c521l(500x666)_2.jpg" width="125" height="125"><p><a href="http://lazure.sinaapp.com/images/1138981586db97c521l(500x666).jpg" target="_blank">大图</a> | <a href="http://lazure.sinaapp.com/images/1138981586db97c521l(500x666).jpg" target="_blank" title="500x666">右键另存为</a></p></li>
<li><a href="http://lazure.sinaapp.com/images/1139065578a566943fo(1000x662).jpg" target="_blank"><img src="images/1139065578a566943fo(1000x662)_2.jpg" width="125" height="125"><p><a href="http://lazure.sinaapp.com/images/1139065578a566943fo(1000x662).jpg" target="_blank">大图</a> | <a href="http://lazure.sinaapp.com/images/1139065578a566943fo(1000x662).jpg" target="_blank" title="1000x662">右键另存为</a></p></li>
<li><a href="http://lazure.sinaapp.com/images/1139739215e080008bo(619x538).jpg" target="_blank"><img src="images/1139739215e080008bo(619x538)_2.jpg" width="125" height="125"><p><a href="http://lazure.sinaapp.com/images/1139739215e080008bo(619x538).jpg" target="_blank">大图</a> | <a href="http://lazure.sinaapp.com/images/1139739215e080008bo(619x538).jpg" target="_blank" title="619x538">右键另存为</a></p></li>
<li><a href="http://lazure.sinaapp.com/images/1140016167aff26a4fo(1336x1975).jpg" target="_blank"><img src="images/1140016167aff26a4fo(1336x1975)_2.jpg" width="125" height="125"><p><a href="http://lazure.sinaapp.com/images/1140016167aff26a4fo(1336x1975).jpg" target="_blank">大图</a> | <a href="http://lazure.sinaapp.com/images/1140016167aff26a4fo(1336x1975).jpg" target="_blank" title="1336x1975">右键另存为</a></p></li>
<li><a href="http://lazure.sinaapp.com/images/1140341451bbbb4763o(1000x663).jpg" target="_blank"><img src="images/1140341451bbbb4763o(1000x663)_2.jpg" width="125" height="125"><p><a href="http://lazure.sinaapp.com/images/1140341451bbbb4763o(1000x663).jpg" target="_blank">大图</a> | <a href="http://lazure.sinaapp.com/images/1140341451bbbb4763o(1000x663).jpg" target="_blank" title="1000x663">右键另存为</a></p></li>
<li><a href="http://lazure.sinaapp.com/images/11396010016bdd6590o(680x680).jpg" target="_blank"><img src="images/11396010016bdd6590o(680x680)_2.jpg" width="125" height="125"><p><a href="http://lazure.sinaapp.com/images/11396010016bdd6590o(680x680).jpg" target="_blank">大图</a> | <a href="http://lazure.sinaapp.com/images/11396010016bdd6590o(680x680).jpg" target="_blank" title="680x680">右键另存为</a></p></li>
<li><a href="http://lazure.sinaapp.com/images/11397498671d6647c9o(650x588).jpg" target="_blank"><img src="images/11397498671d6647c9o(650x588)_2.jpg" width="125" height="125"><p><a href="http://lazure.sinaapp.com/images/11397498671d6647c9o(650x588).jpg" target="_blank">大图</a> | <a href="http://lazure.sinaapp.com/images/11397498671d6647c9o(650x588).jpg" target="_blank" title="650x588">右键另存为</a></p></li>
<li><a href="http://lazure.sinaapp.com/images/11397536798a12f5cdl(500x364).jpg" target="_blank"><img src="images/11397536798a12f5cdl(500x364)_2.jpg" width="125" height="125"><p><a href="http://lazure.sinaapp.com/images/11397536798a12f5cdl(500x364).jpg" target="_blank">大图</a> | <a href="http://lazure.sinaapp.com/images/11397536798a12f5cdl(500x364).jpg" target="_blank" title="500x364">右键另存为</a></p></li>
<li><a href="http://lazure.sinaapp.com/images/101200879989f615aa(510x323).jpg" target="_blank"><img src="images/101200879989f615aa(510x323)_2.jpg" width="125" height="125"><p><a href="http://lazure.sinaapp.com/images/101200879989f615aa(510x323).jpg" target="_blank">大图</a> | <a href="http://lazure.sinaapp.com/images/101200879989f615aa(510x323).jpg" target="_blank" title="510x323">右键另存为</a></p></li>
<li><a href="http://lazure.sinaapp.com/images/112202680312ab2c66l(510x509).jpg" target="_blank"><img src="images/112202680312ab2c66l(510x509)_2.jpg" width="125" height="125"><p><a href="http://lazure.sinaapp.com/images/112202680312ab2c66l(510x509).jpg" target="_blank">大图</a> | <a href="http://lazure.sinaapp.com/images/112202680312ab2c66l(510x509).jpg" target="_blank" title="510x509">右键另存为</a></p></li>
<li><a href="http://lazure.sinaapp.com/images/113549880023fc8108l(500x333).jpg" target="_blank"><img src="images/113549880023fc8108l(500x333)_2.jpg" width="125" height="125"><p><a href="http://lazure.sinaapp.com/images/113549880023fc8108l(500x333).jpg" target="_blank">大图</a> | <a href="http://lazure.sinaapp.com/images/113549880023fc8108l(500x333).jpg" target="_blank" title="500x333">右键另存为</a></p></li>
<li><a href="http://lazure.sinaapp.com/images/113690825669c21cc4l(500x334).jpg" target="_blank"><img src="images/113690825669c21cc4l(500x334)_2.jpg" width="125" height="125"><p><a href="http://lazure.sinaapp.com/images/113690825669c21cc4l(500x334).jpg" target="_blank">大图</a> | <a href="http://lazure.sinaapp.com/images/113690825669c21cc4l(500x334).jpg" target="_blank" title="500x334">右键另存为</a></p></li>
<li><a href="http://lazure.sinaapp.com/images/113906860061f39f6el(500x736).jpg" target="_blank"><img src="images/113906860061f39f6el(500x736)_2.jpg" width="125" height="125"><p><a href="http://lazure.sinaapp.com/images/113906860061f39f6el(500x736).jpg" target="_blank">大图</a> | <a href="http://lazure.sinaapp.com/images/113906860061f39f6el(500x736).jpg" target="_blank" title="500x736">右键另存为</a></p></li>
<li><a href="http://lazure.sinaapp.com/images/1135252632594d44a0o(630x627).jpg" target="_blank"><img src="images/1135252632594d44a0o(630x627)_2.jpg" width="125" height="125"><p><a href="http://lazure.sinaapp.com/images/1135252632594d44a0o(630x627).jpg" target="_blank">大图</a> | <a href="http://lazure.sinaapp.com/images/1135252632594d44a0o(630x627).jpg" target="_blank" title="630x627">右键另存为</a></p></li>
<li><a href="http://lazure.sinaapp.com/images/1140163299181fb987l(500x332).jpg" target="_blank"><img src="images/1140163299181fb987l(500x332)_2.jpg" width="125" height="125"><p><a href="http://lazure.sinaapp.com/images/1140163299181fb987l(500x332).jpg" target="_blank">大图</a> | <a href="http://lazure.sinaapp.com/images/1140163299181fb987l(500x332).jpg" target="_blank" title="500x332">右键另存为</a></p></li>
<li><a href="http://lazure.sinaapp.com/images/11369083467201e231l(500x333).jpg" target="_blank"><img src="images/11369083467201e231l(500x333)_2.jpg" width="125" height="125"><p><a href="http://lazure.sinaapp.com/images/11369083467201e231l(500x333).jpg" target="_blank">大图</a> | <a href="http://lazure.sinaapp.com/images/11369083467201e231l(500x333).jpg" target="_blank" title="500x333">右键另存为</a></p></li>
<li><a href="http://lazure.sinaapp.com/images/11404599006830b7c2l(500x333).jpg" target="_blank"><img src="images/11404599006830b7c2l(500x333)_2.jpg" width="125" height="125"><p><a href="http://lazure.sinaapp.com/images/11404599006830b7c2l(500x333).jpg" target="_blank">大图</a> | <a href="http://lazure.sinaapp.com/images/11404599006830b7c2l(500x333).jpg" target="_blank" title="500x333">右键另存为</a></p></li>
<li><a href="http://lazure.sinaapp.com/images/12673267956162(420x412).jpg" target="_blank"><img src="images/12673267956162(420x412)_2.jpg" width="125" height="125"><p><a href="http://lazure.sinaapp.com/images/12673267956162(420x412).jpg" target="_blank">大图</a> | <a href="http://lazure.sinaapp.com/images/12673267956162(420x412).jpg" target="_blank" title="420x412">右键另存为</a></p></li>
<li><a href="http://lazure.sinaapp.com/images/12673650878048(624x643).jpg" target="_blank"><img src="images/12673650878048(624x643)_2.jpg" width="125" height="125"><p><a href="http://lazure.sinaapp.com/images/12673650878048(624x643).jpg" target="_blank">大图</a> | <a href="http://lazure.sinaapp.com/images/12673650878048(624x643).jpg" target="_blank" title="624x643">右键另存为</a></p></li>
<li><a href="http://lazure.sinaapp.com/images/12741899723662(500x500).jpg" target="_blank"><img src="images/12741899723662(500x500)_2.jpg" width="125" height="125"><p><a href="http://lazure.sinaapp.com/images/12741899723662(500x500).jpg" target="_blank">大图</a> | <a href="http://lazure.sinaapp.com/images/12741899723662(500x500).jpg" target="_blank" title="500x500">右键另存为</a></p></li>
<li><a href="http://lazure.sinaapp.com/images/12748798241488(249x348).jpg" target="_blank"><img src="images/12748798241488(249x348)_2.jpg" width="125" height="125"><p><a href="http://lazure.sinaapp.com/images/12748798241488(249x348).jpg" target="_blank">大图</a> | <a href="http://lazure.sinaapp.com/images/12748798241488(249x348).jpg" target="_blank" title="249x348">右键另存为</a></p></li>
<li><a href="http://lazure.sinaapp.com/images/12761565232351(915x597).jpg" target="_blank"><img src="images/12761565232351(915x597)_2.jpg" width="125" height="125"><p><a href="http://lazure.sinaapp.com/images/12761565232351(915x597).jpg" target="_blank">大图</a> | <a href="http://lazure.sinaapp.com/images/12761565232351(915x597).jpg" target="_blank" title="915x597">右键另存为</a></p></li>
<li><a href="http://lazure.sinaapp.com/images/12763419073214(500x319).jpg" target="_blank"><img src="images/12763419073214(500x319)_2.jpg" width="125" height="125"><p><a href="http://lazure.sinaapp.com/images/12763419073214(500x319).jpg" target="_blank">大图</a> | <a href="http://lazure.sinaapp.com/images/12763419073214(500x319).jpg" target="_blank" title="500x319">右键另存为</a></p></li>
<li><a href="http://lazure.sinaapp.com/images/12798654409936(500x500).jpg" target="_blank"><img src="images/12798654409936(500x500)_2.jpg" width="125" height="125"><p><a href="http://lazure.sinaapp.com/images/12798654409936(500x500).jpg" target="_blank">大图</a> | <a href="http://lazure.sinaapp.com/images/12798654409936(500x500).jpg" target="_blank" title="500x500">右键另存为</a></p></li>
<li><a href="http://lazure.sinaapp.com/images/12956131458387(637x616).jpg" target="_blank"><img src="images/12956131458387(637x616)_2.jpg" width="125" height="125"><p><a href="http://lazure.sinaapp.com/images/12956131458387(637x616).jpg" target="_blank">大图</a> | <a href="http://lazure.sinaapp.com/images/12956131458387(637x616).jpg" target="_blank" title="637x616">右键另存为</a></p></li>
<li><a href="http://lazure.sinaapp.com/images/113739390154166e41o(720x483).jpg" target="_blank"><img src="images/113739390154166e41o(720x483)_2.jpg" width="125" height="125"><p><a href="http://lazure.sinaapp.com/images/113739390154166e41o(720x483).jpg" target="_blank">大图</a> | <a href="http://lazure.sinaapp.com/images/113739390154166e41o(720x483).jpg" target="_blank" title="720x483">右键另存为</a></p></li>
<!-- End First Pic Show -->
</ul>
</div>
<footer>
</footer>
</div>
<!-- include jQuery -->
<script src="js/jquery-1.6.1.min.js"></script>
<!-- Include the plug-in -->
<script src="js/jquery.wookmark.js"></script>
<!-- Once the page is loaded, initalize the plug-in. -->
<script type="text/javascript">
var handler = null;
// Prepare layout布局 options.
var options = {
autoResize: true, // This will auto-update the layout when the browser window is resized.
container: $('#main'), // Optional, used for some extra CSS styling
offset: 5, // 图片间左右间隔
itemWidth: 125 //每张图片宽度
};
/**
* When scrolled all the way to the bottom, add more tiles.
*/
function onScroll(event) {
// Check if we're within 100 pixels of the bottom edge of the broser window.
var closeToBottom = ($(window).scrollTop() + $(window).height() > $(document).height() - 100);
if(closeToBottom) {
// Get the first then items from the grid, clone them, and add them to the bottom of the grid.
var items = $('#tiles li');
var firstTen = items.slice(0, 10);
$('#tiles').append(firstTen.clone());
// Clear our previous layout handler.
if(handler) handler.wookmarkClear();
// Create a new layout handler.
handler = $('#tiles li');
handler.wookmark(options);
}
};
$(document).ready(new function() {
// Capture scroll event.
$(document).bind('scroll', onScroll);
// Call the layout function.
handler = $('#tiles li');
handler.wookmark(options);
});
</script>
</body>
</html>