|
|
Line 42: |
Line 42: |
| | class="left" | [[Team:NYMU-Taipei/Team | About Us]] | | | class="left" | [[Team:NYMU-Taipei/Team | About Us]] |
| |} | | |} |
- |
| |
- | <html><div class="menus"></html>
| |
- | {| border=1 class="navsmall exp" style="position:absolute;"
| |
- | |-
| |
- | | Experiments
| |
- | |-
| |
- | | Parts
| |
- | |}
| |
- | <html></div></html>
| |
- |
| |
- | <html><script>
| |
- | $(document).ready(function(){
| |
- | $("#nav td").mouseover(function(){
| |
- | $(this).stop();
| |
- | //$(this).animate({fontSize:"400%"},500);
| |
- |
| |
- | //animate a submenu if one exists.
| |
- | menu=$(this).attr("class");
| |
- | if(menu.indexOf(" ")!=-1) menu=menu.substring(menu.lastIndexOf(" ")+1);
| |
- | $(".menus ."+menu).stop();
| |
- | var offset=$(this).offset();
| |
- | //var offset2=$(".menus ."+menu).offset();
| |
- | $(".menus ."+menu).offset({left:offset.left});
| |
- | $(".menus ."+menu).css("background","green");
| |
- | $(".menus ."+menu).animate({height:200},"slow");
| |
- | //$(".menus ."+menu).show(50);
| |
- | //$(".menus ."+menu).slideDown("slow");
| |
- | });
| |
- | $("#nav td").mouseout(function(){
| |
- | $(this).stop();
| |
- | $(this).animate({fontSize:"100%"},"fast");
| |
- | //$(".navsmall").stop();
| |
- | //$(".navsmall").slideUp("slow");
| |
- |
| |
- | //animate a submenu if one exists.
| |
- | menu=$(this).attr("class");
| |
- | if(menu.indexOf(" ")!=-1) menu=menu.substring(menu.lastIndexOf(" ")+1);
| |
- | $(".menus ."+menu).stop();
| |
- | $(".menus ."+menu).css("background","red");
| |
- | $(".menus ."+menu).animate({height:0},"slow");
| |
- | //$(".menus ."+menu).slideUp("slow");
| |
- | //$(".menus ."+menu).hide(50);
| |
- | });
| |
- | });
| |
- |
| |
- | </script></html>
| |