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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T09:39:46+00:00 2026-05-25T09:39:46+00:00

I have two p tags. I need to show first p only. After 5

  • 0

I have two p tags.

I need to show first p only.

After 5 or 10 seconds, the first p will fade out and second p will be fade in.

Also, I would like both texts to randomly fade in and out.

  • 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-25T09:39:47+00:00Added an answer on May 25, 2026 at 9:39 am

    You can use this:

    <p id="ptag1">
            To learn more about ASP.NET visit <a href="http://www.asp.net" title="ASP.NET Website">www.asp.net</a>.
        </p>
        <p id="ptag2" style="display:none;">
            You can also find <a href="http://go.microsoft.com/fwlink/?LinkID=152368&amp;clcid=0x409"
                title="MSDN ASP.NET Docs">documentation on ASP.NET at MSDN</a>.
        </p>
    
    
    <script src="jquery-1.4.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
            $(document).ready(function () {
                setTimeFor2Hide();
            });
    
            function setTimeFor1Hide() {
                setTimeout("$('#ptag1').fadeIn(500)", 1200);
                setTimeout("$('#ptag2').fadeOut(500)", 700);
                setTimeout("setTimeFor2Hide();", 1000);
            }
    
            function setTimeFor2Hide() {
                setTimeout("$('#ptag1').fadeOut(500)", 700);
                setTimeout("$('#ptag2').fadeIn(500)", 1200);
                setTimeout("setTimeFor1Hide();", 1000);
            }
        </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two xml files with the same data but different tags. I need
I need to have two files. Let's call the file controlling a second one:
I need to have two different Like buttons on one web-page. First one -
I have two SVN repostitories: Project A trunk tags branches Project B trunk tags
Let's say, I have two tables, entities and tags. Relation between them is expressed
I have a HTML fragment which contains two anchor tags in various parts of
I have two application that need to talk to each other. App1 needs to
I currently have two anchor tags sending url queries to put votes inside a
I have an IIS7 hosted service that I need to expose to two different
----- PHP and mySQL ----- I have two quick questions need some advice. On

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.