如题

解决方案 »

  1.   

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title>
    <style>
    *{margin:0; padding:0;}
    body{font-size:12px; color:#000; text-align:center;}
    </style>
    </head><body>
    <input type="checkbox" name="a" />a
        <input type="checkbox" name="b" />b
        <input type="checkbox" name="c" />c
        <input type="checkbox" name="d" />d
        <input type="checkbox" name="e" />e
        <input type="checkbox" name="f" />f
        <input type="checkbox" name="g" />g
        <input type="text" id="t" />
        
        <input type="button" value="click me" id="btn" />
        <script>
    document.getElementById('btn').onclick = function(){
    var inps = document.getElementsByTagName('input'),
    len = inps.length,str = '';

    for(var i = 0; i < len; i++){
    if(inps[i].checked){
    str += inps[i].name;
    }
    }

    document.getElementById('t').value = str;
    };
        </script>
    </body>
    </html>
    做了一个例子,看看是你要的效果吗
      

  2.   


    大概意思就是我写的那个例子,图片后面的Node1这些文字是放在什么标签里?
      

  3.   

    你的是意思是跨frame赋值?可以用top.window.["frameName"].方法名("节点值"),在frame里写个专门换值的方法