JS抖音羅盤時鐘

2021-10-01 08:30:43 字數 2274 閱讀 7695

html**:

css**:

*

html,body

#clock

.label

js**:

var monthtext=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"];

var daytext=["零一號","零二號","零三號","零四號","零五號","零六號","零七号","零八號","零九號","十號","十一號","十二號","十三號","十四號","十五號","十六號","十七號","十八號","十九號","二十號","二十一號","二十二號","二十三號","二十四號","二十五號","二十六號","二十七號","二十八號","二十九號","三十號","三十一號"];

var weektext=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"];

var hourtext=["零點","零一點","零兩點","零三點","零四點","零五點","零六點","零七點","零八點","零九點","零十點","十一點","十二點","十三點","十四點","十五點","十六點","十七點","十八點","十九點","二十點","二十一點","二十二點","二十三點"];

var minutetext=["零零分","零一分","零二分","零三分","零四分","零五分","零六分","零七分","零八分","零九分","零十分","十一分","十二分","十三分","十四分","十五分","十六分","十七分","十八分","十九分","二十分","二十一分","二十二分","二十三分","二十四分","二十五分","二十六分","二十七分","二十八分","二十九分","三十分","三十一分","三十二分","三十三分","三十四分","三十五分","三十六分","三十七分","三十八分","三十九分","四十分","四十一分","四十二分","四十三分","四十四分","四十五分","四十六分","四十七分","四十八分","四十九分","五十分","五十一分","五十二分","五十三分","五十四分","五十五分","五十六分","五十七分","五十八分","五十九分"];

var secondstext=["零零秒","零一秒","零二秒","零三秒","零四秒","零五秒","零六秒","零七秒","零八秒","零九秒","零十秒","十一秒","十二秒","十三秒","十四秒","十五秒","十六秒","十七秒","十八秒","十九秒","二十秒","二十一秒","二十二秒","二十三秒","二十四秒","二十五秒","二十六秒","二十七秒","二十八秒","二十九秒","三十秒","三十一秒","三十二秒","三十三秒","三十四秒","三十五秒","三十六秒","三十七秒","三十八秒","三十九秒","四十秒","四十一秒","四十二秒","四十三秒","四十四秒","四十五秒","四十六秒","四十七秒","四十八秒","四十九秒","五十秒","五十一秒","五十二秒","五十三秒","五十四秒","五十五秒","五十六秒","五十七秒","五十八秒","五十九秒"];

var clock;var monthlist=;

var daylist=;

var weeklist=;

var hourlist=;

var minutelist=;

var secondslist=;

var iscircle=false;

var textset=[[monthtext,monthlist],

[daytext,daylist],

[weektext,weeklist],

[hourtext,hourlist],

[minutetext,minutelist],

[secondstext,secondslist]];

window.onload=function()

,100);

changeposition();

settimeout(function()

,2000);

}function init() }}

function createlabel(text)

function runtime()

if(iscircle)

} }}function initstyle()

}function changeposition()

,50);

} }}function changecircle()

抖音同款羅盤時鐘

時光在不經意中流逝,翻開舊日的筆記,字裡行間充滿著情深意境的交錯。彷彿回到了那曾經經歷過的風風雨雨,坎坎坷坷中去,舊時的回憶依舊,只是少了幾分憂鬱,幾分繁華,多了幾分滄桑。utf 8 x ua compatible content ie edge 動態時鐘 title viewport conten...

抖音圓形時鐘

let yuebox document.getelementbyid yuebox let riqibox document.getelementbyid riqibox let hourbox document.getelementbyid hourbox let minutebox docume...

仿抖音效果的數字時鐘羅盤

最近抖音上的時鐘羅盤桌布可謂是非常的火爆,今天就用自定義控制項來實現這個功能。效果圖 軟體詳情 時鐘羅盤是動態的桌布,隨著時間而跳轉的時鐘,中間去除了月份和星期,並加入了炫彩文字,使總體看起來不這麼單調。實現 寫乙個類datatimeview 繼承 view 並實現其中乙個引數和兩個引數的構造 用於...