Buttons on web forms
I would like to be able to Show and Hide Buttons on a web form on the 'onclick' event of a graphic in a layer. Has anyone got an insight into how this might be done or if in fact it is possible.
I have Graphical button's (designed in Fireworks) down the side of a page and once each is clicked I want the button in the form to be displayed. At the moment I have it set-up so as a button is enable however there are 8 buttons on the form and it looks pretty untidy so I really need to find a way to show and hide them as appropriate.
Cheers for any help you are able to give me. It is for the a system im designing for a Newspaper in Ireland.
Comments
try this...
or this...
RE: JavaScript
These both work in there own way. Thanks very much. The easiest way to do it though is to have the style="visibility:hidden" but im not sure of the Javascript to change the property back to visible. Can anyone help with this. I want the button to become visible on the onclick event of a graphic located outside the form.
I was thinking something like this would do it but it didn't seem to work. Any ideas???
<script>
function display_it() {
document.form1.button.style.visiblity = 'visible';
}
</script>
Good!
Working example:
You must me logged in to write a comment.