simple preload script and where to place it!

h_freezy

Senior Member
I just need help to preload swf and images on my webpage. I have checked so many stupid tuts and ain't clear. They don't even know if it works. All i need is a simple code and where to place them!
cheers

also how can i put small logo on the address bar?
 
Hey Freezy. We use this, as we thought it best to preload images but I'm not 100% if it works or not. Our page seems to work quick enough though.

We've placed it in the header.

<script type="text/javascript">
if (document.images) {
img1 = new Image();
img1.src = "../images/portfolio/nothing.jpg";
img2 = new Image();
img2.src = "../images/portfolio/small_b.jpg";
img3 = new Image();
img3.src = "../images/portfolio/forestlife.jpg";
img4 = new Image();
img4.src = "../images/portfolio/stocks_studio.jpg";
img5 = new Image();
img5.src = "../images/portfolio/tbtv.jpg";
}
</script>
 
Back
Top