Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Images

Preloaded Images

images php coding issues or problems here.

Moderators: macek, egami, gesf

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 ';
}
</script>
tonyeveland
New php-forum User
New php-forum User
 
Posts: 1
Joined: Tue Dec 08, 2009 7:23 pm

Return to PHP coding => Images

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron