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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T11:01:47+00:00 2026-05-13T11:01:47+00:00

Facebook and myspace both have a nice feature in the photo galleries, when you

  • 0

Facebook and myspace both have a nice feature in the photo galleries, when you go to an image page, a page with the user’s image and user comments on the page. You can hit you keyboard left and right arrow key and the page will load the next page, it does it super fast, if you held down the key it would go fast through many pages. I know this is mostly with javascript, my main question is how to make the new pages load all soo quickly?

Im using PHP/mysql/Javascript

  • 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-13T11:01:47+00:00Added an answer on May 13, 2026 at 11:01 am

    You’d capture the keys the user is pressing, and response for left-arrows and right-arrows. Capturing keys isn’t all that difficult:

    $(window).bind("keypress", function(e) {
      var code = (e.keyCode ? e.keyCode : e.which); // which code?
      alert(String.fromCharCode(code)); // which key, according to the code?
    });
    

    You’d want to adapt that code to your liking. If the right arrow was click, fire off a request to get-image.php?direction=next&user=12838203 and if it were the back-arrow, simply swap out “next” for “prev”.

    $("#loading").show(); // fancy ajax loading animation
    $.post("get-image.php", {direction:"next",user:12838203}, function(response){
      // hide our ajax loading animation
      $("#loading").hide();
      // if we get a proper response, like a source for a new image back
      $("#image").fadeOut("fast").attr("src", response).fadeIn("fast");
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Facebook and Google+ has both a great feature: Image preview. When you write in
so today my question is how can we have 1 function triggered by both
Facebook cannot grasp my og:image files and I have tried every usual solution. I'm
I have a social network similar to myspace/facebook. In my code you are either
I have a social network site similar in design to a myspace/facebook type community,
I have implemented a facebook style search suggestion feature for my application . But
Facebook's HTML and Twitter Bootstrap HTML (before v3) both use the <i> tag to
Facebook allows you to change the date associated with a photo by clicking on
Facebook now offer subscriptions to users so you can get realtime updates on changes.
Facebook gurus, I have been implementing the Facebook Like button for a number of

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.