js 弹簧效果代码
2010-09-14 13:28:59 来源:WEB开发网核心提示: <style type="text/css">.container{border:1px solid #000000;height:50px; width:500px;}.bounce{width:10px; height:10px; background:
<style type="text/css">
.container{border:1px solid #000000;height:50px; width:500px;}
.bounce{width:10px; height:10px; background:#000000;top:20px;}
</style>
固定范围反弹:
<div id="idContainer" class="container">
范围渐变反弹:
<div id="idBounce" class="bounce"> </div>
</div>
<br />
<div id="idContainer1" class="container">
自定范围反弹:
<div id="idBounce1" class="bounce"> </div>
</div>
<br />
<div id="idContainer2" class="container">
范围:
<div id="idBounce2" class="bounce"> </div>
</div>
<br />
<input id="aa" name="" type="text" value="200" size="8" />
<input id="bb" name="" type="button" value=" 开始 " />
<input id="idFast" name="" type="button" value=" 加速 + " />
<input id="idSlow" name="" type="button" value=" 减速 - " />
<input id="idZoom" name="" type="button" value=" 渐 小 " />
更多精彩
赞助商链接