Ad block is installed and active. Please support us by disabling it.
HomeSaturday, January 20, 2018, 16:57:05
1

Show / Hide Div with CSS

Tuesday, February 10, 15, 12:09:28, 3 Yaers Ago Via wain, Hits: 3271
CSS Display and Visibility:The visibility property specifies whether or not an element is visible.
Example:
Code:
<head>
<style type="text/css">
#hidiv {
position: fixed;
left: 400px;
top: 70px;
width:125px;
text-align:center;
background-color: lightyellow;
padding:10px;
border:1px solid orange;
display: none;
font-family:'trebuchet ms';
}
#ctext {
position: fixed;
left: 200px;
top: 70px;
width:125px;
text-align:center;
background-color: lightyellow;
padding:10px;
border:1px solid orange;
font-family:'trebuchet ms';
}
</style>
<script language="javascript">
function hiddendiv(id, visibility) {
document.getElementById(id).style.display = visibility;
}
</script>
</head>
<body>
<div id="ctext">
<a name=type onclick="hiddendiv('hidiv', 'block');";>
show</a> |
<a name=type onclick="hiddendiv('hidiv', 'none');";>
hidde</a>
</div>
<div id="hidiv">Hidden Div</div>
</body>

Sign In

Sponsor

Related

PHP Str_replace - PHP Tutorial

This function returns a string or an array with all occurrences of search in subject replaced with the given replace value.

Upload Image with PHP [Example2]

[Example2] Tutorial - How to upload and resize image with PHP

PHP Trim

trim() Strip whitespace (or other characters) from the beginning and end of a string.

PHP Form Action Self Submit

PHP form action self submit tutorial, requirement(s): PHP server

Jquery PHP Contact Form

This script allows your visitors to send you an email directly from your website.

PHP $_POST Function

Collect values from a form sent with method post

Sitemap

phpForm.net Website Sitemap

Images In Textarea - CSS

Tutorial Images in Textarea

PHP form with file upload

Advanced Contact Form with email and form field validation. It allows your visitors to send you an email directly from your website.

Upload File with PHP

Basic file uploading with PHP
About Author

wain

Date Registered: Sun, Feb 8, 15
Last Time Online: Thu, Jun 15, 17
So far has created 115 entries.
wain
This author has not yet filled in any details.