Ad block is installed and active. Please support us by disabling it.
HomeWednesday, April 25, 2018, 08:54:53
1

Show / Hide Div with CSS

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

Create and write data to a file using the php frwite function.

Contact Us 2.0. with HTML Page and Pop Up Frame

This is the same Contact Us 2.0. that is in this forum, But I have added more options to this script and a html page with a very nice pop Up frame that DONT get block by any pop Up software. Many websites use this type of script to bypass the blocking…

Upload Attachment - PHP Tutorial

Upload attachment with PHP example, Requirement(s): PHP server

PHP Cookies and Sessions Tutorial

PHP Cookies and Sessions Tutorials

PHP Write to File

PHP Write to File :: PHP Tutorial, requirement(s): PHP server

PHP Fwrite : fwrite

php write to file - how to write data to a file using the php frwite function

Link Base 1.1. - Free PHP Link Index Script

Manage your links using a MySQL database. Features easy install, user submission, and an admin panel to add, edit and remove categories and links.

Upload File with PHP

Basic file uploading with PHP

PHP explode

Explode — Split a string by string.

Create dynamic Web Pages with PHP & MySQL

Create dynamic Web Pages with PHP & MySQL, Requirement(s): PHP Server, MySQL
About Author

wain

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