Team:Imperial College London/Templates/Header

From 2011.igem.org

(Difference between revisions)
 
(10 intermediate revisions not shown)
Line 8: Line 8:
<script type="text/javascript" src="https://2011.igem.org/Team:Imperial_College_London/superfishjs?action=raw&ctype=text/js"></script>  
<script type="text/javascript" src="https://2011.igem.org/Team:Imperial_College_London/superfishjs?action=raw&ctype=text/js"></script>  
-
                <script type="text/javascript" src="https://2011.igem.org/Team:Imperial_College_London/magnifier?action=raw&ctype=text/js">
+
              <script type="text/javascript" src="https://2011.igem.org/Team:Imperial_College_London/magnifier?action=raw&ctype=text/js">
/***********************************************
/***********************************************
* jQuery Image Magnify- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* jQuery Image Magnify- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
Line 19: Line 19:
</script>
</script>
-
 
+
<script>
-
<script>  
+
-
+
$(document).ready(function() {
$(document).ready(function() {
     $("sup").click(function () {
     $("sup").click(function () {
 +
      if ($(this).html().substr(0,1)=="[")
 +
      {
         if ($('.technology').length>0)
         if ($('.technology').length>0)
         {
         {
Line 30: Line 30:
         }
         }
         else window.scrollBy(0,50000)
         else window.scrollBy(0,50000)
 +
      }
     });
     });
     $("sup").mouseover(function () {
     $("sup").mouseover(function () {
-
         if ($(this).html().substr(0,1)=="[") $("sup").css('cursor', 'pointer');
+
         if ($(this).html().substr(0,1)=="[") $(this).css('cursor', 'pointer');
     });
     });
});
});
 +
</script>
 +
<script>
 +
     $(document).ready(function() {  
     $(document).ready(function() {  
         $('ul.sf-menu').superfish({  
         $('ul.sf-menu').superfish({  

Latest revision as of 19:04, 28 October 2011