Js 跟隨滾動效果插件
支持定義多個跟隨ID
支持定義滾動到底部的最小高度
頁面大小resize後
=======
Js 跟隨滾動效果插件
=======
使用方法
代碼如下
<script type="text/javascript" src="follow
window
var followIds = [document
new Follow({
obj:followIds
bottom:
});
}
完整實例
代碼如下
<!DOCTYPE html>
<html lang="zh
<head profile="
<meta charset="UTF
<title>Js Follow</title>
<style>
html
div{padding:
</style>
</head>
<body>
<div class="wrap">
<div class="header">Header</div>
<div class="content clear">
<div class="left">
<div class="text">
使用方法
<hr/>
<pre style="word
<script type="text/javascript" src="follow
window
var followIds = [document
new Follow({
obj:followIds
bottom:
});
}
</pre>
</div>
<br/><br/><br/><br/><br/><br/><br/><br/><br/>
</div>
<div class="right">
<div class="aside" id="follow">
跟隨滾動<br/>模塊
</div>
<div class="aside
跟隨滾動<br/>模塊
</div>
</div>
</div>
<div class="footer">Footer</div>
</div>
<script type="text/javascript" src="follow
<script>
window
var followIds = [document
new Follow({
obj:followIds
bottom:
});
}
</script>
</body>
</html>
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/20570.html