Team:Imperial College/Templates/Banner
From 2013.igem.org
(Difference between revisions)
Meredityman (Talk | contribs) m |
Meredityman (Talk | contribs) m |
||
Line 2: | Line 2: | ||
<head> | <head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
+ | |||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | ||
- | + | ||
<script> | <script> | ||
- | + | $( document ).ready(function() { | |
- | + | $('#cssmenu ul ul li:odd').addClass('odd'); | |
- | + | $('#cssmenu ul ul li:even').addClass('even'); | |
- | + | $('#cssmenu > ul > li > a').click(function() { | |
- | + | $('#cssmenu li').removeClass('active'); | |
- | + | $(this).closest('li').addClass('active'); | |
- | + | ||
- | + | var checkElement = $(this).next(); | |
- | + | if((checkElement.is('ul')) && (checkElement.is(':visible'))) { | |
- | + | return false; | |
- | + | } | |
- | + | if((checkElement.is('ul')) && (!checkElement.is(':visible'))) { | |
- | + | $('#cssmenu ul ul:visible').slideUp('normal'); | |
- | + | checkElement.slideDown('normal'); | |
- | + | return false; | |
- | + | } | |
+ | }); | ||
+ | }); | ||
<\script> | <\script> | ||
- | |||
- | |||
- | |||
- | |||
<style type="text/css"> | <style type="text/css"> | ||
Line 349: | Line 348: | ||
<body> | <body> | ||
+ | |||
<a name="top"></a> | <a name="top"></a> | ||
<div id='imperiallogo'> | <div id='imperiallogo'> |
Revision as of 18:03, 10 August 2013