allyson
11-11-2006, 11:20 PM
Hi
The following is a preload code that I'm developing but need some assistance. I have 2 questions
1) When the images are being downloaded, the Window.status="Downloading.....". Is there a way of testing the Window.status and if it has the word "Downloading" then move on. The only problem with this is if the mouse is still on the next or previous buttons and window.status changes.
2) is there a way of measuring the bytes in the graphic being downloaded, so that when the whole graphic has loaded into preloadit[] then move on. I hope this makes sense
var preloadit=new Array()
for (i=0;i<numberslide.length;i++){
while (preloadit[i]="") {
preloadit[i]=new Image(i)
preloadit[i].src=numberslide[i][0]
}
}
bye for now
Allyson
The following is a preload code that I'm developing but need some assistance. I have 2 questions
1) When the images are being downloaded, the Window.status="Downloading.....". Is there a way of testing the Window.status and if it has the word "Downloading" then move on. The only problem with this is if the mouse is still on the next or previous buttons and window.status changes.
2) is there a way of measuring the bytes in the graphic being downloaded, so that when the whole graphic has loaded into preloadit[] then move on. I hope this makes sense
var preloadit=new Array()
for (i=0;i<numberslide.length;i++){
while (preloadit[i]="") {
preloadit[i]=new Image(i)
preloadit[i].src=numberslide[i][0]
}
}
bye for now
Allyson