Is any way to load picture in background and show it after full loaded.
Thanks
Printable View
Is any way to load picture in background and show it after full loaded.
Thanks
Are you talking about preloading images so that the entire webpage shows up at once? If so, you're going to have to look into something like JavaScript. PHP is a server-side language and cannot preload an image on client-side.
How are you loading pictures ? Are you uisng fopen or something like that or just the img src thing ?
Thanks!
I am using 'onmousemove' event to show 2nd picture but when mouse placed over this image the 2nd image start loading. user may not wait for load 2nd image.
u can check my site at www.southsurmacity.com and check my links on left side of page.
Preloading has to be done via JavaScript. PHP is server-side and cannot cache images on a user's computer.
As The Hobo said this is a Javascript thing so would be better asked in that section of the forum ;).
Mind I've seen it done beofre in Javascript where the images get loaded into a image object but can't remember how it was doen sorry. As I said if you post this question in the HTML, Javascript,.... section you'll get a better response ;).