DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Survey Submit

02.13.2006
| 1731 views |
  • submit to reddit
        // Needed to save this somewhere for a second or two.

      <div style="position: absolute; visibility:{SURVEY_VISIBILITY};left: 100px; top: 100px; z-index: 100; background-color: #fff; padding: 10px;">
      		HIT IT SFDLKKJSDFLKJ
      	
      	<div id="moochie">
      	
      	</div>
      	
		
		<script>
		<![CDATA[
			function findElementStyleById(id) {
				if (document.getElementById) {
					return document.getElementById(id).style;
				}else {if (document.layers) {
					return document[id];
				}else{
					return document.all[id].style;
				}		
			}
			function toggleVisibility(id,value) {
				findElementStyleById(id).visibility = value;
			}
		]]>
		</script>
		<a href="javascript:toggleVisibility('moochie','hidden');">hit me</a>
		<a href="javascript:toggleVisibility('moochie','hidden');">hit me</a>
      	
      </div>