界面的功能描述: 比如点击象163,sohu ,sinaWEB邮件界面,
点击右边通迅录,然后双击通迅录中的邮件地址就可以插入收件人文本框中,我的通迅录是从数据库读取出来

解决方案 »

  1.   

    ajax 异步处理。onclick后,把点击的数据进行数据库查询。再返回界面
      

  2.   

    这个是点击添加的效果,中间加个异步查询就行了吧。<!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=gb2312" />
    <title>无标题文档</title>
    </head>
    <script>
    var add = function()
    {
    document.getElementsByTagName("input")[0].value = document.getElementsByTagName("a")[0].innerHTML;
    }
    </script>
    <body>
    <a href="javascript:void(0)" onclick="return add()">[email protected]</a>
    <input type="text">
    </body>
    </html>
      

  3.   

    ajax 异步查询!帮忙给个简单的例子啊
      

  4.   

    经典教程http://www.ibm.com/developerworks/cn/xml/wa-ajaxintro2/
      

  5.   

    input")[0].是怎么算来的,如果是放到另一个input 里怎么办?
      

  6.   

    请问高手,如果我在input中加入多个email地址并用分号分开怎么办?
    如:
    [email protected];[email protected]
    <script>
        var add =    function()
        {
            document.getElementsByTagName("input")[0].value = document.getElementsByTagName("a")[0].innerHTML;
        }
    </script>
    <body>
    <a href="javascript:void(3)" onclick="return add()">[email protected]</a>
    <a href="javascript:void(4)" onclick="return add()">[email protected]</a>
    <input type="text">
      

  7.   


    <!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=gb2312" />
    <title>无标题文档</title>
    </head><body>
    <input value="[email protected];[email protected] "/>
    <script>
    var parm = document.getElementsByTagName("input")[0].value;
    var _split = parm.split(";");
    for(var i =0;i<_split.length;i++)
    {
    alert(_split[i]);
    }
    </script>
    </body>
    </html>
      

  8.   

    dada20042030 
    非常感谢。不是这样的啊我的意思是在第一个例子基础上,有N个<a href="javascript:void(0)" onclick="return add()">[email protected]</a>插入
    <input type="text">,并是分开的"aaa"<[email protected]>;"ccc"<[email protected]>
      

  9.   

    <script>
        var add =    function(id)
        {
        if(document.getElementById("inputName").value==""){
       document.getElementById("inputName").value=id.innerHTML;
    }else{
               document.getElementById("inputName").value+=","+id.innerHTML;
    }
        }
    </script>
    <body>
    <a href="javascript:void(0)" onClick="return add(this);">[email protected]</a>
    <a href="javascript:void(0)" onClick="return add(this);">[email protected]</a>
    <input type="text" name="inputName" id="inputName">
      

  10.   

    谁做过用phpmailer群发邮件吗?
    就是在收件人中增加多个邮件地址,当然一个也能发送<form name="phpmailer" action="send.php" method="post">
    <input type="hidden" name="submitted" value="1"/>
    收件人: <input type="text" size="50" name="user[]" /><br>
    标题: <input type="text" size="50" name="title" /><br>
    内容: <input type="text" size="50" name="content" />
    <br/>
    <input type="submit" value="发送"/>
    </form>
    收件人: <input type="text" size="50" name="user[]" />中的邮件地址格式为为:[email protected],[email protected],[email protected]点击发送就把邮件发送给三个邮箱了
     我在网上找了一段代码但是不行:<?php
    require("class.phpmailer.php");
    $mail = new PHPMailer();
    $arrUser = $_POST['user'];
    ..............$mailsto = explode(",",$arrUser);
    for ($i=0;$i<count($mailsto);$i++)
    {
        echo "$mailsto";
        echo"<br>";
     $mail->AddAddress($mailsto[$i]);
    }
      

  11.   


    <html>
    <body>
    <h3>phpmailer Test</h3><form name="phpmailer" action="send.php" method="post">
    <input type="hidden" name="submitted" value="1"/>
    email: <input type="text" size="50" name="address" /><br>
    titie: <input type="text" size="50" name="title" /><br>
    content: <input type="text" size="50" name="content" />
    <br/>
    <input type="submit" value="发送"/></form><script>
        var add =    function(id)
        {
            if(document.getElementById("address").value==""){
               document.getElementById("address").value=id.innerHTML;
            }else{
               document.getElementById("address").value+=";"+id.innerHTML;
            }
        }
    </script>
    <table border=1>
    <tr>
    <td><input type="checkbox" size="50" name="address" /></td>
    <td>lixuenong</td>
    <td><a href="javascript:void(1)" onClick="return add(this);">[email protected]</a></td></tr><tr>
    <td><input type="checkbox" size="50" name="address" /></td>
    <td>lixn</td>
    <td><a href="javascript:void(1)" onClick="return add(this);">[email protected]</a></td></tr></table><input type="submit" value="插入地址"/>------------------有没有办法点击两个checkbox后把这两个地址插入插入form中
    </body>
    </html>
      

  12.   

    搜索"邮件",里面有个我帮着解决用phpmailer发送邮件的.