forked from Tazinho/Advanced-R-Solutions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhtml_header.html
37 lines (32 loc) · 1.47 KB
/
html_header.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!-- COLLAPSIBLE TEXT WITH OPEN ALL/CLOSE ALL LINK -->
<!-- This goes into the HEAD of the html file -->
<script language="JavaScript" type="text/javascript">
<!-- Copyright 2007, Sandeep Gangadharan -->
<!-- For more free scripts go to http://www.sivamdesign.com/scripts/ -->
<!--
if (document.getElementById) {
document.write('<style type="text/css">.texter {display:none; border-left:white 20px solid; color:#404040; font-family:verdana,arial,helvetica,sans-serif; font-size:9pt} @media print {.texter {display:block;}}</style>') }
var divNum = new Array("a1","a2","a3"); // at the left you should add a1, a2 etc. for each header you wish to include
// so if you want 4 headers you should add a1, a2, a3, a4 in the format shown
// enclosed in double quotes
function openClose(theID) {
for(var i=0; i < divNum.length; i++) {
if (divNum[i] == theID) {
if (document.getElementById(divNum[i]).style.display == "block") { document.getElementById(divNum[i]).style.display = "none" }
else { document.getElementById(divNum[i]).style.display = "block" }
}
else { document.getElementById(divNum[i]).style.display = "none"; }
}
}
function openAll() {
for(var i=0; i < divNum.length; i++) {
document.getElementById(divNum[i]).style.display = "block";
}
}
function closeAll() {
for(var i=0; i < divNum.length; i++) {
document.getElementById(divNum[i]).style.display = "none";
}
}
// -->
</script>