摘要: 代码: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>两级联动</title> <script> //准备数据 var provinces = [ ["深圳市", "东莞市", "惠州市", "广州市"], ["长沙市", " 阅读全文
posted @ 2018-10-18 17:17 就俗人一个 阅读(500) 评论(0) 推荐(0)
摘要: 代码: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>商品的左右选择</title> <!-- 步骤分析 1. 确定事件: 点击事件 :onclick事件 2. 事件要触发函数 selectOne 3. selectOne要做 阅读全文
posted @ 2018-10-18 17:04 就俗人一个 阅读(586) 评论(0) 推荐(0)
摘要: 代码: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>全选与全不选</title> <script> function checkAll() { //获得当前第一个checkbox的状态 var check_1 = docum 阅读全文
posted @ 2018-10-18 16:28 就俗人一个 阅读(723) 评论(0) 推荐(0)
摘要: 代码: 阅读全文
posted @ 2018-10-18 15:29 就俗人一个 阅读(260) 评论(0) 推荐(0)
摘要: 代码: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script> function init() { setTimeout("showAD()", 3000); } function showAD() 阅读全文
posted @ 2018-10-18 14:10 就俗人一个 阅读(251) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-10-18 09:55 就俗人一个 阅读(206) 评论(0) 推荐(0)
摘要: 代码: <!DOCTYPE html> <html lang="zh-cn"> <head> <meta charset="UTF-8"> <title>Title</title> <style> div{ width: 200px; height: 200px; background-color: 阅读全文
posted @ 2018-10-18 09:30 就俗人一个 阅读(2302) 评论(0) 推荐(1)
摘要: 代码: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script> function changeImg() { var img = document.getElementById("img1"); im 阅读全文
posted @ 2018-10-18 09:25 就俗人一个 阅读(227) 评论(0) 推荐(0)