Ad block is installed and active. Please support us by disabling it.
HomeThursday, September 21, 2017, 03:23:55
1

Show / Hide Div with CSS

Tuesday, February 10, 15, 12:09:28, 3 Yaers Ago Via wain, Hits: 2540
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

Syntax highlighting in Smarty

Syntax highlighting for Smarty - Google Code Prettify

Addslashes - Stripslashes

addslashes — quote string with slashes, stripslashes — un-quotes a quoted string

PHP Cookies and Sessions Tutorial

PHP Cookies and Sessions Tutorials

FeedBack Form with Captcha

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

PHP Tutorials

Useful step-by-step PHP tutorials for beginners

Contact Us Form With Captcha

A contact us form with email and form field validation. It allows your visitors to send you an email directly from your website. Features: Captcha Image, HTML output.

PHP DateTimeZone

PHP representation of time zone

Sitemap

phpForm.net Website Sitemap

Link Base Pro :: Free Link Index Script

This script allows you to manage your links using a MySQL database. It features easy install, user submission, and an admin panel to add, edit and remove categories and links.

PHP Cookies - setcookie

Defines a cookie to be sent along with the rest of the HTTP headers.
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.