Quote:
Originally Posted by dwilkinsjr
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.
|
Is there a way to make the preload work with the Secret add-on at:
http://www.pixelpost.org/forum/showt...ghlight=secret ?
My secret images seem to load really slowly even after the mouse has moved over the trigger image.
If my images have a standard file naming such as image1-before.jpg and image1-after.jpg, is it possible to make it work? Sorry not really familiar to scripting to modify it myself.