日期:2014-05-16  浏览次数:20471 次

帮忙写个js
废话不多说,先上代码

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
    <script language="javascript">
    function moveText() {
            var input = document.createElement('input');
            input.name = "txtRsv";
            input.type = 'text';
            input.style.width = '70%';
            input.style.marginTop = '5px';
            input.style.marginLeft = '10px';
            document.getElementById("RsvDiv").appendChild(input);
            var input1 = document.createElement('input');
            input1.type = 'button';
            input1.value = '删除';
            document.getElementById("RsvDiv").appendChild(input1);
            var input2 = document.createElement('input');
            input2.type = 'button';
            input2.value = '移至未解决';
            document.getElementById("RsvDiv").appendChild(input2);
        }
    </script>
<body>
    <table style="width: 100%;">
        <tr>
            <td class="auto-style8" colspan="6" valign="top">
                    <div style="margin-top: 10px; margin-left: 60px">
                        <a style="float: left">已解决:</a>
                        <div id="RsvDiv" style="margin-left: 50px; width: 960px;">
                            <input name="txtRsv" type="text" style="margin-top: 5px; margin-left: 10px; width: 70%;" />&nbsp;
                            <input id="Button1" type="button" value="删除" />&nbsp;<input id="Button7" type="button" value="移至未解决" /><br&n