Team:TU Delft/test

From 2010.igem.org

(Difference between revisions)
Line 199: Line 199:
</script>
</script>
 +
<script language="javascript" type="text/javascript">
 +
function buildDepth(iterations)
 +
{
 +
var iterations=iterations-3;
 +
var depthStr="";
 +
for (i=0;i<iterations;i++)
 +
{
 +
depthStr=depthStr + "../";
 +
}
 +
return depthStr;
 +
}
 +
function buildBreadCrumbTrail()
 +
{
 +
var constituentFolders = new Array();
 +
var currentURL = document.location.toString();
 +
constituentFolders=currentURL.split("/");
 +
var outputStr="";
 +
for (count=2;count<(constituentFolders.length-1);count++)
 +
{
 +
outputStr=outputStr + " : <a href='" + buildDepth((constituentFolders.length-count)+1) + "index.html' title='parent folder'>" + constituentFolders[count] + "</a>";
 +
}
 +
document.write(outputStr);
 +
}
 +
</script>
<!-- Scripting END /-->
<!-- Scripting END /-->
Line 497: Line 521:
<div id="TUD-body-content">
<div id="TUD-body-content">
<div id="TUD-main-content">
<div id="TUD-main-content">
-
 
+
<script language="javascript" type="text/javascript">
-
 
+
buildBreadCrumbTrail();
 +
</script>
<div id="iGEM_TU_Delft_container">
<div id="iGEM_TU_Delft_container">

Revision as of 14:39, 27 September 2010