Header

From Phonology

(Difference between revisions)
Line 87: Line 87:
{
{
var folder=e;
var folder=e;
-
var folded=e.childNodes[1];
+
var folded;
 +
var mark;
 +
//find 'folded' and 'mark'
 +
//U must give the folded element a class name including "hidden"
 +
//And give the mark elenent a class name including "mark"
 +
for(i=0;i<e.childNodes.length;i++)
 +
{
 +
var chld=e.childNodes[i];
 +
var classname=String(chld.className);
 +
classname=classname.toLowerCase();
 +
 +
if(classname.indexOf("mark")!=-1)mark=chld;
 +
if(classname.indexOf("hidden")!=-1)folded=chld;
 +
 +
}
 +
 
//To check folding mark of hidden element,to show or to hide
//To check folding mark of hidden element,to show or to hide
var toshow=(folded.style.display=="none")?true:false;
var toshow=(folded.style.display=="none")?true:false;
Line 93: Line 108:
{
{
folded.style.display="";
folded.style.display="";
-
folder.childNodes[2].style.display="none";
+
if(!(mark==undefined))mark.style.display="none";
}
}
else{
else{
folded.style.display="none";
folded.style.display="none";
-
folder.childNodes[2].style.display="";
+
if(!(mark==undefined))mark.style.display="";
}
}
}
}
-
 
  </script>
  </script>

Revision as of 11:14, 29 April 2007

<style type="text/css">
  /*
     Notes: 
      -You must log as admin to edit this page
      -Whatever you enter in this page will be added to the html in the header after the standard style sheet, so you can override styles. 
      -if you want your code to look nice on this page, put a space at the beginning of each line
      -This is the default style sheet that you can override : http://editthis.info/wiki/skins/monobook/main.css 
      
      For example uncomment this next section to turn all the text green:
  */
  1. column-content {
       background: #f9f9f9 url("Crypan0.jpg") 0px 0px repeat;

width: 100%; float: right; margin: 0 0 0.6em -12.2em; padding:0; background-color: #DEE4D6; }

  1. article,#dicussion,#edit,#history,#protect,#delect,#move,#watch {
            ackground-color: #DEE4D6;
                    }
  1. content {

margin: 2.8em 0 0 12.2em; padding: 0em 1em 1.5em 1em; border: 1px solid #aaaaaa; border-right: none; line-height: 1.5em; position: relative; z-index: 2; background-color: #EDECE2; }

  1. p-cactions li a {
   background-color: #EDECE2;
   color: #002bb8;
   border: none;
   padding: 0 0.8em 0.3em 0.8em;
   text-decoration: none;
   text-transform: lowercase;
   position: relative;
   z-index: 0;
   margin: 0;

} .portlet h5{

   color: #993366;
   }

body {

   font: x-small sans-serif;
   
   color: Black;
   margin: 0;
   padding: 0;

} /* wikitable/prettytable class for skinning normal tables */

table.wikitable, table.prettytable {

 margin: 1em 1em 1em 0;
 background: #f9f9f9;
 border: 1px #aaaaaa solid;
 border-collapse: collapse;

}

table.wikitable th, table.wikitable td, table.prettytable th, table.prettytable td {

 border: 1px #aaaaaa solid;
 padding: 0.2em;

}

table.wikitable th, table.prettytable th {

 background: #f2f2f2;
 text-align: center;

}

table.wikitable caption, table.prettytable caption {

 margin-left: inherit;
 margin-right: inherit;

}

</style>
<script type="text/javascript">
  //Feel free to add your javascript code here.

function fold(e)//To fold/unfold particular child element(annotation etc of current element { var folder=e; var folded; var mark; //find 'folded' and 'mark' //U must give the folded element a class name including "hidden" //And give the mark elenent a class name including "mark" for(i=0;i<e.childNodes.length;i++) { var chld=e.childNodes[i]; var classname=String(chld.className); classname=classname.toLowerCase();

if(classname.indexOf("mark")!=-1)mark=chld; if(classname.indexOf("hidden")!=-1)folded=chld;

}

//To check folding mark of hidden element,to show or to hide var toshow=(folded.style.display=="none")?true:false; if(toshow)//If true,show the hidden content,and hide the Sign,otherwise,hide the content and re-show the Sign { folded.style.display=""; if(!(mark==undefined))mark.style.display="none"; } else{ folded.style.display="none"; if(!(mark==undefined))mark.style.display=""; } }

</script>
Personal tools