Plugin jQuery: Analog JQuery clock

Analog JQuery clock
http://www.jqueryrain.com/?http://d-zig.com/demo/46e3ec48-0f71-4615-8798-61cd83266659/
http://d-zig.com/Desc.aspx?item=74
25/06/2011

Nội dung

JQuery Analog clock

In this tutorial we will use JQuery and a plugin named jQueryRotate.The main idea behind making this watch is to rotate the three images according to the actual time tt/mm/ss. We split that time up in hours, minutes and seconds. Then use some math to convert each of the three values into an angle between 0 and 360. one for each of our three pointers. Then we use a timer function in JQuery to do that every second. That will make it look like the pointers is ticking like a real watch.

Tags: Rotate Image

Nguồn: www.jqueryrain.com/2011/06/analog-jquery-clock/


Chưa có phản hồi
Bạn vui lòng Đăng nhập để bình luận