摘要:
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>js新增选择器</title></head><body><h3>标题2</h3> <h2>标题1</h2> <ul id="u1"> <li >列表项1</li> 阅读全文
摘要:
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>键盘控制小球的移动</title> <style type="text/css">div{/* background: orange;*/ width: 100px 阅读全文
摘要:
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>随机键盘</title><style type="text/css"> input{ width: 30px; height: 30px; border-radiu 阅读全文
摘要:
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>js练习-变化的颜色</title> <style type="text/css">/*#div1{ background: orange; width: 200p 阅读全文
摘要:
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>js练习-变化的颜色</title> <style type="text/css">#div1{margin: 15px auto;margin-top: 200p 阅读全文
摘要:
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title></title> <style type="text/css">.d1{ background: green; color: red; padding: 15px; 阅读全文
摘要:
<body> <script>function hwd(){ var bb=document.getElementById('bt');// alert(bb.innerHTML);var fs=document.getElementsByName('fs');// alert(fs.length) 阅读全文
摘要:
<script> function x1(){ var gj={}; gj.name="侯伟东"; gj.hp=500; gj.jj=90; gj.sd=60; gj.skill=new Array("招式1","招式2","招式3","招式4","招式5","招式6","招式7","招式8","招 阅读全文
摘要:
<script>var colors=['red','blue','green','orange','yellow']; function bcolor(){ var c=Math.floor(Math.random()*5); document.bgColor=colors[c]; }bcolor 阅读全文
摘要:
<script> var year=2016; function runnian(year){ if (year%400==0) {return true;}else if (year%4==0&&year%100!=00) {return true;}else{ return false; } } 阅读全文