I wish to create a site use wordpress, and that i want give a scroll news like Top Tweets in twitter home page. once the custom publish a brand new replys in each and every a part of my page, the brand new subjects will disply within this scroll news part. all of them originate from latest 10 products of database. How to achieve that? Thanks

Using Jquery you may make a div slide in and slide from view. http://docs.jquery.com/UI/Effects/Slide#overview.

Then you definitely give each div a distinctive id each that contains a comment out of your database. Initialize div ,1,2 as visible and three-9 as hidden. Here the javascript structure:

echo <<<CONTENT
       <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
       <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js">       
       <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script> 
       <script type="text/javascript">
        function livefeed(i){

        function slide(i){
                 var j=((i-1)%10);


        function addTop(i){
                  var e=document.getElementById(i);
        function removeBottom(i){


     echo "<div class='livefeed'>";
        echo "<div id='".$i."' >This is comment $i from the database</div>";
        echo "<div style='display:none' id='".$i."'  >This is comment ".$i." from the database</div>";      
     echo "</div>";

THis updates every second.. that is a little fast ... which means you should place it to something similar to 7000 milliseconds. demo