Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update readme.

  • Loading branch information...
commit c079a7ac6a90699ee0f3f103b153501b58799f05 1 parent e68b37f
@chembohuang authored
Showing with 14 additions and 2 deletions.
  1. +14 −2 README
View
16 README
@@ -1,4 +1,16 @@
## Installation
-<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
-<script type="text/javascript" src="js/jquery.cb.waterfall.plugin.min.js"></script>
+ <script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
+ <script type="text/javascript" src="js/jquery.cb.waterfall.plugin.min.js"></script>
+ <script type="text/javascript">
+ $(function(){
+ $("#photo_wall").waterflow({
+ ajaxUrl :"ajaxData.txt", ////ajax url. e.g. /server/loadMorePics.php. return json data as {["src":"2.jpg","desc":"description","link":"#"],["src":"4.jpg","desc":"description","link":"#"]}
+ ajaxParams :{"count":20,"userId":30}, //ajax params. e.g. {"name":"chembo","loadPic":"10"}
+ ajaxCount :5, //the total times of the ajax will run when scroll hits the bottom. default to 4.
+ block_class :"ablock", //one block's width. default to ablock.
+ margin :3, //the margin between two blocks. unit is the px. default to 3.
+ block_width :230, //one block's width.
+ animate_duration:500 //jquery animate duration. unit is the million-second. default to 1000.
+ });
+ });
Please sign in to comment.
Something went wrong with that request. Please try again.