|
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]
|