![]() |
How do I hide a layer with the onLoad event handler?
Hello
I need to hide a layer after a set time when the page loads. Let's say a 1000ms (a second). Now this works as you'd expect: <body onLoad="PopUp.style.visibility='hidden';"> Which closes the layer so quick the user cannot see it. I need it to close after 1 second. I'd thought this would work, but it does not: <onLoad="setTimeout('PopUp.style.visibility='hidde n';', 1000);"> Does anyone know how to hide the layer after a set time? Thanks |
Re: How do I hide a layer with the onLoad event handler?
lee@dnuk.com wrote:
> <onLoad="setTimeout('PopUp.style.visibility='hidde n';', 1000);"> <onLoad="setTimeout('PopUp.style.visibility=\'hidd en\';', 1000);"> Quotes within quotes within quotes need to be escaped \' --------------------------------------------------------------------------- http://www.hunlock.com $FA |
Re: How do I hide a layer with the onLoad event handler?
pcx99 wrote :
> lee@dnuk.com wrote: >> <onLoad="setTimeout('PopUp.style.visibility='hidde n';', 1000);"> > > <onLoad="setTimeout('PopUp.style.visibility=\'hidd en\';', 1000);"> > > Quotes within quotes within quotes need to be escaped \' > > > --------------------------------------------------------------------------- > http://www.hunlock.com > $FA Just in case : <onLoad="setTimeout('PopUp.style.display: \'none\';', 1000);"> -- Naixn http://fma-fr.net |
| All times are GMT. The time now is 08:21 PM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.