
javascript
爱吃鱼的狐
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
新手报到------自己写出的一些效果,记录自己的成长(导航的二级菜单显示)
#navbar{width:1140px;height:75px;margin:0 auto;}#navbar ul{list-style:none;}#navbar ul li{width:190px;height:70px;background:black;float:left;text-align:center;}#navbar ul li.lan1{border-bottom:原创 2014-02-22 08:57:08 · 717 阅读 · 0 评论 -
js触碰小图换大图
.datu{width:504px;height:480px;cursor:pointer;} .datu img{width:504px;height:480px;} .xiaotu{width:504px;height:70px;} .xiaotu ul{list-style:none;padding-top:3px;} .xiaotu ul l原创 2014-02-22 09:51:47 · 1700 阅读 · 0 评论 -
用js判断一个字符串中某个字符出现的次数
var nowpic=0 var patt1=new RegExp("t","g"); do { result=patt1.exec("The best things in life are free"); nowpic++ } while (result!=null) document.write(nowpic-1);原创 2014-02-24 10:11:02 · 2831 阅读 · 0 评论 -
原生js(点击按钮换图)
*{padding:0;border:0;margin:0;} #anniu-l,#anniu-r{width:45px;height:45px;background:green;float:left;margin-top:100px;cursor: pointer;} #tu{width:660px;height:100px;margin:70px 30px;float:left;posit原创 2014-02-24 14:43:57 · 1136 阅读 · 0 评论