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
<html>
<head>
       <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>
       <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script> 
       <script type="text/javascript">
        k=1;
        setInterval("livefeed(k++)",1000);
        function livefeed(i){
        slide(i);
        }

        function slide(i){
                 addTop((i+3)%10);
                removeBottom(i%10);
                 var j=((i-1)%10);
                 $('.livefeed').prepend($("#"+j));

        }

        function addTop(i){
                  var e=document.getElementById(i);
                  $("#"+i).fadeIn(1000);  
        }
        function removeBottom(i){
                  $("#"+i).fadeOut(1000);   
         }
</script>

</head>
<body>
CONTENT;

     echo "<div class='livefeed'>";
     for($i=9;$i>=0;$i--){
         if($i<4&&$i>0){
        echo "<div id='".$i."' >This is comment $i from the database</div>";
         }else{
        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