Team:Peking/001/001

From 2010.igem.org

(Difference between revisions)
Line 1: Line 1:
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
<html>  
-
<html xmlns="http://www.w3.org/1999/xhtml">
+
<head>  
-
<head>
+
<title>仿yahoo首页特色服务内容切换效果</title>  
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+
<meta http-equiv="content-Type" content="text/html;charset=gb2312">  
-
<title>Sliding Side Bar</title>
+
<!--把下面代码加到<head></head>之间-->  
-
 
+
<style type="text/css">  
-
<style media="all" type="text/css">
+
/* common styling */
-
+
/* Set up the default font and ovrall size to include image */
-
body{
+
body {
-
position:relative;
+
background: #fff;
-
paddign:0px;
+
font-family: "Lucida Grande", Helvetica, Arial, sans-serif;
-
font-size:100%;
+
font-size: 12px;
-
}
+
}
-
+
#tabs {width:400px; text-align:center; background: url(http://www.zzsky.cn/effect/images/top.gif); margin:30px 0 0 175px; position:absolute; z-index:500;}
-
h2{
+
#tabs ul {padding:0; margin:0; width:400px; list-style:none; position:relative;}
-
color:#FFFFFF;
+
#tabs ul li {float:left; display:inline; width:125px; height:53px; margin:0 4px;}
-
font-size:90%;
+
#tabs ul li a.outer {display:block; width:125px; height:49px; border-bottom:1px solid #9c9c9c; text-align:center; line-height:45px; text-decoration:none; text-indent:50px; color:#464; font-weight:bold; margin-bottom:3px; font-size:11px;}
-
font-family:arial;
+
#tabs ul li a.one {background:#fff url(http://www.zzsky.cn/effect/images/world.jpg) top left no-repeat;}
-
margin:10px 10px 10px 10px;
+
#tabs ul li a.two {background:#fff url(http://www.zzsky.cn/effect/images/key.jpg) top left no-repeat;}
-
font-weight:bold;
+
#tabs ul li a.three {background:#fff url(http://www.zzsky.cn/effect/images/mail.jpg) top left no-repeat;}
-
}
+
#tabs ul li a.four {background:#fff url(http://www.zzsky.cn/effect/images/search.jpg) top left no-repeat;}
-
+
#tabs ul li a.five {background:#fff url(http://www.zzsky.cn/effect/images/profile.jpg) top left no-repeat;}
-
h2 span{
+
#tabs ul li a.six {background:#fff url(http://www.zzsky.cn/effect/images/draw.jpg) top left no-repeat;}
-
font-size:105%;
+
#tabs ul li div {display:none;}
-
font-weight:normal;
+
#tabs ul li:hover {padding-bottom:132px; border-bottom:1px solid #fff; color:#000; margin-bottom:0;}
-
}
+
#tabs ul li:hover > a.outer {color:#000; background-position:0 -55px; height:55px; cursor:default;}
-
+
* html #tabs ul li a.outer:hover {padding-bottom:130px; border-bottom:1px solid #fff; height:55px; color:#000; margin-bottom:0;background-position:0 -55px; height:55px; cursor:default;}
-
ul{
+
#tabs ul li:hover div {display:block; padding:5px; position:absolute; left:4px; top:55px; width:381px; height:118px; border-bottom:3px solid #fff;}
-
margin:0px 0px 0px 0px;
+
#tabs ul li a:hover div {display:block; padding:5px; position:absolute; left:4px; top:55px; width:381px; height:118px; border-bottom:3px solid #fff;}
-
padding:0px 0px 0px 0px;
+
#tabs ul li a:hover div.tab_left,
-
}
+
#tabs ul li:hover div.tab_left
-
+
{background:#fff url(http://www.zzsky.cn/effect/images/tab_left.gif);}
-
li{
+
#tabs ul li a:hover div.tab_center,
-
margin:0px 10px 3px 10px;
+
#tabs ul li:hover div.tab_center
-
padding:2px;
+
{background:#fff url(http://www.zzsky.cn/effect/images/tab_center.gif);}
-
list-style-type:none;
+
#tabs ul li a:hover div.tab_right,
-
display:block;
+
#tabs ul li:hover div.tab_right
-
background-color:#DA1074;
+
{background:#fff url(http://www.zzsky.cn/effect/images/tab_right.gif);}
-
width:177px;
+
.clear {clear:both; height:0; line-height:0; overflow:hidden;}
-
}
+
#tabs span.base {display:block; height:20px;font-size:10px; color:#bc8f8f; background:url(http://www.zzsky.cn/effect/images/bottom.gif) bottom;}
-
+
#tabs div h5 {font-size:12px; margin-bottom:5px;}
-
li a{
+
#tabs div p {font-weight:normal; text-align:left; color:#000; margin-top:2px;}
-
width:100%;
+
#tabs div a img {border:0;}
-
}
+
#tabs div img.image {float:left; border:0; margin-top:-35px; margin-right:5px;}
-
+
#tabs div a.unlock {background:url(http://www.zzsky.cn/effect/images/unlock.gif); display:block; width:30px; height:30px; margin:0 auto;}
-
li a:link,
+
#tabs div a:hover.unlock img {visibility:hidden;}
-
li a:visited{
+
#tabs p.bold {color:#069; padding-top:5px;}
-
color:#FFFFFF;
+
* html #tabs p.fire {margin-top:-15px;}
-
font-family:verdana;
+
* html #tabs form {margin-top:-20px;}
-
font-size:70%;
+
#tabs p.buttons {text-align:center;}
-
text-decoration:none;
+
</style>  
-
display:block;
+
</head>
-
margin:0px 0px 0px 0px;
+
<body>
-
padding:0px;
+
<!--把下面代码加到<body>与</body>之间-->
-
width:100%;
+
<div id="tabs">
-
}
+
<p class="bold">Mini tabbed pages - 9th February 2007</p>  
-
+
<ul>
-
li a:hover{
+
<li><a href="#nogo" class="one outer">WORLD<!--[if IE 7]><!--></a><!--<![endif]-->
-
color:#FFFFFF;
+
<!--[if lte IE 6]><table><tr><td><![endif]-->
-
text-decoration:underline;
+
<div class="tab_left">
-
}
+
<h5>World Wide Web</h5>
-
+
<p>This area can hold anything you like<a href="index.html">Main Menu</a>.</p>  
-
#sideBar{
+
</div>
-
position: absolute;
+
<!--[if lte IE 6]></td></tr></table></a><![endif]-->  
-
width: auto;
+
</li>
-
height: auto;
+
<li><a href="#nogo" class="two outer">UNLOCK<!--[if IE 7]><!--></a><!--<![endif]-->  
-
top: 200px;
+
<!--[if lte IE 6]><table><tr><td><![endif]-->
-
right:-7px;
+
<div class="tab_center">  
-
background-image:url(images/background.gif);
+
<h5>Unlock the Secrets</h5>
-
background-position:top left;
+
<a href="http://www.w3.org/Style/CSS/" class="unlock" title="Unlock the secrets of CSS at w3.org"><img src="http://www.zzsky.cn/effect/images/lock.gif" alt="Locked" title="Locked" /></a>  
-
background-repeat:repeat-y;
+
</div>
-
}
+
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
-
+
</li>
-
#sideBarTab{
+
<li><a href="#nogo" class="three outer">MAIL<!--[if IE 7]><!--></a><!--<![endif]-->
-
float:left;
+
<!--[if lte IE 6]><table><tr><td><![endif]-->  
-
height:137px;
+
<div class="tab_right">  
-
width:28px;
+
<h5>Email</h5>  
-
}
+
<p>Maybe a link to your emails or a form asking to login to<a href="http://www.cssplay.co.uk/w3c/contact.html">Contact Page</a>.</p>  
-
+
</div>
-
#sideBarTab img{
+
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
-
border:0px solid #FFFFFF;
+
</li>
-
}
+
</ul>
-
+
<br class="clear" />
-
#sideBarContents{
+
<ul>  
-
overflow:hidden !important;
+
<li><a href="#nogo" class="four outer">SEARCH<!--[if IE 7]><!--></a><!--<![endif]-->
-
}
+
<!--[if lte IE 6]><table><tr><td><![endif]-->
-
+
<div class="tab_left">
-
#sideBarContentsInner{
+
<h5>Search This Site</h5>
-
width:200px;
+
<p>You can add a search form here.</p>
-
}
+
</div>
-
+
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
-
</style>
+
</li>  
-
 
