I’m just building a small game, so i loading the first page (Intro) and then, i need immediately start loading the Second page (The 1st level of the Game, but just load, without show it), and then wait for the user click to Show it..
Here is my code for now:
in my html page:
<body id="loadlevel">
in my JS page:
var level1 = "level1.html";
$("#loadlevel").load(level1).fadeIn("slow");
But it show the loaded page immediately!..
How can i load the next page and then wait for the user input to show the loaded page?..
I though to use the JQuery hide() and show(), but hide() will hide the entire page (Also the current page) 😉
Create some invisible field and load data.
Then in JS
and