|
|
Line 3: |
Line 3: |
| | | |
| <html> | | <html> |
- | | + | <head> |
- | <!--main content --> | + | <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> |
- | | + | <title>无标题文档</title> |
- | <p> | + | |
- | | + | |
- | <style type="text/css">
| + | |
- | /* 全局样式 */
| + | |
- | *{padding:0; margin:0; list-style:none}
| + | |
- | .roundabout-holder { margin: 70px auto 0px auto; width: 850px; height: 496px; }
| + | |
- | .roundabout-moveable-item { border-radius: 4px; border: 3px solid rgba(0, 0, 0, 0.08); width: 646px; height: 416px; cursor: pointer; -moz-border-radius: 4px; -webkit-border-radius: 4px; }
| + | |
- | .roundabout-moveable-item img { width: 100%; }
| + | |
- | .roundabout-in-focus { border: 3px solid rgba(0, 0, 0, 0.2); }
| + | |
- | </style>
| + | |
- | <script type="text/javascript" src="https://2014.igem.org/Team:SJTU-Software/jm.js%20?action=raw&ctype=text/js"></script>
| + | |
- | | + | |
- | <style type=“text/css”> | + | |
- | body {background: purple url(https://static.igem.org/mediawiki/2014/d/da/Han_bg.jpg); ? <br>background-attachment:fixed
| + | |
- | </style> | + | |
- | | + | |
| <style type="text/css"> | | <style type="text/css"> |
- | .firstHeading {
| + | body{ |
- | width: 0px;
| + | background-color:white; |
- | height: 0px;
| + | font-size:12px; |
- | margin: -38px auto;
| + | font-family:Arial, Helvetica, sans-serif; |
- | padding-top: 0px;
| + | margin:0px; |
- | margin-bottom: 0px;
| + | padding:0px; |
- | font-family: Georgia, Times, "Times New Roman", serif;
| + | color:white; |
| + | } |
| + | ul,li{ |
| + | margin:0px; |
| + | padding:0px; |
| + | } |
| + | li{ |
| + | display:inline; |
| + | list-style:none; |
| + | list-style-position:outside; |
| + | text-align:center; |
| + | font-weight:bold; |
| + | float:left; |
| + | } |
| + | a:link{ |
| + | color:#336601; |
| + | text-decoration:none; |
| + | float:left; |
| + | width:100px; |
| + | padding:3px 5px 0px 5px; |
| + | } |
| + | a:visited{ |
| + | color:#336601; |
| + | text-decoration:none; |
| + | float:left; |
| + | padding:3px 5px 0px 5px; |
| + | width:100px; |
| + | } |
| + | a:hover{ |
| + | color:white; |
| + | float:left; |
| + | padding:3px 3px 0px 20px; |
| + | width:88px; |
| + | text-decoration:none; |
| + | background-color:#539D26; |
| + | } |
| + | a:active{ |
| + | color:white; |
| + | float:left; |
| + | padding:3px 3px 0px 20px; |
| + | width:88px; |
| + | text-decoration:none; |
| + | background-color:#BD06B4; |
| + | } |
| + | #nav{ |
| + | width:600px; |
| + | height:30px; |
| + | border-bottom:0px; |
| + | padding:0px 5px; |
| + | position:absolute; |
| + | z-index:1; |
| + | left: 198px; |
| + | top: 25px; |
| + | } |
| + | .list{ |
| + | line-height:20px; |
| + | text-align:left; |
| + | padding:4px; |
| + | font-weight:normal; |
| + | } |
| + | .menu1{ |
| + | width:120px; |
| + | height:auto; |
| + | margin:6px 4px 0px 0px; |
| + | border:1px solid #9CDD75; |
| + | background-color:#F1FBEC; |
| + | color:#336601; |
| + | padding:6px 0px 0px 0px; |
| + | cursor:hand; |
| + | overflow-y:hidden; |
| + | filter:Alpha(opacity=70); |
| + | -moz-opacity:0.7; |
| + | } |
| + | .menu2{ |
| + | width:120px; |
| + | height:18px; |
| + | margin:6px 4px 0px 0px; |
| + | background-color:#F5F5F5; |
| + | color:#999900; |
| + | border:1px solid #EEE8DD; |
| + | padding:6px 0px 0px 0px; |
| + | overflow-y:hidden; |
| + | cursor:hand; |
| } | | } |
- |
| |
- |
| |
| </style> | | </style> |
- | <title>Slide Down Box Menu with jQuery and CSS3</title>
| + | </head> |
- | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
| + | |
- | <meta name="description" content="Slide Down Box Menu with jQuery and CSS3" />
| + | |
- | <meta name="keywords" content="jquery, css3, sliding, box, menu, cube, navigation, portfolio, thumbnails"/>
| + | |
- | <link rel="shortcut icon" href="../favicon.ico" type="image/x-icon"/>
| + | |
- | <link rel="stylesheet" href="https://2014.igem.org/Team:SJTU-Software/bootstrapmin.css%20?action=raw&ctype=text/css" type="text/css" media="screen"/>
| + | |
- | <style>
| + | |
- | body{
| + | |
- | background:#333 url(https://static.igem.org/mediawiki/2014/9/98/Bg.jpg)repeat top left ;
| + | |
- | font-family:Arial;
| + | |
- | }
| + | |
- | span.reference{
| + | |
- | position:fixed;
| + | |
- | left:10px;
| + | |
- | bottom:10px;
| + | |
- | font-size:12px;
| + | |
- | }
| + | |
- | span.reference a{
| + | |
- | color:#aaa;
| + | |
- | text-transform:uppercase;
| + | |
- | text-decoration:none;
| + | |
- | text-shadow:1px 1px 1px #000;
| + | |
- | margin-right:30px;
| + | |
- | }
| + | |
- | span.reference a:hover{
| + | |
- | color:#ddd;
| + | |
- | }
| + | |
- | ul.sdt_menu{
| + | |
- | margin-top:0px;
| + | |
- |
| + | |
- | }
| + | |
- | h1.title{
| + | |
- | text-indent:-9000px;
| + | |
- | background:transparent url(title.png) no-repeat top left;
| + | |
- | width:633px;
| + | |
- | height:69px;
| + | |
- | }
| + | |
- | </style>
| + | |
- | </p>
| + | |
- | | + | |
- | <script src="http://cdn.bootcss.com/jquery/1.10.2/jquery.min.js"></script>
| + | |
- | <script src="http://cdn.bootcss.com/twitter-bootstrap/3.0.2/js/bootstrap.min.js"></script>
| + | |
- | <link rel="stylesheet" href="http://cdn.bootcss.com/twitter-bootstrap/3.0.2/css/bootstrap.min.css">
| + | |
- |
| + | |
- | | + | |
- | <!--<body style="background-image:url(https://static.igem.org/mediawiki/2014/6/67/Background2.jpg);background-position:center; background-repeat:repeat-y repeat-x">-->
| + | |
- | | + | |
- | | + | |
- | <table width="70%" align="center">
| + | |
- | | + | |
- | | + | |
- | | + | |
- | <!--navigation menu -->
| + | |
- | | + | |
- | | + | |
- | <div class="content" align="center" >
| + | |
- | | + | |
- | <img src="https://static.igem.org/mediawiki/2014/7/79/Han_without.jpg"; height=90px; width=1020px>
| + | |
| | | |
| + | <body> |
| + | <div id="nav"> |
| + | <ul> |
| + | <li class="menu2" onMouseOver="this.className='menu1'" onMouseOut="this.className='menu2'">我的首页 |
| + | <div class="list"> |
| + | <a href="#">我爱CSS</a><br /> |
| + | <a href="#">我的首页</a><br /> |
| + | <a href="#">我的日志</a><br /> |
| + | <a href="#">我的日志</a><br /> |
| + | <a href="#">我的相册</a><br /> |
| + | <a href="#">我的收藏</a><br /> |
| + | </div> |
| + | </li> |
| + | <li class="menu2" onMouseOver="this.className='menu1'" onMouseOut="this.className='menu2'">社区圈子 |
| + | <div class="list"> |
| + | <a href="#">我爱CSS</a><br /> |
| + | <a href="#">我的首页</a><br /> |
| + | <a href="#">我的日志</a><br /> |
| + | <a href="#">我的相册</a><br /> |
| + | <a href="#">我的收藏</a><br /> |
| + | </div> |
| + | </li> |
| + | <li class="menu2" onMouseOver="this.className='menu1'" onMouseOut="this.className='menu2'">我的短信 |
| + | <div class="list"> |
| + | <a href="#">我爱CSS</a><br /> |
| + | <a href="#">我的相册</a><br /> |
| + | <a href="#">我的收藏</a><br /> |
| + | </div> |
| + | </li> |
| + | <li class="menu2" onMouseOver="this.className='menu1'" onMouseOut="this.className='menu2'">账户管理 |
| + | <div class="list"> |
| + | <a href="#">我爱CSS</a><br /> |
| + | <a href="#">我的首页</a><br /> |
| + | <a href="#">我的日志</a><br /> |
| + | <a href="#">我的相册</a><br /> |
| + | <a href="#">我的收藏</a><br /> |
| + | <a href="#">我的日志</a><br /> |
| + | <a href="#">我的相册</a><br /> |
| + | <a href="#">我的收藏</a><br /> |
| + | </div> |
| + | </li> |
| + | </ul> |
| </div> | | </div> |
- | | + | </body> |
- | | + | </html> |
- | <div class="content" align="center" style=" position:relative; z-index:2;"> | + | |
- |
| + | |
- | <ul id="sdt_menu" class="sdt_menu">
| + | |
- | <li>
| + | |
- | <a href="https://2014.igem.org/Team:SJTU-Software2/test">
| + | |
- | <img src="https://static.igem.org/mediawiki/2014/b/bd/Test.jpg" alt=""/>
| + | |
- | <span class="sdt_active"></span>
| + | |
- | <span class="sdt_wrap">
| + | |
- | <span class="sdt_link">Home</span>
| + | |
- | <span class="sdt_descr">Get to Our Project</span>
| + | |
- | </span>
| + | |
- | </a>
| + | |
- | </li>
| + | |
- | <li>
| + | |
- | <a href="https://2014.igem.org/Team:SJTU-Software/Project">
| + | |
- | <img src="https://static.igem.org/mediawiki/2014/b/bd/Test.jpg" alt=""/>
| + | |
- | <span class="sdt_active"></span>
| + | |
- | <span class="sdt_wrap">
| + | |
- | <span class="sdt_link">Software</span>
| + | |
- | <span class="sdt_descr">Our work</span>
| + | |
- | </span>
| + | |
- | </a>
| + | |
- | <div class="sdt_box" style=" position:relative; z-index:1;">
| + | |
- | <a href="#">OverView</a>
| + | |
- | <a href="#">Design</a>
| + | |
- | <a href="#">Upload</a>
| + | |
- | </div>
| + | |
- | </li>
| + | |
- | <li>
| + | |
- | <a href="https://2014.igem.org/Team:SJTU-Software/Team">
| + | |
- | <img src="https://static.igem.org/mediawiki/2014/b/bd/Test.jpg" alt=""/>
| + | |
- | <span class="sdt_active"></span>
| + | |
- | <span class="sdt_wrap">
| + | |
- | <span class="sdt_link">Team</span>
| + | |
- | <span class="sdt_descr">Our strong team</span>
| + | |
- | </span>
| + | |
- | </a>
| + | |
- | </li>
| + | |
- | <li>
| + | |
- | <a href="#">
| + | |
- | <img src="https://static.igem.org/mediawiki/2014/b/bd/Test.jpg" alt=""/>
| + | |
- | <span class="sdt_active"></span>
| + | |
- | <span class="sdt_wrap">
| + | |
- | <span class="sdt_link">Document</span>
| + | |
- | <span class="sdt_descr">Some Introduction</span>
| + | |
- | </span>
| + | |
- | </a>
| + | |
- | </li>
| + | |
- | <li>
| + | |
- | <a href="#">
| + | |
- | <img src="https://static.igem.org/mediawiki/2014/b/bd/Test.jpg" alt=""/>
| + | |
- | <span class="sdt_active"></span>
| + | |
- | <span class="sdt_wrap">
| + | |
- | <span class="sdt_link">Demo</span>
| + | |
- | <span class="sdt_descr">I like Hp</span>
| + | |
- | </span>
| + | |
- | </a>
| + | |
- | </li>
| + | |
- | <li>
| + | |
- | <a href="#">
| + | |
- | <img src="https://static.igem.org/mediawiki/2014/b/bd/Test.jpg" alt=""/>
| + | |
- | <span class="sdt_active"></span>
| + | |
- | <span class="sdt_wrap">
| + | |
- | <span class="sdt_link">Requirement</span>
| + | |
- | <span class="sdt_descr">Some Requirement</span>
| + | |
- | </span>
| + | |
- | </a>
| + | |
- | <div class="sdt_box" style=" position:relative; z-index:1;">
| + | |
- | <a href="https://2014.igem.org/Team:SJTU-Software/Notebook">Notebook</a>
| + | |
- | <a href="https://2014.igem.org/Team:SJTU-Software/Safety">Safety</a>
| + | |
- | <a href="https://2014.igem.org/Team:SJTU-Software/Attributions">Attributions</a>
| + | |
- | </div>
| + | |
- | </li>
| + | |
- | </ul>
| + | |
- | </div>
| + | |
- |
| + | |
- | | + | |
- | <div class="container" style=" position:relative; z-index:0;">
| + | |
- | <ul id="myRoundabout">
| + | |
- | <li><img src="https://static.igem.org/mediawiki/2014/9/9b/Han_trans.jpg"></li>
| + | |
- | <li><img src="https://static.igem.org/mediawiki/2014/9/9b/Han_trans.jpg"></li>
| + | |
- | <li><img src="https://static.igem.org/mediawiki/2014/9/9b/Han_trans.jpg"></li>
| + | |
- | <li><img src="https://static.igem.org/mediawiki/2014/9/9b/Han_trans.jpg"></li>
| + | |
- | <li><img src="https://static.igem.org/mediawiki/2014/9/9b/Han_trans.jpg"></li>
| + | |
- | </ul>
| + | |
- | </div>
| + | |
- | <script type="text/javascript" src="https://2014.igem.org/Team:SJTU-Software/ra.js%20?action=raw&ctype=text/js"></script>
| + | |
- | <script type="text/javascript" src="https://2014.igem.org/Team:SJTU-Software/ras.js%20?action=raw&ctype=text/js"></script>
| + | |
- | <script type="text/javascript" src="https://2014.igem.org/Team:SJTU-Software/gi.js%20?action=raw&ctype=text/js"></script>
| + | |
- | <script type="text/javascript"> Cufon.now(); </script>
| + | |
- |
| + | |
- |
| + | |
- | <script type="text/javascript" src="https://2014.igem.org/Team:SJTU-Software/jquery.js%20?action=raw&ctype=text/js"></script>
| + | |
- | <script type="text/javascript">
| + | |
- | $(function() {
| + | |
- | /**
| + | |
- | * for each menu element, on mouseenter,
| + | |
- | * we enlarge the image, and show both sdt_active span and
| + | |
- | * sdt_wrap span. If the element has a sub menu (sdt_box),
| + | |
- | * then we slide it - if the element is the last one in the menu
| + | |
- | * we slide it to the left, otherwise to the right
| + | |
- | */
| + | |
- | $('#sdt_menu > li').bind('mouseenter',function(){
| + | |
- | var $elem = $(this);
| + | |
- | $elem.find('img')
| + | |
- | .stop(true)
| + | |
- | .animate({
| + | |
- | 'width':'170px',
| + | |
- | 'height':'170px',
| + | |
- | 'left':'0px'
| + | |
- | },400,'easeOutBack')
| + | |
- | .andSelf()
| + | |
- | .find('.sdt_wrap')
| + | |
- | .stop(true)
| + | |
- | .animate({'top':'140px'},500,'easeOutBack')
| + | |
- | .andSelf()
| + | |
- | .find('.sdt_active')
| + | |
- | .stop(true)
| + | |
- | .animate({'height':'170px'},300,function(){
| + | |
- | var $sub_menu = $elem.find('.sdt_box');
| + | |
- | if($sub_menu.length){
| + | |
- | var left = '170px';
| + | |
- | if($elem.parent().children().length == $elem.index()+1)
| + | |
- | left = '-170px';
| + | |
- | $sub_menu.show().animate({'left':left},200);
| + | |
- | }
| + | |
- | });
| + | |
- | }).bind('mouseleave',function(){
| + | |
- | var $elem = $(this);
| + | |
- | var $sub_menu = $elem.find('.sdt_box');
| + | |
- | if($sub_menu.length)
| + | |
- | $sub_menu.hide().css('left','0px');
| + | |
- |
| + | |
- | $elem.find('.sdt_active')
| + | |
- | .stop(true)
| + | |
- | .animate({'height':'0px'},300)
| + | |
- | .andSelf().find('img')
| + | |
- | .stop(true)
| + | |
- | .animate({
| + | |
- | 'width':'0px',
| + | |
- | 'height':'0px',
| + | |
- | 'left':'85px'},400)
| + | |
- | .andSelf()
| + | |
- | .find('.sdt_wrap')
| + | |
- | .stop(true)
| + | |
- | .animate({'top':'25px'},500);
| + | |
- | });
| + | |
- | });
| + | |
- | </script>
| + | |
- | | + | |
- | </table> | + | |