自己用JS寫了乙個簡單的時間控制項。。。

2021-08-20 06:53:41 字數 1733 閱讀 3738

//繪畫時間選擇器

var timeselect=,

topattr:,

top_leftright:,

center_r:,

bottom:,

button:

}//繪畫時間選擇器開始

timeselect.window=function(obj)

timeselect.obj=$(obj);

var time=new date();

var time_n=time.getutcfullyear();

//年var time_m=time.getmonth()+1

;//月

var time_r=new date(time_n,time_m,

0).getdate();

var str="";

var offset=timeselect.obj.offset();

//內容填充函式 主要實現 月份和日子填充

timeselect.div(time_n,time_m,time_r);

$('.

t_time

').css(timeselect.mainattr);

$('.

t_time

').css("left"

,offset.left);

$('.

t_time

').css("top"

,offset.top+timeselect.obj.height()+10);

$('.

t_time_top

').css(timeselect.topattr);

$('.

t_time_bottom

timeselect.

close

()\"

>關閉");

$('.

t_time_bottom

').css(timeselect.bottom);

$('.

t_time_bottom

button

').css(timeselect.button);

}timeselect.div=function(time_n,time_m,time_r)

$('.

t_time_center

$('.

t_time_center

div').css(timeselect.center_r);

$('.

t_time_center

div').mouseover(function());

$('.

t_time_center

}//上下乙個月

timeselect.top=function(time_n,time_m)else if(time_m<=0)

var time_r=new date(time_n,time_m,

0).getdate();

timeselect.div(time_n,time_m,time_r);

}//選擇日期後內容填充到輸入框

timeselect.content=function(t_this)

timeselect.close=function()

//**

//在input框 繫結乙個onclick事件然後 οnclick="timeselect.

window(this)";

用css3 js寫了乙個鐘錶

先給個成品圖,最終結果是個樣子的 動態的 html 如下 div class dial div div class bigdiv bigdiv1 id secondhand div class secondhand div div div class bigdiv bigdiv2 id minute...

用PHP MySQL寫了乙個簡單的留言板

昨天忘記把資料庫的建立發上來了 現在補上 create database gbook create table gbook id int 255 unsigned not null auto increment primary key name varchar 10 not null tinyint...

自己寫了乙個巨NB的程式

抱歉,確實想吸引眼球 不過我想把inside sql storage engine和.net結合起來的,我應該能排世界前10名吧?如果哪位老大發現另有高人,請及時告訴我,謝謝!粘圖先,因為這是我在ip creation的過程中隨手搞的東西,花了兩天 還沒有完,欠缺幾點 1 rid的獲取。2 gdi ...