Provabox

Dal Wiki di Scuola3D

Revision as of 10:33, 20 Luglio 2006; view current revision
←Older revision | Newer revision→

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD><TITLE>help di scuola3D</TITLE> <META http-equiv=Content-Type content="text/html; charset=windows-1252"> <STYLE type=text/css>SPAN.foldopened { BORDER-TOP-WIDTH: 1px; PADDING-RIGHT: 0.25em; PADDING-LEFT: 0.25em; BORDER-LEFT-WIDTH: 1px; FONT-SIZE: xx-small; BACKGROUND: #e0e0e0; VISIBILITY: visible; BORDER-BOTTOM-WIDTH: 1px; PADDING-BOTTOM: 0em; CURSOR: pointer; COLOR: white; PADDING-TOP: 0em; FONT-FAMILY: monospace; BORDER-RIGHT-WIDTH: 1px } SPAN.foldclosed { BORDER-TOP-WIDTH: 1px; PADDING-RIGHT: 0.25em; PADDING-LEFT: 0.25em; BORDER-LEFT-WIDTH: 1px; FONT-SIZE: xx-small; BACKGROUND: #e0e0e0; VISIBILITY: hidden; BORDER-BOTTOM-WIDTH: 1px; PADDING-BOTTOM: 0em; CURSOR: pointer; COLOR: #666666; PADDING-TOP: 0em; FONT-FAMILY: monospace; BORDER-RIGHT-WIDTH: 1px } SPAN.foldspecial { BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 0.1em; BORDER-TOP: #cccccc 1px; PADDING-LEFT: 0.1em; FONT-SIZE: xx-small; BACKGROUND: #e0e0e0; PADDING-BOTTOM: 0em; BORDER-LEFT: #cccccc 1px; CURSOR: pointer; COLOR: #666666; PADDING-TOP: 0em; BORDER-BOTTOM: #cccccc 1px solid; FONT-FAMILY: sans-serif } LI { LIST-STYLE-TYPE: none } SPAN.l { FONT-WEIGHT: bold; COLOR: red } A:link { COLOR: black; TEXT-DECORATION: none } A:visited { COLOR: black; TEXT-DECORATION: none } A:active { COLOR: black; TEXT-DECORATION: none } A:hover { BACKGROUND: #eeeee0; COLOR: black; TEXT-DECORATION: none } </STYLE> <META content="Microsoft FrontPage 4.0" name=GENERATOR></HEAD> <BODY> <SCRIPT language=JavaScript>

  // Here we implement folding. It works fine with MSIE5.5, MSIE6.0 and
  // Mozilla 0.9.6.
  if (document.layers) {
     //Netscape 4 specific code
     pre = 'document.';
     post = ; }
  if (document.getElementById) {
     //Netscape 6 specific code
     pre = 'document.getElementById("';
     post = '").style'; }
  if (document.all) {
     //IE4+ specific code
     pre = 'document.all.';
     post = '.style'; }

function layer_exists(layer) {

  try {
     eval(pre + layer + post);
     return true; }
  catch (error) {
     return false; }}

function show_layer(layer) {

  eval(pre + layer + post).position = 'relative'; 
  eval(pre + layer + post).visibility = 'visible'; }

function hide_layer(layer) {

  eval(pre + layer + post).visibility = 'hidden';
  eval(pre + layer + post).position = 'absolute'; }

function hide_folder(folder) {

   hide_folding_layer(folder)
   show_layer('show'+folder);
   scrollBy(0,0); // This is a work around to make it work in Browsers (Explorer, Mozilla)

}

function show_folder(folder) {

   // Precondition: all subfolders are folded
   show_layer('hide'+folder);
   hide_layer('show'+folder);
   show_layer('fold'+folder);
   scrollBy(0,0); // This is a work around to make it work in Browsers (Explorer, Mozilla)
   var i;
   for (i=1; layer_exists('fold'+folder+'_'+i); ++i) {
      show_layer('show'+folder+'_'+i); }

} function show_folder_completely(folder) {

   // Precondition: all subfolders are folded
   show_layer('hide'+folder);
   hide_layer('show'+folder);
   show_layer('fold'+folder);
   scrollBy(0,0); // This is a work around to make it work in Browsers (Explorer, Mozilla)
   var i;
   for (i=1; layer_exists('fold'+folder+'_'+i); ++i) {
      show_folder_completely(folder+'_'+i); }

}


function hide_folding_layer(folder) {

  var i;
  for (i=1; layer_exists('fold'+folder+'_'+i); ++i) {
      hide_folding_layer(folder+'_'+i); }
  hide_layer('hide'+folder);
  hide_layer('show'+folder);
  hide_layer('fold'+folder);
  scrollBy(0,0); // This is a work around to make it work in Browsers (Explorer, Mozilla)

}

function fold_document() {

  var i;
  var folder = '1';
  for (i=1; layer_exists('fold'+folder+'_'+i); ++i) {
      hide_folder(folder+'_'+i); }

}

function unfold_document() {

  var i;
  var folder = '1';
  for (i=1; layer_exists('fold'+folder+'_'+i); ++i) {
      show_folder_completely(folder+'_'+i); }

}

</SCRIPT> All + All -

<A href="http://www.scuola3d.eu/wiki/index.php?title=Help di Scuola3D" target=_blank>~ help di scuola3D </A>

<SCRIPT language=JavaScript> fold_document(); </SCRIPT>

</BODY></HTML>

Personal tools