Template:Kyoto Foreground

From 2011.igem.org

(Difference between revisions)
(Created page with "<html> <style> #content { color:#00DDDD; width:965px; background-color:#555555; } #header { position:relative; margin-top:-100px; top:10px; left:0px; height:67px; width:975px; } ...")
m
 
(139 intermediate revisions not shown)
Line 1: Line 1:
<html>
<html>
<style>
<style>
 +
 +
p {
 +
margin: 0px;
 +
}
 +
 +
#globalWrapper {
 +
margin: 0px auto;
 +
padding: 0px;
 +
width: 975px;
 +
}
 +
#content {
#content {
-
color:#00DDDD;
+
color:#000000;
-
width:965px;
+
min-height: 600px;
-
background-color:#555555;
+
width:773px;
 +
padding: 5px 25px;
 +
margin: 0px;
 +
float: right;
}
}
 +
 +
#contentSub {
 +
height: 0px;
 +
margin: 0px;
 +
display: none;
 +
}
 +
 +
#footer-box {
 +
width: 813px;
 +
float: right;
 +
}
 +
 +
/******* FOREGROUND *******/
 +
#foreground{
 +
position: fixed;
 +
z-index: 10;
 +
right: 50%;
 +
top:0px;
 +
height: 100%;
 +
}
 +
 +
/******* header *******/
 +
#top-section {
 +
height: 0px;
 +
width: 825px;
 +
top: 0px;
 +
margin: 0px;
 +
padding: 0px;
 +
border: 0px;
 +
float: right;
 +
}
 +
 +
#p-logo {
 +
display: none;
 +
}
 +
#header {
#header {
-
position:relative;
+
top: 0px;  padding: 5px;
-
margin-top:-100px;
+
margin: -5px auto auto -26px;
-
top:10px;
+
height: 154px;   width: 815px;
-
left:0px;
+
border-bottom: 1px solid #000000;
-
height:67px;
+
background-color: #aaccaa;
-
width:975px;
+
}
}
-
#image a{
+
.top_panel {
-
     display:block;
+
    background-color: #000000;
-
     float:left;
+
}
-
     width:105px;
+
.top_panel * {
-
     color:#DDDDDD;
+
     margin: 0px !important;
-
     background:url(https://static.igem.org/mediawiki/2011/f/f0/Kyoto_MenuButton0.png) no-repeat;
+
}
-
     line-height:30px;
+
.top_panel a img {
-
     text-align:center;
+
     float: right;
 +
}
 +
 
 +
.e_coli * { margin: 0px !important }
 +
.e_coli img { width: 100% }
 +
 
 +
/******* GALLERY *******/
 +
#gallery {
 +
    position: absolute;
 +
     width: 815px !important;
 +
     height: 154px !important;
 +
    padding: 0px;
 +
    overflow : hidden;
 +
    background-color: #ffffff;
 +
}
 +
 
 +
#gallery_base {
 +
    position: absolute;
 +
    width: 100%;
 +
    height: 100%;
 +
    padding:0px;
 +
    margin: 0px;
 +
}
 +
 
 +
.gallery_panel {
 +
    position: absolute;
 +
    width: 100%;
 +
    height: 100%;
 +
    margin: 0px;
 +
    padding: 0px;
 +
}
 +
 
 +
.gallery_panel * {
 +
    margin: 10px;
 +
}
 +
 
 +
.red {
 +
    color: #00ffff;
 +
     background-color: #aa0000;
 +
}
 +
 
 +
/******** MENU ********/
 +
#menu {
 +
position: absolute;
 +
margin-left: -488px;
 +
margin-top: 0px;
 +
height: 100%;
 +
width: 136px;
 +
padding: 5px;
 +
font-family: 'Arial';
 +
background-color: #bbbbbb;
 +
border: 2px solid #999999;
 +
}
 +
 
 +
#menu li {
 +
display: block;
 +
list-style-type: none;
 +
}
 +
 
 +
