- 博客(14)
- 收藏
- 关注
原创 解析url
function parseQueryString(url) { var json = {}; var arr = url.substr(url.indexOf('?') + 1).split('&'); arr.forEach(function(item) { var tmp = item.split('=');
2016-09-27 19:21:55 286
原创 原型的两种方式
/* var Student = { name: 'Robot', height: 1.2, run: function () { console.log(this.name + ' is running...'); } }; var xiaoming = { name: '小明' };
2016-09-27 12:29:08 510
原创 Jquery实现360图片导航效果
*{margin:0;padding:0;} ul{list-style: none;} img{display: block; border:0;} .wrapper{width: 752px; border:1px solid #ccc; padding: 10px 0 0 10px; font-
2016-09-21 15:31:01 548
原创 手风琴效果
* { margin: 0; padding: 0; } ul{ list-style: none; } .wrap { width: 1010px; margin: 100px auto 0; }
2016-09-21 15:12:38 227
原创 三层级伦播图
ul,li,ol{ margin:0; padding:0; text-decoration: none; list-style: none; } .wrap{ width:650px; height:250px;
2016-09-21 15:04:38 511
原创 淘宝服饰精品广告
* { margin: 0; padding: 0; font-size: 12px; } ul { list-style: none; } a { text-decoration: none; }
2016-09-20 14:27:41 1063
原创 右下角的弹出框
.ad { position: fixed; right: 0; bottom: 0; width: 230px; height: 120px; background-image: url(imgs/ad.jpg); display
2016-09-19 21:52:53 393
原创 HTML dom中的insertBefore和Jquery中的区别
CoffeeTea请点击按钮向列表插入一个项目。试一下function myFunction(){var newItem=document.createElement("LI")var textnode=document.createTextNode("Water")newItem.appendChild(textnode)var list=document.getEle
2016-09-18 20:42:48 622
原创 js实现快速排序
快排思想(1)在数据集之中,选择一个元素作为"基准"(pivot)。(2)所有小于"基准"的元素,都移到"基准"的左边;所有大于"基准"的元素,都移到"基准"的右边。 var quickSort = function(arr) { if (arr.length <= 1) { return arr; } var pivotIndex = Ma
2016-09-12 09:38:58 330
原创 PHP基础
<?php $team=array("bill","kill","healsr","cindy");// echo $team[3]; /*$oxo=array(array('x','','o'), array('o','o','x'), array('x','y','z')); echo $oxo[0][2szr4r];*/ /*字符串连接使用句点(.)将一个字符串
2016-09-07 22:17:09 218
原创 仿网易轮播图
下面是slider.js/** * Created by andy on 2015/11/23. */window.onload = function() { // 获取元素 function $(id) {return document.getElementById(id);} var js_slider = $("js_slider"); // 获取最大盒子
2016-09-06 19:17:47 974
原创 放大镜
* {margin: 0;padding: 0;} img { vertical-align: top; } .box { width: 350px; height: 350px; margin:100px; border: 1px
2016-09-05 19:49:38 196
原创 含缓动公式的js样式
*{margin: 0; padding: 0;} ul {list-style:none;} body { background-color: #000; } .nav { width: 800px; height: 42px; back
2016-09-04 01:12:23 394
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人