Log in

View Full Version : Can this be done? if so could you tell me how? please.



k13r
12-05-2007, 04:42 AM
Ok, I will try and make this come across as clear as I can.

What I have is a quite heavy loading page, the people who would be visiting it know this, however the loading times are bugging me, I was thinking, Wouldnt it be nice if there was some script etc that would darken the webpage and show a loading gif until the page had reached either its full loading or about 70% ish. then disapear by its own accord.

Is this possible? if so could you kindly tell me how?


Kind Regards.

Kieran

BLiZZaRD
12-05-2007, 04:00 PM
It really depends on what you are loading. There are CSS and JS ways to preload images, for example. Flash needs preloaders sometimes, and there are other options such as frames, or tabs, etc.

What is it that is loading and we can help from there.

Twey
12-05-2007, 04:13 PM
<body>
<img src="loader.gif" alt="Page loading, please wait..." id="loader">
<script type="text/javascript">
document.body.style.display = "none";
document.images.loader.style.display = "";
onload = function() {
document.body.style.display = "";
document.images.loader.style.display = "none";
};
</script>

Paul Clarke
12-07-2007, 02:47 PM
Ok, I will try and make this come across as clear as I can.

What I have is a quite heavy loading page, the people who would be visiting it know this, however the loading times are bugging me, I was thinking, Wouldnt it be nice if there was some script etc that would darken the webpage and show a loading gif until the page had reached either its full loading or about 70% ish. then disapear by its own accord.

Is this possible? if so could you kindly tell me how?


Kind Regards.

Kieran
Might the following example work for you... If so let me know and I will send you the code.

www.clewbayangling.com

Paul Clarke