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 6098617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:10:44+00:00 2026-05-23T13:10:44+00:00

I have a few (3-4) value tel number. Refresh to the page shows one

  • 0

I have a few (3-4) value tel number.
Refresh to the page shows one random number and intervals of 10 seconds, changed to another random number. Preferably with preloader and the effect of a change.

For example

<div class="tel">
<ul>
<li>0 800 900 78 45</li>
<li>0 800 400 47 12</li>
<li>0 870 111 73 43</li>
<li>0 555 500 41 00</li>
</ul>
</div>
  • 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-23T13:10:44+00:00Added an answer on May 23, 2026 at 1:10 pm

    You could do something like this:

    var numberOfLis = $('.tel ul li').length;
    function showRandomLi(){
        var randomNum = Math.floor(Math.random() * numberOfLis) +1;
        $('.tel ul li').hide();
        $('.tel ul li:nth-child('+randomNum+')').show();
    }
    showRandomLi(); 
    setInterval(showRandomLi, 10000);
    

    Working fiddle: http://jsfiddle.net/HkKwJ/3/

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

Sidebar

Related Questions

I have a few images on a page. Each image has an id value
I have a few functions running on my page. The first one is called
I have a data constructor with a few value constructors: data DataType = C1
I have a few types that are like this // a value that is
I have few question in this regard When you create an internet page, does
I have few nested DIVs at page. I want to add event only for
I have few columns in my DataGridView, one of them is an unbound column
I have few search forms and each form has an input value with class
I have few <li> 's with a checkbox on each <li> which the value
I have a few integer keys that is needed to retrieve a value. What

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.