我想做一个跟这个差不多样子的网页.(功能)
就是上面有几个复选框,然后选择,下面有有一行是你选择的数字.
 asp php 什么的都可以,麻烦了..做好的可以把网页源码贴上来或是发我邮箱.
[email protected] 

解决方案 »

  1.   

    本帖最后由 brothercat 于 2009-10-18 22:35:05 编辑
      

  2.   

    <html>
    <input type = "checkbox" name = "s" onclick = "_p(1);" />1
    <input type = "checkbox" name = "s" onclick = "_p(2);" />2
    <input type = "checkbox" name = "s" onclick = "_p(3);" />3
    <input type = "checkbox" name = "s" onclick = "_p(4);" />4
    <input type = "checkbox" name = "s" onclick = "_p(5);" />5
    <input type = "checkbox" name = "s" onclick = "_p(6);" />6
    <div id = "e"></div>
    <script type = "text/javascript">
    var _s = document.getElementsByName("s");
    function _p(sn){
    if (_s[sn-1].checked) document.getElementById("e").innerHTML += sn;
    }
    </script>
    </html>
    http://bbs.winzheng.com/
    感谢嬴政的兄弟~!