Preloaded content and page transition

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
andrei.mita
Forum Commoner
Posts: 65
Joined: Sun May 08, 2005 4:06 am
Location: Barlad/Romania

Preloaded content and page transition

Post by andrei.mita »

Hello people,

First, I don't even know if my topic is in the right place but I'll give it a shot. I am developing a quiz based game where you need to answer 30 questions, one at a time. At any given step, except first and last question, the game works like this:
  • Screen 1: Question is shown with possible answers. You select one and submit it.
    Screen 2: A message is displayed based on the correctness of your answer then after x seconds you are being redirected to screen 1
What I don't know is how to preload some images and make the transition from one page to another with some sort of fade-in/fade-out effect. I have no clue for what to search on google. I have done some small works with jQuery but I don't know If I can make it work for two different pages. I don't even know if I made myself clear enough. Is there any solution out there based on php and maybe a javascript library?

Thank you.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: Preloaded content and page transition

Post by Benjamin »

A simple solution would be to simply use Javascript to preload the images:

http://www.google.com/search?q=javascri ... oad+images
Post Reply