可以用AJAX实现啊,
什么是AJAX,可以百度搜搜
既然是新手,我想这里的一些函数对你有所帮助。
http://www.xmcase.com/phplib.php

解决方案 »

  1.   

    Ajax确实能够处理!弱弱的问下:不用Ajax有没有办法实现???
      

  2.   

    .....
    PHP代码只是在加载的时候动态生成呀 完了就是HTML了  哪里还会有东西
      

  3.   

    可以的,JS 变量交给FLASH,FLASH 通过SOCKET 发消给PHP,
      

  4.   

    <script language="javascript">
    var xmlHttp;
    function CreateXMLHttpRequest()
    {
    if (window.ActiveXObject)
    {
    xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
    }
    else
    {
    xmlHttp = new XMLHttpRequest();
    }
    }CreateXMLHttpRequest();
    if(xmlHttp)
    {
    xmlHttp.open('POST','*.php',true); //传递的php页面
    var SendData = 'dstPage='+dstPage; //传递的参数值
    xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
    xmlHttp.send(SendData);
    xmlHttp.onreadystatechange = function()
    {
    if(xmlHttp.readyState == 4)
    {
    if(xmlHttp.status == 200)
    {
    var content = xmlHttp.responseText;
    document.getElementById('right').innerHTML = content;
    }
    }
    }
    }
    </script>
      

  5.   

    function meth()
    {
    CreateXMLHttpRequest(); 
    if(xmlHttp) 

    xmlHttp.open('POST','*.php',true); //传递的php页面 
    var SendData = 'dstPage='+dstPage; //传递的参数值 
    xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); 
    xmlHttp.send(SendData); 
    xmlHttp.onreadystatechange = function() 

    if(xmlHttp.readyState == 4) 

    if(xmlHttp.status == 200) 

    var content = xmlHttp.responseText; 
    document.getElementById('right').innerHTML = content; 



    }
      

  6.   

    如果这样可以的话,AJAX就不会有立足之地了..