Team:Groningen/menu.html

From 2011.igem.org

(Difference between revisions)
Line 1: Line 1:
 +
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
Line 5: Line 6:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
-
<script type="text/javascript" src="http://www.dynamicdrive.com/dynamicindex17/ddaccordion.js">
+
<script type="text/javascript" src="ddaccordion.js">
/***********************************************
/***********************************************
Line 14: Line 15:
</script>
</script>
 +
<script type="text/javascript">
<script type="text/javascript">
 +
ddaccordion.init({
ddaccordion.init({
Line 28: Line 31:
persiststate: true,          //persist state of opened contents within browser session?
persiststate: true,          //persist state of opened contents within browser session?
toggleclass: ["", ""],        //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
toggleclass: ["", ""],        //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
-
togglehtml: ["suffix", "<img src='https://static.igem.org/mediawiki/2011/a/a7/Groningen2011menuplus.png' class='statusicon' />", "<img src='https://static.igem.org/mediawiki/2011/5/52/Groningen2011menuminus.png' class='statusicon' />"], //Additional HTML added to the header when it's collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
+
togglehtml: ["suffix", "<img src='plus.gif' class='statusicon' />", "<img src='minus.gif' class='statusicon' />"], //Additional HTML added to the header when it's collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
-
animatespeed: "fast",         //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow"
+
animatespeed: "fast",         //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow"
oninit:function(headers, expandedindices){ //custom code to run when headers have initalized
oninit:function(headers, expandedindices){ //custom code to run when headers have initalized
//do nothing
//do nothing
Line 37: Line 40:
}
}
})
})
 +
</script>
</script>
 +
<style type="text/css">
<style type="text/css">
Line 114: Line 119:
<div class="glossymenu">
<div class="glossymenu">
<a class="menuitem" href="http://www.dynamicdrive.com/">Dynamic Drive</a>
<a class="menuitem" href="http://www.dynamicdrive.com/">Dynamic Drive</a>
-
<a class="menuitem submenuheader" href="https://2011.igem.org/Team:Groningen/Project" > Saf</a>
+
<a class="menuitem submenuheader" href="http://www.dynamicdrive.com/style/" >CSS Examples</a>
<div class="submenu">
<div class="submenu">
<ul>
<ul>
<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/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/C2/">Vertical CSS Menus</a></li>
-
<li><a href="https://2011.igem.org/Team:Groningen/Safety">Image CSS</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/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/C5/">DIVs and containers</a></li>
Line 127: Line 132:
</ul>
</ul>
</div>
</div>
-
<a class="menuitem" href="https://2011.igem.org/Team:Groningen/Team">JavaScript Reference</a>
+
<a class="menuitem" href="http://www.javascriptkit.com/jsref/">JavaScript Reference</a>
-
<a class="menuitem" href="https://2011.igem.org/Team:Groningen/Safety">DOM Reference</a>
+
<a class="menuitem" href="http://www.javascriptkit.com/domref/">DOM Reference</a>
<a class="menuitem submenuheader" href="http://www.cssdrive.com">CSS Drive</a>
<a class="menuitem submenuheader" href="http://www.cssdrive.com">CSS Drive</a>
<div class="submenu">
<div class="submenu">
Line 146: Line 151:
<p>Assuming the current page is named "current.htm", the below links when navigated to expands a particular header on that page:</p>
<p>Assuming the current page is named "current.htm", the below links when navigated to expands a particular header on that page:</p>
<p>
<p>
-
- <a href="https://2011.igem.org/Team:Groningen/menu.html?submenuheader=1">Expand 1st header within "submenuheader" header group</a><br />
+
- <a href="current.htm?submenuheader=0">Expand 1st header within "submenuheader" header group</a><br />
</p>
</p>
 +
<p>Helpful links: </p>
 +
<p>
 +
- <a href="http://www.dynamicdrive.com/dynamicindex17/ddaccordion_suppliment.htm">Adding arbitrary links hat expand/ collapse the contents</a><br />
 +
- <a href="http://www.dynamicdrive.com/dynamicindex17/ddaccordion_suppliment2.htm">Taking advantage of the oninit() and onopenclose() event handlers</a><br />
 +
</p>
</body>
</body>
</html>
</html>

Revision as of 08:40, 19 August 2011

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd">

Assuming the current page is named "current.htm", the below links when navigated to expands a particular header on that page:

- Expand 1st header within "submenuheader" header group

Helpful links:

- Adding arbitrary links hat expand/ collapse the contents
- Taking advantage of the oninit() and onopenclose() event handlers