Guest User

Untitled

a guest
Dec 12th, 2010
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. <script type="text/javascript">
  2. <!--
  3. // Created by Sandeep Gangadharan - http://www.sivamdesign.com/scripts/
  4.  
  5. if (document.getElementById) {
  6. document.write('<style type="text/css">.texter {display:none; border-left:white 20px solid; color:#404040; font: .9em verdana, arial, helvetica, sans-serif; margin-bottom: 12px;}</style>') }
  7.  
  8. var divNum = new Array("a1","a2","a3"); // at the left you should add a1, a2 etc. for each header you wish to include
  9. // so if you want 4 headers you should add a1, a2, a3, a4 in the format shown
  10. // enclosed in double quotes
  11. function openClose(theID) {
  12. for(var i=0; i < divNum.length; i++) {
  13. if (divNum[i] == theID) {
  14. if (document.getElementById(divNum[i]).style.display == "block") { document.getElementById(divNum[i]).style.display = "none" }
  15. else {
  16. document.getElementById(divNum[i]).style.display = "block"
  17. }
  18. } else {
  19. document.getElementById(divNum[i]).style.display = "none"; }
  20. }
  21. }
  22. //-->
  23. </script>
Advertisement
Add Comment
Please, Sign In to add comment