为你而来

2012年6月7日

javascript:Tab选项卡

摘要: 1 <html> 2 <head> 3 <title>1</title> 4 <style type='text/css'> 5 .div_content{ 6 border:solid 1px green; 7 border-top-width:0px; 8 height:150px; 9 font-size:14px;10 color:#333333;11 padding:3px;12 }13 #tab{14 margin:0px;15 list-style-type:none;16 border:solid 0p 阅读全文

posted @ 2012-06-07 22:24 为你而来 阅读(403) 评论(0) 推荐(0) 编辑

javascript:用mousedown和mouseup实现的鼠标拖动事件

摘要: 1 <html> 2 <head> 3 <title>1</title> 4 <style type='text/css'> 5 #box{ 6 width:100px; 7 height:100px; 8 border:dashed 1px green; 9 position:absolute;10 left:300px;11 top:300px;12 }13 </style>14 </head>15 <body>16 <div id='box' onmous 阅读全文

posted @ 2012-06-07 17:54 为你而来 阅读(2261) 评论(0) 推荐(0) 编辑

javascript:星形评分条

摘要: 1 <html> 2 <head> 3 <title>1</title> 4 <style type='text/css'> 5 #box{ 6 background:url(stars-five.jpg) no-repeat 0 0; 7 height:18px; 8 width:80px; 9 border:solid 1px green;10 overflow:hidden;11 }12 </style>13 </head>14 <body>15 <div id=' 阅读全文

posted @ 2012-06-07 12:36 为你而来 阅读(196) 评论(0) 推荐(0) 编辑

javascript:history对象

摘要: history.back()//后退一个页面history.forward()//前进一个页面history.go(-1);//后退history.go(0);//刷新当前页面history.go(1);//前进 阅读全文

posted @ 2012-06-07 11:22 为你而来 阅读(117) 评论(0) 推荐(0) 编辑

javascript:location对象

摘要: www.location.com:80/news/index.jsp?name=zhangsan&pass=123#tophost:www.location.com:80hostname:www.location.comport:80pathname:news/index.jspsearch:?name=zhangsan&pass=123hash:#toplocation.href="";//代替了当前页面,替换后浏览器的后退键可以返回location.reload();//重新加载当前页面location.replace();//这个代替了当前文档,但浏览 阅读全文

posted @ 2012-06-07 11:17 为你而来 阅读(227) 评论(0) 推荐(0) 编辑

导航