View Single Post
  #3  
Old 02-20-2007, 02:39 AM
Dkozikowski's Avatar
Dkozikowski+ Offline
Team Pixelpost
 
Join Date: Oct 2005
Posts: 1,855
Send a message via AIM to Dkozikowski
Here it is: Simple Image Pre-loader v0.1

You can use this with whatever javascript pre-loading script you wish.

Use the new template tag, <PRELOAD_IMAGE_NAME> to grab the previous image name for pre-loading.

Here is a extremely simple javascript pre-loader example:

HTML Code:
<script type="text/javascript">
if (document.images) 
{
   img1 = new Image();
   img1.src = "images/<PRELOAD_IMAGE_NAME>";
}
</script>
Note, if the last image has been viewed, the addon will go back and use the first image name.
This may be useful if you have the wraparound image addon installed.

If you know what you're doing, feel free to modify the addon to your liking.
Reply With Quote