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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:45:28+00:00 2026-06-15T09:45:28+00:00

Iam loading content in my pages dynamically with php. I want to add a

  • 0

Iam loading content in my pages dynamically with php.
I want to add a nice affect like a fade-in with jquery.

But i want my page still working if the user has javascript turn off.

This is my php code to load the content:

/// load page content
        $pages_dir = 'content';

        if(!empty($_GET['p'])) {

            $pages = scandir($pages_dir, 0);
            //delete . and ..
            unset($pages[0], $pages[1]);

            $p = $_GET['p'];

            // only files that are in the array can be loaded
            if (in_array($p. '.php', $pages)) {
                include($pages_dir. '/'.$p. '.php');    

            } else {
                echo 'This page is not available';
            }
        } else {
            include($pages_dir. '/index.php');
        }
  • 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-06-15T09:45:31+00:00Added an answer on June 15, 2026 at 9:45 am

    This is what i did. wrapped a div around my PHP code with id “fadein” and then used this jquery code:

    $(function(){
                $('#fadein').hide();
                $('#fadein').fadeIn();
    
            });
    

    Easy

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

Sidebar

Related Questions

Iam loading pages in dynamically with PHP like so: <div id=content> <div id=fadein> <?php
I am dynamically loading content into my page using jQuery and Ajax and I
On my website, I am loading the content dynamically from database like this e.g
I am loading images externally using jQuery load function.. but not able add light
I am having some strange problems loading content from another XHTML page via jQuery.
I am using jquery load to load php pages into my content area. I
I am loading content into a page with ajax that will have live click
I am loading in page content via ajax, I am wanting the old content
I am trying to run two scripts: one for loading page content using ajax
I am loading an XML file using jQuery $.get. after loading the content, i

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.