Closed Thread Icon

Topic awaiting preservation: loading page... (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=8475" title="Pages that link to Topic awaiting preservation: loading page... (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: loading page... <span class="small">(Page 1 of 1)</span>\

 
Boudga
Maniac (V) Mad Scientist

From: Jacks raging bile duct....
Insane since: Mar 2000

posted posted 01-19-2003 15:22

I saw somewhere (and I forgot to bookmark the site) where someone had a website that displayed "loading page..." while everything cached in my browser before displaying the page contents and I don't believe it was Flash they used. Is there someway to do this with Javascript? If so could you post a few URLs where people have utilized this technique? Also are there cross browser problems with this type of script?

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 01-19-2003 16:02

Boudga: The simplest way I believe is to have a 100% high and wide DIV over the top of the page which is switched to display:none or some such when the page has loaded.

I'm sure it has been discussed here before but finding the thread is another matter.........

___________________
Emps

FAQs: Emperor

Hugh
Paranoid (IV) Inmate

From: Dublin, Ireland
Insane since: Jul 2000

posted posted 01-19-2003 16:13

I suppose it could have been mine ?? ..

Its JS alright. not sure how compatable the loading script is, It definatly can been done in NS4(possibly ns2)its just a wee bit buggy. But I didnt bother making the site ns4 friendly.. .. screw nutscrape
Its not that hard to do either, you run a function on an interval that constantly checks if the images are loaded and knows how many are loaded and the total amount so it works out a percentage. My version has the file sizes in the array with the image sources, so the loader is more accurate it knows how much in filesize its downloaded rather then how many files .. they could be 40kb to 100bytes. But it can't tell how much of an image is downloaded so if you have a big image the bar(whatever you make it) will jerk from 20% to 80% or similar(despite the way I made mine to only move the bar by 1px a time to smooth it) in one go so try not to have a huge range of filesizes or cut big images up and display them beside each other if thats possible.

If ya want you can right ahead and swipe my code .. but its a little spagetti like. Links to .JS files for your ease { @ , @ , @ , @ }
Just dont rob the design, or like leave it unchanged or something silly. Oh yea, if you include the js files in the loading page then some of your code will be preloaded too, this is handy if your site content is in Strings .. which I've done before. A wee link would be nice if you use the code if you have a links section he he

okey dokey thats me done.

edits: Linkies

Click Me:


[This message has been edited by Hugh (edited 01-19-2003).]

« BackwardsOnwards »

Show Forum Drop Down Menu