随笔分类 -  Javascript

摘要:/*可获取用户,通过哪个关键词访问该页,可自行添加SOGOU,SOSO,有道等搜索引擎*/var refer=document.referrer; var sosuo=refer.split(".")[1];var grep=null;var str=null;var keyword=null;switch(sosuo){ case "baidu": grep=/wd\=.*\&/i; str=refer.match(grep) keyword=str.toString().split("=")[1].split(" 阅读全文
posted @ 2012-10-10 12:00 hcjavascript 阅读(2541) 评论(2) 推荐(1) 编辑
摘要:<!DOCTYPE HTML><html><head> <meta charset="utf-8" /> <title>demo</title> <style> *{margin:0;padding:0;} ul{list-style-type:none;width:150px;float:left;margin:15px;} ul li{height:200px;border:1px solid red;margin-top:10px;} #warp{width:750px;height: 阅读全文
posted @ 2012-09-03 21:05 hcjavascript 阅读(887) 评论(2) 推荐(0) 编辑
摘要:<!DOCTYPE HTML><html><head> <meta http-equiv="content-type" charset="utf-8" /> <meta http-equiv="content-type" content="text/html" /> <title>demo</title></head><body><p>aaaaaaaaaaa</p><div id 阅读全文
posted @ 2012-08-24 10:01 hcjavascript 阅读(539) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE HTML><html><head> <meta http-equiv="content-type" charset="utf-8" /> <meta http-equiv="content-type" content="text/html" /> <title>demo</title></head><style type="text/css">*{margin:0;pa 阅读全文
posted @ 2012-08-14 09:53 hcjavascript 阅读(964) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE HTML><html><head> <meta http-equiv="content-type" charset="utf-8" /> <meta http-equiv="content-type" content="text/html" /> <title>demo</title></head><style type="text/css">*{margin:0;pa 阅读全文
posted @ 2012-08-13 11:52 hcjavascript 阅读(18244) 评论(3) 推荐(1) 编辑
摘要:IE浏览器判断版本 <!--[if !IE]><!--> 除IE外都可识别 <!--<![endif]--><!--[if IE]> 所有的IE可识别 <![endif]--><!--[if IE 6]> 仅IE6可识别 <![endif]--><!--[if lt IE 6]> IE6以及IE6以 阅读全文
posted @ 2012-08-11 23:20 hcjavascript 阅读(75) 评论(0) 推荐(0) 编辑
摘要:1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <meta http-equiv="content-type" charset="utf-8" /> 5 <meta http-equiv="content-type" content="text/html" /> 6 <title>demo</title> 7 </head> 8 <body> 9 10 <div id=&qu 阅读全文
posted @ 2012-08-10 11:26 hcjavascript 阅读(532) 评论(0) 推荐(0) 编辑
摘要:1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <meta http-equiv="content-type" charset="utf-8" /> 5 <meta http-equiv="content-type" content="text/html" /> 6 <title>demo</title> 7 </head>13 <body>15 <div id=" 阅读全文
posted @ 2012-08-10 09:15 hcjavascript 阅读(1769) 评论(0) 推荐(0) 编辑