同时显示世界各地时间的会走动的时钟

XML/HTML Code
- <div id="clock_hou" class="clock_container">
- <div class="lbl">Houston, TX, USA</div>
- <div class="clockHolder">
- <div class="rotatingWrapper"><img class="hour" src="images/clock_hour.png" /></div>
- <div class="rotatingWrapper"><img class="min" src="images/clock_min.png" /></div>
- <div class="rotatingWrapper"><img class="sec" src="images/clock_sec.png" /></div>
- <img class="clock" src="images/clock_face.png" />
- </div>
- <div class="digital">
- <span class="hr"></span><span class="minute"></span> <span class="period"></span>
- </div>
- </div>
- <div id="clock_dc" class="clock_container">
- <div class="lbl">Washington, DC, USA</div>
- <div class="clockHolder">
- <div class="rotatingWrapper"><img class="hour" src="images/clock_hour.png" /></div>
- <div class="rotatingWrapper"><img class="min" src="images/clock_min.png" /></div>
- <div class="rotatingWrapper"><img class="sec" src="images/clock_sec.png" /></div>
- <img class="clock" src="images/clock_face.png" />
- </div>
- <div class="digital">
- <span class="hr"></span><span class="minute"></span> <span class="period"></span>
- </div>
- </div>
- <div id="clock_beijing" class="clock_container">
- <div class="lbl">Beijing</div>
- <div class="clockHolder">
- <div class="rotatingWrapper"><img class="hour" src="images/clock_hour.png" /></div>
- <div class="rotatingWrapper"><img class="min" src="images/clock_min.png" /></div>
- <div class="rotatingWrapper"><img class="sec" src="images/clock_sec.png" /></div>
- <img class="clock" src="images/clock_face.png" />
- </div>
- <div class="digital">
- <span class="hr"></span><span class="minute"></span> <span class="period"></span>
- </div>
- </div>
JavaScript Code
- <script>
- $(document).ready(function(){
- $('#clock_hou').jClocksGMT({offset: '-5', hour24: true});
- $('#clock_dc').jClocksGMT({offset: '-4', digital: false});
- $('#clock_beijing').jClocksGMT({offset: '+8'});
- });
- </script>
原文地址:http://www.freejs.net/article_jquerywenzi_184.html
最近更新
- 响应式全屏手风琴菜单,同时支持垂直方...
- 分组select选择器,支持多选和单...
- jQuery时间日期选择器代码日历插...
- Select 选择器 可以清空的单选...
- jQuery json 无刷新翻页 ...
- 纯css3带倒影效果的图片翻转特效
我爱薅羊毛
点击最多
广告赞助
相关文章
- jquery点击显示或隐藏内容,可以一次展开多个和...
- tooltips/弹出层/消息提示效果,支持点击与...
- jQuery幸运大转盘抽奖活动代码
- jquery来实现的添加商品和减少商品数量,用于购...
- jQuery手机端弹出层提示对话框
- php js实现拖动滑块完成拼图验证码