+
<li><a href="#nogo" class="five outer">PROFILE<!--[if IE 7]><!--></a><!--<![endif]-->
-
<script type="text/javascript" src="js/mootools.js"></script>
+
<!--[if lte IE 6]><table><tr><td><![endif]-->
-
<script type="text/javascript" src="js/side-bar.js"></script>
+
<div class="tab_center">
-
 
+
<h5>Your Profile</h5>  
-
</head>
+
<form id="two" action="..." method="post">  
-
 
+
<fieldset id="personal">  
-
<body>
+
    <label for="login">login:</label>
-
 
+
    <input name="login" id="login" type="text" tabindex="1" />
-
<div id="sideBar">
+
</fieldset>
-
+
<p class="buttons">
-
<a href="#" id="sideBarTab"><img src="images/slide-button.gif" alt="sideBar" title="sideBar" /></a>
+
  <input id="button1" type="submit" value="Send" />
-
+
  <input id="button2" type="reset" value="Reset" />
-
<div id="sideBarContents" style="width:0px;">
+
</p>
-
<div id="sideBarContentsInner">
+
</form>
-
<h2>side<span>bar</span></h2>
+
</div>
-
+
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
-
<ul>
+
</li>  
-
<li><a href="#">Link One</a></li>
+
<li><a href="#nogo" class="six outer">DRAW<!--[if IE 7]><!--></a><!--<![endif]-->  
-
<li><a href="#">Link Two</a></li>
+
<!--[if lte IE 6]><table><tr><td><![endif]-->
-
<li><a href="#">Link Three</a></li>
+
<div class="tab_right">
-
<li><a href="#">Link Four</a></li>
+
<h5>Learn how to Draw</h5>
-
<li><a href="#">Link Five</a></li>
+
<a href="http://www.adobe.com/products/fireworks/"><img class="image" src="http://www.zzsky.cn/effect/images/fireworks.gif" alt="Adobe Fireworks 8" title="Adobe Firerworks 8" /></a>  
-
</ul>
+
<p class="fire">Get top-quality design results.</p>  
-
+
</div>  
-
</div>
+
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
-
</div>
+
</li>  
-
+
</ul>  
-
</div>
+
<br class="clear" />
-
 
+
<span class="base">All rights reserved</span>  
-
</body>
+
</div>
 +
</body>  
</html>
</html>

Revision as of 07:06, 11 April 2011

仿yahoo首页特色服务内容切换效果

Mini tabbed pages - 9th February 2007


  • SEARCH
    Search This Site

    You can add a search form here.

  • PROFILE
    Your Profile

  • DRAW
    Learn how to Draw
    Adobe Fireworks 8

    Get top-quality design results.


All rights reserved