弹出框
摘要:<title></title> <style> *{ margin: 0px; padding: 0px; } .t1{ width: 305px; height: 195px; background-color: hotpink; position: fixed; z-index: 2; } .t
阅读全文
posted @
2017-09-29 19:34
段了的弦
阅读(122)
推荐(0) 编辑
三级联动,之前那个代码太难看了 在更新一下
摘要:<body> 年<select id="a"></select> 月<select id="b"> <option>1</option> <option>2</option> <option>3</option> <option>4</option> <option>5</option> <opti
阅读全文
posted @
2017-09-29 19:32
段了的弦
阅读(102)
推荐(0) 编辑
同意倒计时
摘要:<body> <form> <input type="submit" id="a" value="同意(10)" disabled="disabled" /> </form> </body></html><script> n=10; a=document.getElementById("a"); f
阅读全文
posted @
2017-09-28 15:52
段了的弦
阅读(155)
推荐(0) 编辑
万年历
摘要:function a(){ c=new Date(); n=c.getFullYear(); y=c.getMonth()+1; r=c.getDate(); x=c.getDay(); h=c.getHours(); m=c.getMinutes(); x=n+"年"+y+"月"+r+"日"+",
阅读全文
posted @
2017-09-27 21:08
段了的弦
阅读(144)
推荐(0) 编辑
三级联动,日期选择
摘要:<body> 年<input type="text" id="a"> 月<select id="b"> <option>1</option> <option>2</option> <option>3</option> <option>4</option> <option>5</option> <op
阅读全文
posted @
2017-09-27 21:06
段了的弦
阅读(244)
推荐(0) 编辑
全选框框
摘要:<body> <form> <input type="checkbox" id="a"> <input type="checkbox" id="b"> <input type="checkbox" id="c"> <input type="checkbox" id="d"> <input type=
阅读全文
posted @
2017-09-27 14:42
段了的弦
阅读(99)
推荐(0) 编辑
内容互换&同意下一步
摘要:a=document.getElementById("a"); b=document.getElementById("b"); c=document.getElementById("c"); d=document.getElementById("d"); b.onclick=function(){
阅读全文
posted @
2017-09-26 22:31
段了的弦
阅读(107)
推荐(0) 编辑
冒泡排序和去重
摘要:a= [1, 2, 2, 2, 3, 3, 4, 4, 5, 6]; b= []; for(x=0;x<a.length;x++){ s=0; for(y=0;y<b.length;y++){ if(a[x]==b[y]){ s=1; } } if(s==0){ b.push(a[x]); } }
阅读全文
posted @
2017-09-25 19:37
段了的弦
阅读(339)
推荐(0) 编辑