html
公子薛
冰冻三尺非一日之寒
展开
-
DOM练习 文本字体
无标题文档a:link,a:visited{ color:#FFFF00; text-decoration:none; font-size:14px; } a:hover{ color:#00FF00; } .newsstyle{ border:#0000FF 1px solid; width:300px; font-size:16px; color:#FF00原创 2012-11-27 11:21:25 · 583 阅读 · 0 评论 -
HTML自定义对象练习
// JavaScript Documentfunction arraytool(){}var ArrayTool = new arraytool();ArrayTool.getMax = function(arr){ var max = 0; for(var i = 1; i < arr.length; i++) { if(arr[i] > arr[max]) ma原创 2012-11-23 21:57:18 · 852 阅读 · 0 评论 -
邮件列表
无标题文档table,table td, table th{ border:#0066FF 1px solid; width:600px; }table th{ background-color:#99FF00; }table td{ text-align:center; }.one{ background-color:#CCFFCC; }.two{ backg原创 2012-12-06 08:45:03 · 954 阅读 · 0 评论 -
添加附件
无标题文档table a:link, table a:visited{ color:#0099FF; text-decoration:none; }function addFile(){ var tabNode = document.getElementById("fileid"); var trNode = tabNode.insertRow(); var td原创 2012-12-04 22:49:13 · 788 阅读 · 0 评论 -
添加附件
无标题文档table a:link, table a:visited{ color:#0099FF; text-decoration:none; }function addFile(){ var tabNode = document.getElementById("fileid"); var trNode = tabNode.insertRow(); var td原创 2012-12-04 22:49:10 · 802 阅读 · 0 评论 -
下拉菜单--字体练习
无标题文档#div1{ background-color:#FFCC00; width:320px; height:80px; }#div2{ background-color:#CCCCCC; width:320px; }#selid{ margin-top:15px; margin-bottom:15px; }function selStyle(){原创 2012-12-03 22:00:22 · 795 阅读 · 0 评论 -
checkbox练习
无标题文档function getSum(){ var items = document.getElementsByName("item"); var sum = 0; for(var x = 0; x < items.length; x++) { if(items[x].checked) { sum += parseInt(items[x].value); }原创 2012-12-03 17:05:49 · 1035 阅读 · 0 评论 -
下拉菜单--二级联动菜单练习
无标题文档select{ width:100px; } function selcity(){ var arr = [[],['海淀区', '朝阳区', '东城区', '西城区'] ,['沈阳', '大连', '鞍山', '抚顺'] ,['济南', '青岛', '烟台', '威海'] ,['石家庄', '廊坊', '唐山', '秦皇岛']]; //获取选择的省原创 2012-12-03 22:01:52 · 776 阅读 · 0 评论 -
表单练习二
无标题文档我的注册区域<table border="1" bordercolor="#0099FF" width="70%" cellpadding="10px" cellspacing="0"〉 我的注册页面 用户名: 密码: 确认密码:原创 2012-11-19 11:09:17 · 735 阅读 · 0 评论 -
表单练习
表单练习用户名: 密码:性别:男女技术:JAVAHTMLCSS附件: --选择国家-- 美国 英国 中国 运行结果:原创 2012-11-18 21:29:57 · 668 阅读 · 0 评论 -
表格的排序
无标题文档table{ border:#0099FF 1px solid; border-collapse:collapse; width:600px; } table td, table th{ border:#0099FF 1px solid; padding:10px; }#age:link, #age:visited{ color:#000000; tex原创 2012-12-01 16:08:00 · 726 阅读 · 0 评论 -
表格的创建于删除
无标题文档table{ border:#0033FF 1px solid; width:600px; border-collapse:collapse; }table td{ border:#0033FF 1px solid; padding:10px; }function crtTable_1(){ /*var tabNode = document.creat原创 2012-12-01 16:06:15 · 989 阅读 · 0 评论 -
节点的操作
无标题文档div{ border:#00FF00 1px solid; height:60px; width:120px; margin:20px 0px 20px 20px; padding:10px 0px 0px 20px; }#div_1{ background-color:#0000CC;}#div_2{ background-color:#CC6633;原创 2012-11-26 22:58:30 · 673 阅读 · 0 评论 -
document对象练习
无标题文档function getAllNodes(){ if(confirm("你真的要遍历所有节点吗")) { getNodes(document, 0); var winObj = open("", "_blank"); winObj.document.write(info); }}var info = "";function getNodes(node, l原创 2012-11-25 22:12:24 · 752 阅读 · 0 评论