Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3792438
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T12:37:20+00:00 2026-05-19T12:37:20+00:00

I want to make a site use wp, and I want add a scroll

  • 0

I want to make a site use wp, and I want add a scroll news like Top Tweets in twitter homepage. when the custom post a new replys in every part of my page, the new topics will disply in this scroll news part. they all come from latest 10 items of database. How to do that? Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T12:37:21+00:00Added an answer on May 19, 2026 at 12:37 pm

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

    Then you give each div a unique id each containing a comment from your database. Initialize div 0,1,2 as visible and 3-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.. which is a bit fast … so you should set it to something like 7000 milliseconds.
    demo

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to make custom urls for my site for example I want url
I want to use twitter bootstrap for some site I am working on. This
I'm just learning MVC and want to add some custom routing to my site.
I want to make a site where there user can basically navigate the web
I want to Make selenium script which move slider given on following site Example
I want to make a program that will simulate a user browsing a site
I have a site running in django and want to make it available on
When I ping one site it returns Request timed out. I want to make
I am new android app developer i want make app for tablets and phone
I am attempting to make a horizontal scrolling portfolio site. I want to users

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.