自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

转载 setTimeout改进 每间隔0.1秒移动一次改进

var message = {       settings:{         x_max:200,         y_max:100,         times:100       },       postitionMessage:function(){       this.parap = document.getElementById("message");     

2014-01-27 11:40:11 765

原创 setTimeout中this指向问题

http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> http://www.w3.org/1999/xhtml"> 无标题文档  p{   position:absolute;   left:50;   top:50px;  }  var message = {       postitionMes

2014-01-26 14:26:59 633

转载 第七章 点击链接换图片

http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> http://www.w3.org/1999/xhtml"> 无标题文档  function atlas(){   var links = document.getElementsByTagName("a");   var newImg = document.c

2014-01-24 10:02:09 545

转载 通用函数: 加载多个函数, 紧邻目标元素节点后,下一个元素节点

/*下一个元素节点*/  fucntion getMextElement(node){   if(node.nodeType ==1){  //如果是元素节点    return node;  //返回该元素节点   }   if(node.nextSibling){ //如果下一个兄弟元素存在    return getNextElement(node.nextSibling); /

2014-01-16 17:29:31 564

转载 6.2只继承于原型和构造器new F()

function Shape(){};  Shape.prototype.name = "shape";  Shape.prototype.toString = function(){return this.name;};    function TwoDShape(){};  TwoDShape.prototype = Shape.prototype; //TwoDShape.prot

2014-01-13 11:07:08 528

转载 6.1.2将共享属性迁移到原型中去

function Shape(){};  Shape.prototype.name = "shape";  Shape.prototype.toString = function(){return this.name;};    function TwoDShape(){};  TwoDShape.prototype = new Shape();  TwoDShape.prototy

2014-01-13 10:22:33 455

转载 6.1.1 继承

function Shape(){   this.name = "shape";   this.toString = function(){return this.name};  }  function TwoDShape(){   this.name = "2D shape";  }  function Triangle(side,height){   this.name = "

2014-01-13 09:37:52 460

转载 javascript with语句

http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> http://www.w3.org/1999/xhtml"> 无标题文档 function Who(){  this.name = "小明",  this.age = "28",  this.gender = "boy" } var people = ne

2014-01-02 14:50:38 432

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除