Preloaded Images

images php coding issues or problems here.

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 1
Joined: Tue Dec 08, 2009 7:23 pm

Preloaded Images

Postby tonyeveland » Fri Jan 08, 2010 9:31 pm

Hello there,

I use javascript to preload images as show below. The problem is that every time a page is refreshed, it preloads again. Is there any way to get an image into memory that stays there forever without any more preloading?

<script type='text/javascript'>
if (document.images) {
img001 = new Image(); img001.src = 'images/background.jpg ';
img002 = new Image(); img002.src = 'images/banner.jpg ';

Return to “PHP coding => Images”

Who is online

Users browsing this forum: No registered users and 1 guest