Please login or register. Welcome to the Studio, guest!


Quick Links:


newBookmarkLockedFalling

dev7
Guest
<div id="thisCont" style="align: center;">Hello</div><br />
<input type="button" onclick="toggleCont('thisCont')" id="buttonChange" value='Toggle Visibility' />


<script type="text/JavaScript">
/* Hide/Show Function */
function toggleCont(thisId){
var tc = document.getElementById(thisId);
if(tc==null){
return;
}
toggleFunc = tc.style.display == '';
tc.style.display = (toggleFunc ? 'none' : '');
}
</script>


Will hide and show the div content. Feel free to edit and use.

newBookmarkLockedFalling