本帖最后由 xbdragon0813 于 2011-07-25 16:35:38 编辑

解决方案 »

  1.   

    还有没有什么好的方法,比如现在信息都是html页面,用js获得当前的url地址,然后在数据库中查出对应的帖子,更新帖子时间,这样就等于重新刷新了帖子,请教大家,这个想法对不对?
      

  2.   

    可以啊。但是用php获取当前的url。比如url上有个帖子id。根据id更新数据库。
      

  3.   

    我现在是这个问题,类似百姓网那样,制作刷新按纽 功能,我现在要获得帖子页面的 url (例如 asdfasf.html)  ,然后把他传递给php页面,在php页面刷新帖子的时间为最新时间,这样帖子就可以排前边,现在要通过什么方式传递帖子html页面的地址url给php
      

  4.   

    通过GET参数向PHP传递贴子的ID吧,客户端上使用ajax或页面内嵌iframeajax可以用jquery实现、自己找一个类或者直接调用MSXML.XMLHTTP
      

  5.   

    index.php?url='<script>url = window.location.pathname;</script>'
    然后通过 index.php页面通过 $_REQUEST['url']  获取url值,这种写法对吗?
      

  6.   

    <script language="javascript">
    document.write('<iframe style="display:none" width="0" height="0" src="index.php?url=' + escape(window.location.pathname) + '"></iframe>');
    </script>