Template:CSU Template 1 top

From 2012.igem.org

(Difference between revisions)
Line 116: Line 116:
#side_bar:hover {
#side_bar:hover {
-
background: url(https://lh6.googleusercontent.com/-6tCnE_Wfc1M/UAhs7N8xndI/AAAAAAAAAOs/AWmXapQj0nU/s300/tap2.png) no-repeat top left;
+
background: url(https://lh6.googleusercontent.com/-6tCnE_Wfc1M/UAhs7N8xndI/AAAAAAAAAOs/AWmXapQj0nU/s300/tap2.png) no-repeat top left;
 +
background-size: 100% 100%;
}
}
Line 230: Line 231:
<script type="text/javascript">
<script type="text/javascript">
-
function goTo (url) {
+
//Simple function that performs startup scripts when prompted
 +
 
 +
function startFunctions () {
-
window.location = url;
+
setTimeout('fade(1,false)', 2000);
 +
setTimeout('menuBar(0)',2000);
}
}
Line 342: Line 346:
} //end function fade
} //end function fade
-
 
-
</script>
 
-
<script type="text/javascript">
 
//*******************************************************************
//*******************************************************************
Line 353: Line 354:
var DDTIMER = 15;
var DDTIMER = 15;
-
// main function to handle the mouse events //
+
//Main function to handle the mouse events
function ddMenu(id,d){
function ddMenu(id,d){
   var h = document.getElementById(id + '-ddheader');
   var h = document.getElementById(id + '-ddheader');
Line 377: Line 378:
}
}
-
// collapse the menu //
+
//Collapse menu
function ddCollapse(c){
function ddCollapse(c){
   c.timer = setInterval(function(){ddSlide(c,-1)},DDTIMER);
   c.timer = setInterval(function(){ddSlide(c,-1)},DDTIMER);
}
}
-
// cancel the collapse if a user rolls over the dropdown //
+
//Cancel the collapse if a user rolls over the dropdown
function cancelHide(id){
function cancelHide(id){
   var h = document.getElementById(id + '-ddheader');
   var h = document.getElementById(id + '-ddheader');
Line 393: Line 394:
}
}
-
// incrementally expand/contract the dropdown and change the opacity //
+
//Incrementally expand/contract the dropdown and change the opacity
function ddSlide(c,d){
function ddSlide(c,d){
   var currh = c.offsetHeight;
   var currh = c.offsetHeight;
Line 423: Line 424:
</script>
</script>
</head>
</head>
-
<body onLoad="fade(1,false); menuBar(0);">
+
<body onLoad="startFunctions()">
     <a id="side_bar" href="https://2012.igem.org/Team:Colorado_State/Safety"></a>
     <a id="side_bar" href="https://2012.igem.org/Team:Colorado_State/Safety"></a>
     <a href="https://2012.igem.org/Team:Colorado_State"><img src="https://lh4.googleusercontent.com/-itFA3bOb7Oc/UAh1hcN2XrI/AAAAAAAAAPU/ZXSorjhz1F4/s512/team_logo.png" style="position: fixed; z-index: 200; width: 200px; top: 20px; left: 20px;" /></a>
     <a href="https://2012.igem.org/Team:Colorado_State"><img src="https://lh4.googleusercontent.com/-itFA3bOb7Oc/UAh1hcN2XrI/AAAAAAAAAPU/ZXSorjhz1F4/s512/team_logo.png" style="position: fixed; z-index: 200; width: 200px; top: 20px; left: 20px;" /></a>

Revision as of 22:40, 19 July 2012