Jump to content

read more read less


jonline

Recommended Posts

Something like this should work.

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<script type="text/javascript">
function hideElement(i) {
var e = document.getElementById(i);
if (e) {
e.style.visibility = 'hidden';
}
}

function showElement(i) {
var e = document.getElementById(i);
if (e) {
e.style.visibility = 'visible';
}
} 
</script>
<title>Test Page</title>
</head>
<body>
<div id="showhide">
The Text<br/>
<a href="java script:hideElement('showhide')">Hide</a><br/>
</div>
<p>
<a href="java script:showElement('showhide')">Show</a><br/>
</p>
</body>
</html>

Link to comment
Share on other sites

  • 5 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...