JavaScript里的還是ActionScript 3里的?
解决方案 »
- 如何判断鼠标点击后焦点是否在table里面
- 请教一个js来控制加减的效果
- 怎样让一个层在不同分辨率的显示器上都居中显示
- 拖动浮动DIV元素还有什么方法?
- 请问,这种形式一般在什么地方用var add_msg=function(){}?
- javascript动态生成iframe,不能设置iframe的frameborder属性,始终都有边界框。
- firefox下如何获取iframe中的光标位置
- 在DW软件中做的表单 “提交” 那么提交怎么连接到index.html呢??????请高手帮忙??????
- 请问高手:自动换算的问题??求解答
- 如何实现点击回车,一个文本框的焦点移到下一个
- 为什么Number类型不能直接调用方法?
- 在dropdownlist.js上定义一个
创建对象是document.createElement,对象方法都是自带的
严重鄙视考官~
{
this.btn = document.createElement("input");
this.btn.type = "button";
this.btn.style.width = _weight;
this.btn.style.height = _height;
// debugger;
this.btn.style.backgroundColor = _color;
}var btn = new baseButton(10,10,"red");
var btn2= new baseButton(100,100,"green");
document.body.appendChild(btn.btn);
document.body.appendChild(btn2.btn);