Template:Tempalte:HIT-Harbin
From 2012.igem.org
(Difference between revisions)
Line 161: | Line 161: | ||
</head> | </head> | ||
<body> | <body> | ||
- | |||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script> | <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script> | ||
+ | <script type="text/javascript"> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
(function($) { | (function($) { | ||
$.fn.easySlider = function(options) { | $.fn.easySlider = function(options) { | ||
Line 365: | Line 341: | ||
}; | }; | ||
})(jQuery); | })(jQuery); | ||
+ | |||
+ | $(document).ready(function(){ | ||
+ | $("#slider").easySlider({ | ||
+ | auto: false, continuous: true, | ||
+ | numeric: true | ||
+ | }); | ||
+ | }); | ||
</script> | </script> | ||
- | < | + | <script type="text/javascript"> |
+ | sfHover = function() { | ||
+ | var sfEls = document.getElementById("nav2").getElementsByTagName("LI"); | ||
+ | for (var i=0; i<sfEls.length; i++) { | ||
+ | sfEls[i].onmouseover=function() { | ||
+ | this.className+=" sfhover"; | ||
+ | } | ||
+ | sfEls[i].onmouseout=function() { | ||
+ | this.className=this.className.replace(new RegExp(" sfhover\\b"), ""); | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | if (window.attachEvent) window.attachEvent("onload", sfHover); | ||
+ | </script> | ||
<div id="header"> | <div id="header"> | ||
<div class="logo-area"> | <div class="logo-area"> |
Revision as of 05:13, 24 September 2012