随笔-19  评论-5  文章-3  trackbacks-0
(11)复制内容到剪切板
    function doCopy(obj) {
        obj.select();
        js = obj.createTextRange();
        js.execCommand("Copy");
    }

(12)特殊容器,放啥都行,可以建个test.html看看效果
    <button><iframe src="http://union.shopin.net/cpstransfer.php?unid=j1143" ></iframe></button>

(13)交换节点
    <table width=200 height=200 border >
        <tr><td id=c1>CELL_1</td></tr>
        <tr><td id=c2>CELL_2</td></tr>
    </table>
    <br>
    <input type="button" value="swap cell" onclick="c1.swapNode(c2)">

(14)删除节点
    <table width=200 height=200 border >
        <tr id="trall" >
            <td id="c1" >CELL_1</td>
            <td id="c2" >CELL_2</td>
        </tr>
    </table>
    <br>
    <input type="button" value="del cell" onclick="c2.removeNode()" >

会继续补充,也请大家把自己掌握的贴出来共享。。。


天天学习,好好向上——

posted on 2011-12-31 15:40 東頭bing阿頭 阅读(195) 评论(0)  编辑  收藏 所属分类: WEB开发

只有注册用户登录后才能发表评论。


网站导航: