Show hide function

Go down

Show hide function

Post by Donutz on Sat Nov 19, 2011 4:02 am

Show hide function

<script type="text/javascript">
<!--

function showhide(id) {
var e = document.getElementById(id);
if(e.style.display == 'none')
e.style.display = 'block';
else
e.style.display = 'none';
}
//-->
</script>

<a href="#" onclick="showhide('weak');" style="">show</a>
<div id="weak" style="display:none;etc">txt/img/obj</div>
avatar
Donutz
Donutz-Zone Admin
Donutz-Zone Admin

Posts : 555
Points : 1456
Repute : 0
Join date : 2011-10-29
Age : 27
Location : C:/Program files/Donutz/Zone

http://dzone.forumotion.net

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum