日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

html制作状态栏数字时钟,html5 canvas制作15种数字时钟样式代码

發布時間:2024/7/23 编程问答 33 豆豆
生活随笔 收集整理的這篇文章主要介紹了 html制作状态栏数字时钟,html5 canvas制作15种数字时钟样式代码 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

特效描述:html5 canvas制作 數字時鐘樣式。html5 canvas數字時鐘代碼

代碼結構

1. 引入CSS

2. 引入JS

3. HTML代碼

clockd1_={

"indicate": true,

"indicate_color": "#222",

"dial1_color": "#666600",

"dial2_color": "#81812e",

"dial3_color": "#9d9d5c",

"time_add": 1,

"time_24h": true,

"date_add":3,

"date_add_color": "#999",

};

clockd2_={

"indicate": true,

"dial1_color": "#666600",

"time_24h": true,

"timeoffset":0,

"date_add":3,

"date_add_color": "#999",

};

clockd3_={

"indicate": true,

"indicate_color": "#222",

"dial1_color": "#666600",

"dial2_color": "#81812e",

"dial3_color": "#9d9d5c",

"time_add": 1,

"time_24h": true,

"date_add":3,

"date_add_color": "#999",

};

clockd4_={

"indicate": true,

"indicate_color": "#222",

"dial1_color": "#666600",

"date_add":3,

"date_add_color": "#999",

};

clockd5_={

"indicate": true,

"indicate_color": "#222",

"dial1_color": "#666600",

"dial2_color": "#81812e",

"dial3_color": "#9d9d5c",

"time_add": 1,

"time_24h": true,

"date_add":3,

"date_add_color": "#999",

};

clockd6_={

"indicate": true,

"indicate_color": "#222",

"dial1_color": "#666600",

"dial2_color": "#81812e",

"dial3_color": "#9d9d5c",

"time_add": 1,

"time_add_color": "#ccc",

"time_24h": true,

"timeoffset":0,

"date_add":3,

"date_add_color": "#999",

};

clockd7_={

"indicate": true,

"indicate_color": "#222",

"dial1_color": "#666600",

"dial2_color": "#81812e",

"dial3_color": "#9d9d5c",

"time_add": 1,

"time_24h": true,

"date_add":3,

"date_add_color": "#999",

};

clockd8_={

"indicate": true,

"indicate_color": "#222",

"dial1_color": "#666600",

"dial2_color": "#81812e",

"dial3_color": "#9d9d5c",

"time_add": 1,

"time_24h": true,

"date_add":5,

"date_add_color": "#999",

};

clockd9_={

"indicate": true,

"indicate_color": "#222",

"dial1_color": "#666600",

"dial2_color": "#81812e",

"dial3_color": "#9d9d5c",

"time_add": 1,

"time_24h": true,

"date_add":3,

"date_add_color": "#999",

};

clockd10_={

"indicate": true,

"indicate_color": "#222",

"dial1_color": "#666600",

"dial2_color": "#81812e",

"dial3_color": "#9d9d5c",

"time_add": 1,

"time_24h": true,

"track": "#4b4b00",

};

clockd11_={

"dial1_color": "#666600",

"time_24h": true,

"date_add":3,

"date_add_color": "#999",

};

clockd12_={

"indicate": true,

"indicate_color": "#222",

"dial1_color": "#666600",

"dial2_color": "#81812e",

"dial3_color": "#9d9d5c",

"time_add": 1,

"time_24h": true,

"date_add":3,

"date_add_color": "#999",

};

clockd13_={

"indicate": true,

"indicate_color": "#222",

"dial1_color": "#666600",

"dial2_color": "#81812e",

"dial3_color": "#9d9d5c",

"time_add": 1,

"time_24h": true,

"date_add":3,

"date_add_color": "#999",

};

clockd14_={

"indicate": true,

"indicate_color": "#222",

"dial1_color": "#666600",

"time_add": 1,

"time_24h": true,

"date_add":3,

"date_add_color": "#999",

};

clockd15_={

"indicate": true,

"indicate_color": "#222",

"dial1_color": "#666600",

"dial2_color": "#81812e",

"dial3_color": "#9d9d5c",

"time_add": 1,

"time_24h": true,

"date_add":3,

"date_add_color": "#999",

};

var c = document.getElementById('clock1_');

cns1_ = c.getContext('2d');

var c = document.getElementById('clock2_');

cns2_ = c.getContext('2d');

var c = document.getElementById('clock3_');

cns3_ = c.getContext('2d');

var c = document.getElementById('clock4_');

cns4_ = c.getContext('2d');

var c = document.getElementById('clock5_');

cns5_ = c.getContext('2d');

var c = document.getElementById('clock6_');

cns6_ = c.getContext('2d');

var c = document.getElementById('clock7_');

cns7_ = c.getContext('2d');

var c = document.getElementById('clock8_');

cns8_ = c.getContext('2d');

var c = document.getElementById('clock9_');

cns9_ = c.getContext('2d');

var c = document.getElementById('clock10_');

cns10_ = c.getContext('2d');

var c = document.getElementById('clock11_');

cns11_ = c.getContext('2d');

var c = document.getElementById('clock12_');

cns12_ = c.getContext('2d');

var c = document.getElementById('clock13_');

cns13_ = c.getContext('2d');

var c = document.getElementById('clock14_');

cns14_ = c.getContext('2d');

var c = document.getElementById('clock15_');

cns15_ = c.getContext('2d');

clock_conti(200,cns1_,clockd1_);

clock_digital(200,cns2_,clockd2_);

clock_norm(200,cns3_,clockd3_);

clock_binary(200,cns4_,clockd4_);

clock_follow(200,cns5_,clockd5_);

clock_circles(200,cns6_,clockd6_);

clock_dots(200,cns7_,clockd7_);

clock_roulette(200,cns8_,clockd8_);

clock_num(200,cns9_,clockd9_);

clock_planets(200,cns10_,clockd10_);

clock_digitalran(200,cns11_,clockd11_);

clock_bars(200,cns12_,clockd12_);

clock_grow(200,cns13_,clockd13_);

clock_random(200,cns14_,clockd14_);

clock_reverse(200,cns15_,clockd15_);

總結

以上是生活随笔為你收集整理的html制作状态栏数字时钟,html5 canvas制作15种数字时钟样式代码的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。