What's new
Photoshop Gurus Forum

Welcome to Photoshop Gurus forum. Register a free account today to become a member! It's completely free. Once signed in, you'll enjoy an ad-free experience and be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Image Slices & Preloader


NemesisWorks

Banned
Messages
822
Likes
208
Is it possible to add slices to animated gif file ? + Is it possible to preload a .gif or .jpg file so when it loads completely it should show up.
 
Hi Evil...

Answer to #1: no.

Answer to #2: here's the script you'd put in between your <head></head> tags at the top of your html page.

Code:
<script language="JavaScript" type="text/javascript">
<!-- 
var myimages=new Array()

function preloadimages(){
for (i=0;i<preloadimages.arguments.length;i++){
myimages[i]=new Image()
myimages[i].src=preloadimages.arguments[i]
}
}

preloadimages("myImage1.jpg,myImage2.jpg,myImage3.jpg")
 -->
</script>
As you see... the names/paths of your images go into the 'preloadingimages' brackets at the bottom of the script.

Then within the BODY tag of your page put this:
Code:
onLoad="preloadimages();"

That should do it.
Any problems just ask. :B
 

Back
Top