Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q410 How do you hide and reveal the article synopsis' on irt.org?

irt.org | Knowledge Base | DHTML | Q410 [ previous next ]

Q410 How do you hide and reveal the article synopsis' on irt.org?

Here is a fully working example:

<html>

<head>

<title>Sample</title>

<style type="text/css"><!--
.article { position: absolute; visibility: hidden; }
//--></style>

<script type="text/javascript" language="JavaScript"><!--
function show(object) {
    if (document.layers && document.layers[object] != null)
        document.layers[object].visibility = 'visible';
    else if (document.all) {
        document.all[object].style.visibility = 'visible';
    }
}
function hide(object) {
    if (document.layers && document.layers[object] != null)
        document.layers[object].visibility = 'hidden';
    else if (document.all)
         document.all[object].style.visibility = 'hidden';
}
//--></script>

</head>

<body>        

<table bgcolor="#FFCC99" width="600"><tr><td><p><b>94.</b> Monday 15th May 1998 - <a href="articles/js094/index.htm" onMouseover="show('L094')" onMouseout="hide('L094')">Building a Dynamic Thank You Page</a></td></tr></table>
<div id="L094" class="article"><table bgcolor="#FFFFCC" width="600"><tr><td>
<b>Synopsis:</b><br> See how you can use JavaScript to enhance your Thank You page to let the user know that what they sent is exactly what you received.
<br><br><b>Techniques:</b><br> JavaScript, CGI, forms, thank you page
</td></tr></table></div>

</body>

</html>

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 6th July 2009. Maintained by: Martin Webb
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2009 irt.org, All Rights Reserved.