Template:Team:Gaston Day School/Templates/Header

From 2009.igem.org

(Difference between revisions)
(New page: <html> <div id="my_menu" class="sdmenu" style="margin-top: 1em"> <div> <span>Online Tools</span> <a href="http://tools.dynamicdrive.com/imageoptimizer/">Image Optimi...)
Line 1: Line 1:
<html>
<html>
-
<div  id="my_menu" class="sdmenu" style="margin-top: 1em">
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd">
-
      <div>
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
-
        <span>Online Tools</span>
+
 
-
        <a href="http://tools.dynamicdrive.com/imageoptimizer/">Image Optimizer</a>
+
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
-
        <a href="http://tools.dynamicdrive.com/favicon/">FavIcon Generator</a>
+
 
-
        <a href="http://www.dynamicdrive.com/emailriddler/">Email Riddler</a>
+
<script type="text/javascript" src="ddaccordion.js">
-
        <a href="http://tools.dynamicdrive.com/password/">htaccess Password</a>
+
 
-
        <a href="http://tools.dynamicdrive.com/gradient/">Gradient Image</a>
+
/***********************************************
-
        <a href="http://tools.dynamicdrive.com/button/">Button Maker</a>
+
* Accordion Content script- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
-
      </div>
+
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
-
      <div>
+
* This notice must stay intact for legal use
-
        <span>Support Us</span>
+
***********************************************/
-
        <a href="http://www.dynamicdrive.com/recommendit/">Recommend Us</a>
+
 
-
        <a href="http://www.dynamicdrive.com/link.htm">Link to Us</a>
+
</script>
-
        <a href="http://www.dynamicdrive.com/resources/">Web Resources</a>
+
 
-
      </div>
+
<script type="text/javascript">
-
      <div class="collapsed">
+
 
-
        <span>Partners</span>
+
//Initialize Arrow Side Menu:
-
        <a href="http://www.javascriptkit.com">JavaScript Kit</a>
+
ddaccordion.init({
-
        <a href="http://www.cssdrive.com">CSS Drive</a>
+
headerclass: "menuheaders", //Shared CSS class name of headers group
-
        <a href="http://www.codingforums.com">CodingForums</a>
+
contentclass: "menucontents", //Shared CSS class name of contents group
-
        <a href="http://www.dynamicdrive.com/style/">CSS Examples</a>
+
revealtype: "clickgo", //Reveal content when user clicks or onmouseover the header? Valid value: "click", or "mouseover"
-
      </div>
+
mouseoverdelay: 200, //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover
-
      <div>
+
collapseprev: true, //Collapse previous content (so only one open at any time)? true/false
-
        <span>Test Current</span>
+
defaultexpanded: [0], //index of content(s) open by default [index1, index2, etc]. [] denotes no content.
-
        <a href="?foo=bar">Current or not</a>
+
onemustopen: false, //Specify whether at least one header should be open always (so never all headers closed)
-
        <a href="./">Current or not</a>
+
animatedefault: false, //Should contents open by default be animated into view?
-
        <a href="index.html">Current or not</a>
+
persiststate: true, //persist state of opened contents within browser session?
-
        <a href="index.html?query">Current or not</a>
+
toggleclass: ["unselected", "selected"], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
-
      </div>
+
togglehtml: ["none", "", ""], //Additional HTML added to the header when it's collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
 +
animatespeed: 500, //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow"
 +
oninit:function(expandedindices){ //custom code to run when headers have initalized
 +
//do nothing
 +
},
 +
onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed
 +
//do nothing
 +
}
 +
})
 +
 
 +
</script>
 +
 
 +
<style type="text/css">
 +
 
 +
.arrowsidemenu{
 +
width: 180px; /*width of menu*/
 +
border-style: solid solid none solid;
 +
border-color: #94AA74;
 +
border-size: 1px;
 +
border-width: 1px;
 +
}
 +
 +