#menu li ul {
 +
margin: 0px;
 +
padding: 0px;
 +
}
 +
 
 +
#menu li a, .menu-header {
 +
display:block;
 +
width:132px;
 +
color:#000000;
 +
background-color: #ffffff;
 +
border: 2px solid #000000;
 +
line-height:30px;
 +
text-align:center;
 +
}
 +
 
 +
#menu li ul li a {
 +
background-color: #000000;
 +
border: 2px solid #ffffff;
 +
color: #ffffff;
 +
}
 +
 
 +
</style>
 +
 
 +
<div id="header">
 +
    <div id="gallery">
 +
        <div id="gallery_base">
 +
            <div class="gallery_panel top_panel">
 +
                <a href="https://2011.igem.org/Team:Kyoto" title="return to main page.">
 +
                    <img src="https://static.igem.org/mediawiki/2011/9/9f/Light_beiz.jp_M31367.jpg">
 +
                </a>
 +
            </div>
 +
            <div class="gallery_panel e_coli">
 +
                <a href="https://2011.igem.org/Team:Kyoto" title="return to main page.">
 +
                    <img src="https://static.igem.org/mediawiki/2011/b/bd/Head_gallery1.jpeg">
 +
                </a>
 +
            </div>
 +
            <div class="gallery_panel e_coli">
 +
                <a href="https://2011.igem.org/Team:Kyoto" title="return to main page.">
 +
                    <img src="https://static.igem.org/mediawiki/2011/8/88/Head_gallery2.jpeg">
 +
                </a>
 +
            </div>
 +
            <div class="gallery_panel e_coli">
 +
                <a href="https://2011.igem.org/Team:Kyoto" title="return to main page.">
 +
                    <img src="https://static.igem.org/mediawiki/2011/5/5e/Head_gallery3.jpeg">
 +
                </a>
 +
            </div>
 +
            <div class="gallery_panel e_coli">
 +
                <a href="https://2011.igem.org/Team:Kyoto" title="return to main page.">
 +
                    <img src="https://static.igem.org/mediawiki/2011/2/2d/Head_gallery4.jpeg">
 +
                </a>
 +
            </div>
 +
            <div class="gallery_panel e_coli">
 +
                <a href="https://2011.igem.org/Team:Kyoto" title="return to main page.">
 +
                    <img src="https://static.igem.org/mediawiki/2011/0/0d/Head_gallery5.jpeg">
 +
                </a>
 +
            </div>
 +
        </div>
 +
    </div>
 +
</div>
 +
<!-- end header -->
 +
 
 +
<div id ="foreground">
 +
 
 +
<ul id ="menu">
 +
    <li><img src="https://static.igem.org/mediawiki/2011/3/37/KyotoLogo.png" style="width:100%; padding-bottom: 10px;"></li>
 +
     <li><a class="menu-header home" href="https://2011.igem.org/Team:Kyoto">Home</a></li>
 +
     <li><span class="menu-header project">Project</span>
 +
        <ul>
 +
            <li><a href="https://2011.igem.org/Team:Kyoto/Hunger">Hunger</a></li>
 +
            <li><a href="https://2011.igem.org/Team:Kyoto/Hunger/Modeling">Hunger Modeling</a></li>
 +
            <li><a href="https://2011.igem.org/Team:Kyoto/Capture">Capture</a></li>
 +
            <li><a href="https://2011.igem.org/Team:Kyoto/Digestion">Digestion</a></li>
 +
            <li><a href="https://2011.igem.org/Team:Kyoto/Digestion/Modeling">Digestion Modeling</a></li>
 +
        </ul>
 +
    </li>
 +
    <li><span class="menu-header consideration">Consideration</span>
 +
        <ul>
 +
            <li><a href="https://2011.igem.org/Team:Kyoto/Safety">Safety</a></li>
 +
            <li><a href="https://2011.igem.org/Team:Kyoto/HumanPractice">Human Practice</a></li>
 +
        </ul>
 +
    </li>
 +
    <li><span class="menu-header method">Method</span>
 +
        <ul>
 +
            <li><a href="https://2011.igem.org/Team:Kyoto/Parts">Parts</a></li>
 +
            <li><a href="https://2011.igem.org/Team:Kyoto/Protocol">Protocol</a></li>
 +
            <li><a href="https://2011.igem.org/Team:Kyoto/Material">Material</a></li>
 +
        </ul>
 +
    </li>
 +
    <li><a class="menu-header team" href="https://2011.igem.org/Team:Kyoto/Team">Team</a></li>
 +
    <li><span class="menu-header notebook">Notebook</span>
 +
        <ul>
 +
            <li><a href="https://2011.igem.org/Team:Kyoto/Lab Work">Lab Work</a></li>
 +
            <li><a href="https://2011.igem.org/Team:Kyoto/Diary">Diary</a></li>
 +
        </ul>
 +
    </li>
 +
    <li><a class="menu-header acknowledgement" href="https://2011.igem.org/Team:Kyoto/Acknowledgement">Acknowledgement</a></li>
 +
    <li><a class="menu-header criteria" href="https://2011.igem.org/Team:Kyoto/Criteria">Criteria</a></li>
 +
