c " /> 3344在线看片,九九国产精品,国产精品自在线拍

一区二区久久-一区二区三区www-一区二区三区久久-一区二区三区久久精品-麻豆国产一区二区在线观看-麻豆国产视频

一個(gè)用js實(shí)現(xiàn)控制臺(tái)控件的代碼

復(fù)制代碼 代碼如下:
<body margin="0">
</body>
<script>
    function Console(width,height,command)
    {
        var container=document.createElement("div");
        this.container=container;

        container.runtimeStyle.width=(width);
        container.runtimeStyle.height=(height);
        container.runtimeStyle.margin="0px";
        container.runtimeStyle.backgroundColor="black";
        container.runtimeStyle.fontFamily="Terminal";
        container.runtimeStyle.color="white";
        container.runtimeStyle.fontSize="16px";
        this.output=document.createElement("div");
        container.appendChild(this.output);
        container.innerHTML+="js>"
        this.input=document.createElement("input");
        container.appendChild(this.input);
        this.input.runtimeStyle.backgroundColor="black";
        this.input.runtimeStyle.borderWidth="0px";
        this.input.runtimeStyle.color="white";
        this.input.runtimeStyle.fontFamily="Terminal";
        this.input.runtimeStyle.width="90%"
        this.input.runtimeStyle.fontSize="16px"
        this.input.runtimeStyle.position="relative";
        this.input.runtimeStyle.top="2px";
        command=command||function(str)
        {

            var e;
            try{
                var r=eval(str);
            } catch(e) {
                return "Bad command";
            }
            return r;

        }

        this.input.command=function()
        {
            this.parentNode.childNodes[0].innerHTML+=this.value+'<br/>'
            this.parentNode.childNodes[0].innerHTML+=(command(this.value)+"<br/>")

        }
        this.input.onkeyup=new Function("e","e=e||event;if(e.keyCode!=13)return;this.command();this.value='';");
        this.appendto=function(parent)
        {
            parent.appendChild(this.container);
        }
        container=null;
    }

    //var db=new DrawingBoard(100,100)
    //db.drawLine([5,5],[36,44],"red")
    //document.body.appendChild(db.container);
    var c=new Console("100%","100%");
    c.appendto(document.body);

</script>

JavaScript技術(shù)一個(gè)用js實(shí)現(xiàn)控制臺(tái)控件的代碼,轉(zhuǎn)載需保留來(lái)源!

鄭重聲明:本文版權(quán)歸原作者所有,轉(zhuǎn)載文章僅為傳播更多信息之目的,如作者信息標(biāo)記有誤,請(qǐng)第一時(shí)間聯(lián)系我們修改或刪除,多謝。

主站蜘蛛池模板: 人成精品视频三区二区一区 | 中文字幕一区二区精品区 | 91久久亚洲国产成人精品性色 | 国产在线视频一区 | 伊人精品综合 | 黄色网在线看 | 91视频大全| 亚洲精品成人在线 | 99爱在线精品视频免费观看9 | 欧美日韩一区二区三区久久 | 国内自拍欧美 | 九九香蕉网 | 99精品久久99久久久久久 | 久久国产乱子伦精品免费午夜 | 久久婷婷国产一区二区三区 | 国产成人一区二区视频在线观看 | 禁断の肉体乱爱中文字幕欧 | 成年女人免费又黄又爽视频 | 久久无码精品一区二区三区 | 六月婷婷在线 | 国产精品女在线观看 | 精品伊人久久大线蕉色首页 | 四虎在线精品免费高清在线 | 四虎影视国产精品一区二区 | 91精品视频免费 | 亚洲国产第一 | 男女一级毛片免费视频看 | 美女网色 | 天天色综合天天 | 久久精品久久久 | 人人dvd| 国产精品国产三级国产专不∫ | 999成人国产精品 | 在线观看www日本免费网站 | 日日爱影院 | 国产最强大片免费视频 | 久久思思精品 | 在线视频一区二区三区三区不卡 | 国产午夜精品久久久久小说 | 国产精品网红女主播久久久 | 日本高清www视频在线观看 |