Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hello, I need to find a way to make hidden objects, mostly a textbox and a button, on my web site, does someone have a code I can use? I know it is possible. JQuery does not work on my server; I need just plain javascript.

You can try something like
<input id="tb" type="text" onmouseover="hide(this.id)" onmouseout="show(this.id)"> <script type="text/javascript"> function hide(id) { document.getElementById(id).style.visibility = "hidden"; } function show(id) { document.getElementById(id).style.visibility = "visible"; } </script>If it works, all you'd need to do is use whatever trigger you need for the desired functionality.
HTH

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |