please !!!!!!!!!! PAGE LOADING WITHOUT DIV!!

B

Beshoo

Hi all :

I want javascript code to loading a page, that is to say when all the
data in this page finished loading all the page appear at the same time

!!


but I want not to use the dive methode !!!


I have example :: this link :


http://www.ccf-damas.org
 
V

Vincent van Beveren

I want javascript code to loading a page, that is to say when all the
data in this page finished loading all the page appear at the same time

but I want not to use the dive methode !!!
I have example :: this link :

I don't understand. What method do you want to use? Are we talking about
the entire page or only a section, and why not use DIV?

Vincent
 
L

Lasse Reichstein Nielsen

Beshoo said:
I want javascript code to loading a page, that is to say when all the
data in this page finished loading all the page appear at the same time

<body style="display:none;" onload="document.body.style.display='block';">

But really: Don't!
People are used to seeing pages load progressively, and they won't
think less of you for doing what all other pages do. On the other hand,
this trick makes the page completely invisible if Javascript is disabled.

That could probably be fixed by doing:

<body onload="document.body.style.display='block';">
<script type="text/javascript">
document.body.style.display = "none";
</script>

so at least, if Javascript is disabled, the page is still visible.

It still complicates things needlessly.

/L
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top