Closed Thread Icon

Preserved Topic: Table Size & Preloading Scripts Pages that link to <a href="https://ozoneasylum.com/backlink?for=18247" title="Pages that link to Preserved Topic: Table Size &amp;amp; Preloading Scripts" rel="nofollow" >Preserved Topic: Table Size &amp; Preloading Scripts\

 
Author Thread
KARN
Bipolar (III) Inmate

From: North Bay, Ontario, CA
Insane since: Apr 2001

posted posted 09-28-2001 04:26

When I was using layers to layout some graphics I set the table to 100% (width) to have some pictures stay at both ends and something that stretches in the center... but whenever I do the preview it's alittle longer than the browser window... anybody know why?

Also, I'am looking for a compact (less lines and character) of a image preloader when the page starts. Pls Help.

::K::A::R::N::

KARN
Bipolar (III) Inmate

From: North Bay, Ontario, CA
Insane since: Apr 2001

posted posted 09-28-2001 04:56

Okay I solved the table one but please do help on the second question...

::K::A::R::N::

Wakkos
Maniac (V) Mad Scientist

From: Azylum's Secret Lab
Insane since: Oct 2000

posted posted 09-28-2001 06:05

Actually, I was about to ask, how do you guys (I've seen it in Weadz and Slime) make that layer over the hole page while it loads!!

Thanks!!

Edit> I'm not that lazy, it's just that i couldn't find wich part of the code is this, you have a mess over there...



[This message has been edited by Wakkos (edited 09-28-2001).]

patric design
Bipolar (III) Inmate

From: 290 km/h, fast lane, Autobahn, Germany
Insane since: Feb 2001

posted posted 09-28-2001 22:08

Makae a 100% by 100% layer with Z-Index 99 that is SHOW as default. Fill it with content & color of your choice. Then BODY onLoad=Hide Layer...you get the idea...

<´¯`·.¸ Patric ¸.·´¯`>

Wakkos
Maniac (V) Mad Scientist

From: Azylum's Secret Lab
Insane since: Oct 2000

posted posted 09-28-2001 23:24

That's pretty cool!!!

Thank you Patric!

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 09-29-2001 02:39

here's your basic preloader for images.
just swap out the images with paths to you images.
To use them refrence like this

imgs[number].src
I put this in a function and call it onload cuz it speeds up the viewing of the page but you can just put it in your head script tags

imgsrc = new Array();
imgsrc[0] = '/graphics/global/tn_join_on.gif';
imgsrc[1] = '/graphics/global/tn_join_off.gif';
imgsrc[2] = '/graphics/global/tn_member_on.gif';
imgsrc[3] = '/graphics/global/tn_member_off.gif';
imgsrc[4] = '/graphics/global/tn_site_on.gif';
imgsrc[5] = '/graphics/global/tn_site_off.gif';
imgsrc[6] = '/graphics/global/tn_about_on.gif';
imgsrc[7] = '/graphics/global/tn_about_off.gif';


imgs = new Array()
if (document.images){
for (i=0; i < imgsrc.length;i++){
imgs[i] = new Image;
imgs[i].src = imgsrc[i];
}
}




:[ Computers let you make more mistakes faster than any other invention in human history, with the possible exceptions of handguns and tequila. ]:

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 09-29-2001 02:58

As for Wakkos' question, I actually don't use a layer *over* things, I just hide things until the page loads.

<head>
<script ...>
function loaded()
{
document.getElementById('loadingdiv').style.visibility = 'hidden';
document.getElementById('content').style.visibility = 'visible';
document.getElementById('morecontent').style.visibility = 'visible';
document.getElementById('evenmorecontent').style.visibility = 'visible';
}
</script>
</head>
<body onload="loaded();">

<div id="loadingdiv">Loading...</div>
<div id="content">...</div>
<div id="morecontent">...</div>
<div id="evenmorecontent">...</div>

</body>

Wakkos
Maniac (V) Mad Scientist

From: Azylum's Secret Lab
Insane since: Oct 2000

posted posted 09-29-2001 17:57

Cool Slime, thanks. I checked your code, and it's a little too much things together there....


BTW, Happy birthday!!!!!! (I'm too lazy to write it in the other topic)

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 09-29-2001 19:28

You can find a very nice preloading script here: http://www.dynamicdrive.com/dynamicindex4/preloadimage2.htm

Wakkos
Maniac (V) Mad Scientist

From: Azylum's Secret Lab
Insane since: Oct 2000

posted posted 09-29-2001 22:28

Yeah mr.maX, Thanks, I've been using that one for a while, but i was curious about how did they theirs preload!!!!!

« BackwardsOnwards »

Show Forum Drop Down Menu