View Full Version : Help Pretty Please


yugiohw
02-25-2003, 11:54 PM
I know absolutly NO javascript but my site has a timer load bar and i want it to seem as the page is actually loading, but its not. The thing that takes the longest to load is my two images.
I was looking through some javascript on DHTMLshock.com and seen this tag. It was on an image load status bar so maybe its of some use but i dont know how to use it.
window.onload=loadimages;
My timer bar that delays the load of the next page is set at ten seconds. is it possible that while thats loading you can have images in my directory load or maybe even the whole page (it's not very big) plus i can change the time for that bar to go through.
Thanks in advance, Please hurry

MaGiCSuN
02-26-2003, 10:50 PM
about the question:

I think you found the following script:

http://www.dhtmlshock.com/other/ProgressBar/default.asp

you add the code into your <body> tag on the page wich you want to 'preload'

then you will see the following line:

var images=new Array();

between those () you have to add all the images that you want to preload. You add them like this:

var images=new Array('/img/image1.gif','/img/image2.gif');

So this means that the image1.gif is in the directory /img on your domain or hosting space etc. If you have it into the same directory as your page then you only need to fill in the name of the image.gif

and you also need to change this line:

var yposition=120; //POSITION OF LOAD BAR FROM TOP OF WINDOW, IN PIXELS

but that is on the page i gave you above ;)

good luck!

If you are not sure if you coded it right then you can always post the code on here and i can tell you if it's ok :)

Love,
Mirna

yugiohw
02-27-2003, 12:13 AM
Yeah, that is the code I found but I want to just preload images without adding a bar on the page.

MaGiCSuN
02-27-2003, 10:14 AM
Well what do you want to view then on the page while the images are preloading?

yugiohw
02-28-2003, 12:00 AM
Its a regular page...it has a javascript or summin... loading bar and after 10seconds it fills up and redirect to the index page... Heres the site... The page that i want to show while preloading, is the first one.
www.geocities.com/depthdesign