随笔分类 -  JavaScript

该文被密码保护。
posted @ 2013-05-27 16:36 蓬莱仙羽 阅读(39) 评论(0) 推荐(0)
摘要:<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html;"><title>五子棋</title><link rel="stylesheet" type="text/css" href="http://sandbox.runjs.cn/uploads/rs/102/r2dy3tyw/reset.css"><sc 阅读全文
posted @ 2013-04-26 10:31 蓬莱仙羽 阅读(233) 评论(0) 推荐(0)
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <title></title> <style type="text/css"> #navigation { 阅读全文
posted @ 2013-04-06 16:44 蓬莱仙羽 阅读(115) 评论(0) 推荐(0)
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <title></title> <script type="text/javascript"> //验证按 阅读全文
posted @ 2013-03-21 20:28 蓬莱仙羽 阅读(276) 评论(0) 推荐(0)
摘要://获取单选按钮的选项值 function f1() { //radio集合 var radios = document.getElementsByName("sex"); for (var i = 0; i < radios.length; i++) { if (radios[i].checked) { alert(radios[i].value); break; } } } <input type="checkbox" id="chkAll" onclick="checkAll()"/>全选& 阅读全文
posted @ 2013-03-17 23:29 蓬莱仙羽 阅读(280) 评论(0) 推荐(0)
摘要:alert(new Date().toLocaleString()); varnum = new Number(); num =11; alert(num); var a= "a"; alert(a); var b= 'b'; alert(b); var a= "123"; if(isNaN(a)) { alert("是一个数字"); } else { alert("不是一个数字"); } alert("3+3="+eval_r(3+3)); var sum = 0; for ( 阅读全文
posted @ 2013-03-16 23:09 蓬莱仙羽 阅读(204) 评论(0) 推荐(0)
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <title>javascript测试</title> <script type="text/javascript&quo 阅读全文
posted @ 2013-03-04 19:31 蓬莱仙羽 阅读(180) 评论(0) 推荐(0)
摘要:<html><head><style>#bg{position:absolute;left:0;top:0;width:100%;height:100%;background:#000;font-size:40px;color:#ccc;text-align:center;}#colorLine{width:400px;}#colorLine div{width:5px;height:2px;float:left;overflow:hidden;}</style></head><body><table id=&quo 阅读全文
posted @ 2012-11-04 14:25 蓬莱仙羽 阅读(168) 评论(0) 推荐(0)