为你而来

2012年6月7日

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) 编辑

2012年6月6日

javascript:新闻上下滚动特效

摘要: 1 <html> 2 <head> 3 <title>1</title> 4 <style type='text/css'> 5 #box{ 6 float:left; 7 border:solid 1px green; 8 overflow:hidden; 9 height:26px;10 border-width:1px 0px;11 }12 #ul_news{13 border:solid 0px green;14 margin:0px;15 list-style-type:none;16 width:150px 阅读全文

posted @ 2012-06-06 14:48 为你而来 阅读(920) 评论(0) 推荐(0) 编辑

javascript:滑动特效

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

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

2012年6月5日

javascript:可以用来制作锚点的函数

摘要: 1 window.scrollTo(0,200);//用来制作锚点 阅读全文

posted @ 2012-06-05 20:19 为你而来 阅读(112) 评论(0) 推荐(0) 编辑

javascript:对象的四个宽高属性值

摘要: 1 <html> 2 <head> 3 <title>1</title> 4 <style type='text/css'> 5 #box{ 6 width:300px; 7 height:200px; 8 border:dashed 1px green; 9 overflow:auto;10 }11 </style>12 </head>13 <body>14 <div id='box' onclick="fun();">15 < 阅读全文

posted @ 2012-06-05 20:17 为你而来 阅读(154) 评论(0) 推荐(0) 编辑

javascript:鼠标移动改变编辑器高度的特效

摘要: 1 <html> 2 <head> 3 <title>1</title> 4 <style type='text/css'> 5 #box{ 6 width:500px; 7 height:5px; 8 border:solid 0px green; 9 position:absolute;10 margin:0px;11 overflow:hidden;12 background-color:#cccccc;13 }14 #box2{15 width:500px;16 height:5px;17 border:... 阅读全文

posted @ 2012-06-05 08:25 为你而来 阅读(290) 评论(0) 推荐(0) 编辑

javascript:用键盘移动盒子代码(键盘事件)

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

posted @ 2012-06-05 06:40 为你而来 阅读(396) 评论(0) 推荐(0) 编辑

2012年6月4日

javascript左右两侧广告的滑动特效

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

posted @ 2012-06-04 20:30 为你而来 阅读(451) 评论(0) 推荐(0) 编辑

导航