</ul>
 +
<!-- end menu -->
 +
</div>
 +
<!-- end foreground -->
 +
 
 +
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
 +
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
 +
<script type="text/javascript">
 +
$("#menu").accordion({
 +
  header: ".menu-header",
 +
  autoHeight: false,
 +
  event: "mouseover",
 +
  active:$(".</html>{{{active_page|home}}}<html>")
 +
});
 +
function init() {
 +
    var panels = $(".gallery_panel");
 +
    var c = panels.first();
 +
    var left = 0;
 +
    for (var i = 0; i < panels.length; i++) {
 +
        c.css("left",left+"px");
 +
        left += c.outerWidth();
 +
        c = c.next();
     }
     }
-
#image a:active{
+
}
-
     background:url(https://static.igem.org/mediawiki/2011/f/f8/Kyoto_MenuButton1.png) no-repeat;
+
 
 +
function change(change_time, delay_time) {
 +
    var c = $(".gallery_panel").first();
 +
    gallery_unit(c,0, change_time, delay_time);
 +
}
 +
 
 +
function gallery_unit(c, left, change_time, delay_time) {
 +
    var b = $("#gallery_base");
 +
    b.animate({
 +
        left : left + "px"
 +
    },change_time,function() {
 +
     }).delay(delay_time);
 +
    left -= c.outerWidth();
 +
    c = c.next(".gallery_panel");
 +
    if (!c.is(".gallery_panel")) {
 +
        c = $(".gallery_panel").first();
 +
        left = 0;
     }
     }
-
</style>
+
    gallery_unit(c, left,change_time,delay_time);
-
<div id="header" align="center">
+
}
-
<div id ="image"><a href="https://2011.igem.org/Team:Kyoto">Home</a></div>
+
$(document).ready(function() {
-
<div id ="image"><a href="https://2011.igem.org/Team:Kyoto/Team">Team</a></div>
+
init();
-
<div id ="image"><a href="https://2011.igem.org/Team:Kyoto/Project">Project</a></div>
+
change(800,5000);
-
<div id ="image"><a href="https://2011.igem.org/Team:Kyoto/Parts">Parts</a></div>
+
});
-
<div id ="image"><a href="https://2011.igem.org/Team:Kyoto/Notebook">Lab Note</a></div>
+
</script>
-
<div id ="image"><a href="https://2011.igem.org/Team:Kyoto/Safety">Safety</a></div>
+
-
<div id ="image"><a>Human Practice</a></div>
+
-
<div id ="image"><a>Acknowledgement</a></div>
+
-
</div><br><br><br><br>
+
</html>
</html>

Latest revision as of 21:20, 5 October 2011