Metachecker.net
|
FontsMadeEasy.com
|
RankChecker.net
Learn Java Script Today
|
Over 5000 Free Fonts
|
Tutorials
|
Javascript Forum
|
Other Javascript Resources
|
Cheat Sheet
JavaScript Basics
Inserting Javascript
Complete Tutorial
Advance DHTML Tutorial
Script archive
Advanced Tutorials
Alert Scripts
Animation
Audio
Background Effects
Banner Ads
Browser Window
Buttons
Button Forms
Calculcators
Calendars
Clocks & Dates
Cookies
Cursor Effects
DHMTL Games
DHTML Miscellaneous
Equivalents
Forms
Games
IE4+ Scripts
IE5+ Scripts
Image Effects
Image Miscellaneous
Links & Buttons
Math Related
Messages Miscellaneous
Miscellaneous
Mouse Tricks
Navigation
Page Details
Password Protection
Pulldown Menus
Random Stuff
Scrolling
Status Bar
Text Animation
User Detail
User Info
Window Control
Contractible Headers Script
Cosmetics
Visit
Cosmetics
Craft
Visit
Craft
Insert into <HEAD>
<script language="JavaScript1.2"> <!-- var head="display:''" function doit(header){ var head=header.style if (head.display=="none") head.display="" else head.display="none" } //--> </script>
Insert into <BODY>
<h3 style="cursor:hand" onClick="doit(document.all[this.sourceIndex+1])">Header 1</h3> <span style="display:none" style=&{head};> This is content under Header 1. </span> <h3 style="cursor:hand" onClick="doit(document.all[this.sourceIndex+1])">Header 2</h3> <span style="display:none" style=&{head};> This is content under Header 2. </span>
Other Options
The above code creates two headers, each with contents "stuffed" inside. To add additional headers, add more of the following to the existing code: <h1 style="cursor:hand" onClick="doit(document.all[this.sourceIndex+1])">Header 1</h1> <span style="display:none" style=&{head};> This is content under Header 1. Insert anything in here, such as text, tables, etc..</span> With the parts in red representing the parts you should change to reflect your own layout.