You are here: Re: Disable button until the page is fully loaded « HTML « IT news, forums, messages
Re: Disable button until the page is fully loaded

Posted by Andrew Bailey on 02/26/07 09:32

"Ben C" <spamspam@spam.eggs> wrote in message
news:slrneu3cr6.ffc.spamspam@bowser.marioworld...
> On 2007-02-25, Chris <nospam@btinternet.com> wrote:
>> Not sure if this is the right place to post. Can anyone tell me how to
>> disable a button until the page is fully loaded. Regards, Chris.
>
> There is an "onload" event for the DOM document, but don't ask me the
> rules determining precisely when it occurs.

Hi,

Try this....

<script>
function activatebutton(){
buttonoff.style.display='none';
buttonon.style.display='inline';
}
</script>

<body onload="activatebutton()">

<div id="buttonoff" style="display: inline">
<img src="../images/buttonimg.gif">
</div>

<div id="buttonon" style="display: none">
<a onclick="dosomething()"><img src="../images/buttonimg.gif"></a>
</div>

</body>

Hope this helps

Andy

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация