Team:Groningen/menu.html
From 2011.igem.org
(Difference between revisions)
(12 intermediate revisions not shown) | |||
Line 14: | Line 14: | ||
</script> | </script> | ||
+ | |||
<script type="text/javascript"> | <script type="text/javascript"> | ||
+ | |||
ddaccordion.init({ | ddaccordion.init({ | ||
Line 29: | Line 31: | ||
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='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) | 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", | + | 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 39: | ||
} | } | ||
}) | }) | ||
+ | |||
</script> | </script> | ||
+ | |||
<style type="text/css"> | <style type="text/css"> | ||
Line 114: | Line 118: | ||
<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=" | + | <a class="menuitem submenuheader" href="http://www.dynamicdrive.com/style/" >CSS Examples</a> |
<div class="submenu"> | <div class="submenu"> | ||
<ul> | <ul> | ||
- | <li><a href=" | + | <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> | </ul> | ||
</div> | </div> | ||
- | <a class="menuitem" href=" | + | <a class="menuitem" href="http://www.javascriptkit.com/jsref/">JavaScript Reference</a> |
- | <a class="menuitem" href=" | + | <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"> | ||
<ul> | <ul> | ||
<li><a href="http://www.cssdrive.com">CSS Gallery</a></li> | <li><a href="http://www.cssdrive.com">CSS Gallery</a></li> | ||
- | + | <li><a href="http://www.cssdrive.com/index.php/menudesigns/">Menu Gallery</a></li> | |
+ | <li><a href="http://www.cssdrive.com/index.php/news/">Web Design News</a></li> | ||
+ | <li><a href="http://www.cssdrive.com/index.php/examples/">CSS Examples</a></li> | ||
+ | <li><a href="http://www.cssdrive.com/index.php/main/csscompressor/">CSS Compressor</a></li> | ||
+ | <li><a href="http://www.dynamicdrive.com/forums/forumdisplay.php?f=6">CSS Forums</a></li> | ||
</ul> | </ul> | ||
<img src="http://i27.tinypic.com/sy7295.gif" style="margin: 10px 5px" /> | <img src="http://i27.tinypic.com/sy7295.gif" style="margin: 10px 5px" /> | ||
Line 139: | Line 153: | ||
</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> |
Latest revision as of 09:40, 19 August 2011
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