.arrowsidemenu div a{ /*header bar links*/
 +
font: bold 12px Verdana, Arial, Helvetica, sans-serif;
 +
display: block;
 +
background: transparent url(arrowgreen.gif) 100% 0;
 +
  height: 24px; /*Set to height of bg image-padding within link (ie: 32px - 4px - 4px)*/
 +
padding: 4px 0 4px 10px;
 +
line-height: 24px; /*Set line-height of bg image-padding within link (ie: 32px - 4px - 4px)*/
 +
text-decoration: none;
 +
}
 +
 +
.arrowsidemenu div a:link, .arrowsidemenu div a:visited{
 +
color: #26370A;
 +
}
 +
 
 +
.arrowsidemenu div a:hover{
 +
background-position: 100% -32px;
 +
}
 +
 
 +
.arrowsidemenu div.unselected a{ /*header that's currently not selected*/
 +
color: #6F3700;
 +
}
 +
 
 +
 +
.arrowsidemenu div.selected a{ /*header that's currently selected*/
 +
color: blue;
 +
background-position: 100% -64px !important;
 +
}
 +
 
 +
.arrowsidemenu ul{
 +
list-style-type: none;
 +
margin: 0;
 +
padding: 0;
 +
}
 +
 
 +
.arrowsidemenu ul li{
 +
border-bottom: 1px solid #a1c67b;
 +
}
 +
 
 +
 
 +
.arrowsidemenu ul li a{ /*sub menu links*/
 +
display: block;
 +
font: normal 12px Verdana, Arial, Helvetica, sans-serif;
 +
text-decoration: none;
 +
color: black;
 +
padding: 5px 0;
 +
padding-left: 10px;
 +
border-left: 10px double #a1c67b;
 +
}
 +
 
 +
.arrowsidemenu ul li a:hover{
 +
background: #d5e5c1;
 +
}
 +
 
 +
</style>
 +
 
 +
<body>
 +
 
 +
<div class="arrowsidemenu">
 +
 
 +
<div><a href="http://www.dynamicdrive.com" title="Home">Home</a></div>
 +
<div class="menuheaders"><a href="http://www.dynamicdrive.com/style/" title="CSS">CSS Library</a></div>
 +
<ul class="menucontents">
 +
<li><a href="http://www.dynamicdrive.com/style/csslibrary/category/C1/">Horizontal CSS Menus</a></li>
 +
<li><a href="http://www.dynamicdrive.com/style/csslibrary/category/C2/">Vertical CSS Menus</a></li>
 +
<li><a href="http://www.dynamicdrive.com/style/csslibrary/category/C4/">Image CSS</a></li>
 +
<li><a href="http://www.dynamicdrive.com/style/csslibrary/category/C6/">Form CSS</a></li>
 +
<li><a href="http://www.dynamicdrive.com/style/csslibrary/category/C5/">DIVs and containers</a></li>
 +
<li><a href="http://www.dynamicdrive.com/style/csslibrary/category/C7/">Links & Buttons</a></li>
 +
<li><a href="http://www.dynamicdrive.com/style/csslibrary/category/C8/">Other</a></li>
 +
<li><a href="http://www.dynamicdrive.com/style/csslibrary/all/">Browse All</a></li>
 +
</ul>
 +
<div><a href="http://www.dynamicdrive.com/forums/" title="Forums">Forums</a></div>
 +
<div class="menuheaders"><a href="http://www.javascriptkit.com" title="JavaScript">JavaScript</a></div>
 +
<ul class="menucontents">
 +
<li><a href="http://www.javascriptkit.com/jsref/index.shtml">JavaScript Reference</a></li>
 +
<li><a href="http://www.javascriptkit.com/cutpastejava.shtml">Free JavaScripts</a></li>
 +
</ul>
 +
<div><a href="http://tools.dynamicdrive.com/" title="Tools">Webmaster Tools</a></div>
 +
 
 +
</div>
 +
 
 +
 
 +
</body>
 +
 
 +
</html>

Revision as of 16:04, 7 July 2009