SitePoint Sponsor |
|
User Tag List
Results 1 to 7 of 7
Thread: just preload
-
Oct 26, 2002, 21:16 #1
just preload
hi all
how r u
who can tell me about some function which just preload some little poor images 4 me ??????????
-
Oct 26, 2002, 21:32 #2
- Join Date
- Jun 2000
- Location
- KY, USA
- Posts
- 137
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Check this tutorial out.
http://www.htmlgoodies.com/tutors/preload.html
-
Oct 26, 2002, 21:45 #3
thanx alot
-
Oct 26, 2002, 21:48 #4
- Join Date
- Jun 2000
- Location
- KY, USA
- Posts
- 137
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I hope it answers your question.
-
Oct 26, 2002, 21:54 #5
so can this do what i need ?
Code:<SCRIPT LANGUAGE="JavaScript"> var myImagesOff = new Array("menu1_1.gif", "menu1_2.gif", "menu1_3.gif"); var myImagesOn = new Array("menu2_1.gif", "menu2_2.gif","menu2_3.gif","menu2_4.gif","menu2_5.gif","menu2_6.gif"); var directoryPath = "images/gifs/" function preloadImages() { for(var loop = 0; loop < myImagesOn.length; loop++) { var anImage = new Image(); anImage.src = myImagesOn[loop]; } } </SCRIPT>
-
Oct 27, 2002, 10:47 #6
- Join Date
- Jun 2000
- Location
- KY, USA
- Posts
- 137
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Have you tried the above javascript? I am not sure if it would work or not. I thought you needed a simple preload script. I have only just started learning javascript.
Matybe someone with a little more experience can answer your questionSorry all I knew about it is how to do a simple image preload.
-
Oct 27, 2002, 12:29 #7
it's it
i exactly wanted asimple script but i found this so i wanted 2 ask about it
Bookmarks