PDA

View Full Version : How to close a div tag with a time limit



suraj4u
December 21st, 2007, 10:46
Now I am currently under going a unicode website(tamil lang) for a christian community.
The work is almost finished.

Now I added a preloading page.
But problem in it is ..if a single image/page fail to open the preloading tag is not disappearing.

According to my knowledge. ..,It can be ovecome by setting a time limit and closing the div tag.
(or)
Terminate the preloading process when it finish aroung 80%.
(or)
Ask user to do it manually.

Help me.. How to do this.
Actually I am seeking help for the issue with code.

Screen shot
http://i83.photobucket.com/albums/j313/suraj_pic/pre.jpg

Website : www.sebasma.com

Thanks

JonnyH
December 24th, 2007, 15:20
That would be done by Javascript. If you have Dreamweaver it has a really nice way of doing it but me my self don't know the code.

themoose
December 24th, 2007, 18:14
if I understand you correctly.. should be able to put this.


<a href="#" onclick="document.getElementById('div-name').style.display='none';">x Close</a>

suraj4u
December 24th, 2007, 20:34
Yeah .. that's I prefer.
It rocks and work fine man.

Thanks a lot.

if I understand you correctly.. should be able to put this.


<a href="#" onclick="document.getElementById('div-name').style.display='none';">x Close</a>

BaAaZoOoKaAa
December 28th, 2007, 18:55
<div style="display:none">Content</div> to hide it. And to open it, it would just show <div id="whatever">Content</div>.

You can do this in PHP, and you won't see it in the page source.