DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   JavaScript / DHTML / AJAX (http://www.daniweb.com/forums/forum117.html)
-   -   Delay placing links (http://www.daniweb.com/forums/thread120628.html)

adaykin Apr 23rd, 2008 12:50 pm
Delay placing links
 
Hello, I want to delay showing all of my links on my page for a few seconds until all the animation I am doing is done. I was wondering if there was a way I could delay placing them using javascript. In other words I want them to not show up for a few seconds.

~s.o.s~ Apr 23rd, 2008 1:43 pm
Re: Delay placing links
 
Initially attach a styleclass to all the links on your page which will keep them hidden using the
display 
/
visibility
CSS property.

Attach an event handler to the
onload 
event listener which would make these links visible only after the entire page has loaded, by virtue of the
onload 
handler not being fired till the entire page is loaded, and hence your animations, unless you are employing lazy loading.


All times are GMT -4. The time now is 7:58 am.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC