User:Lytao/1

From 2011.igem.org

< User:Lytao(Difference between revisions)
(Created page with "<html> <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(fun...")
 
(36 intermediate revisions not shown)
Line 1: Line 1:
 +
{{Team:USTC-China/temp}}
 +
{{Team:USTC-China/temp2}}
<html>
<html>
<head>
<head>
-
 
+
<meta http-equiv="Refresh"
-
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>
+
content="9;url=https://2011.igem.org/Team:USTC-China/Project/application">
-
<script type="text/javascript">
+
-
 
+
-
$(document).ready(function() {
+
-
 
+
-
//Set Default State of each portfolio piece
+
-
$(".paging").show();
+
-
$(".paging a:first").addClass("active");
+
-
+
-
//Get size of images, how many there are, then determin the size of the image reel.
+
-
var imageWidth = $(".window").width();
+
-
var imageSum = $(".image_reel img").size();
+
-
var imageReelWidth = imageWidth * imageSum;
+
-
+
-
//Adjust the image reel to its new size
+
-
$(".image_reel").css({'width' : imageReelWidth});
+
-
+
-
//Paging + Slider Function
+
-
rotate = function(){
+
-
var triggerID = $active.attr("rel") - 1; //Get number of times to slide
+
-
var image_reelPosition = triggerID * imageWidth; //Determines the distance the image reel needs to slide
+
-
 
+
-
$(".paging a").removeClass('active'); //Remove all active class
+
-
$active.addClass('active'); //Add active class (the $active is declared in the rotateSwitch function)
+
-
+
-
//Slider Animation
+
-
$(".image_reel").animate({
+
-
left: -image_reelPosition
+
-
}, 500 );
+
-
+
-
};
+
-
+
-
//Rotation + Timing Event
+
-
rotateSwitch = function(){
+
-
play = setInterval(function(){ //Set timer - this will repeat itself every 3 seconds
+
-
$active = $('.paging a.active').next();
+
-
if ( $active.length === 0) { //If paging reaches the end...
+
-
$active = $('.paging a:first'); //go back to first
+
-
}
+
-
rotate(); //Trigger the paging and slider function
+
-
}, 4000); //Timer speed in milliseconds
+
-
};
+
-
+
-
rotateSwitch(); //Run function on launch
+
-
+
-
//On Hover
+
-
$(".image_reel a").hover(function() {
+
-
clearInterval(play); //Stop the rotation
+
-
}, function() {
+
-
rotateSwitch(); //Resume rotation
+
-
});
+
-
+
-
//On Click
+
-
$(".paging a").click(function() {
+
-
$active = $(this); //Activate the clicked paging
+
-
//Reset Timer
+
-
clearInterval(play); //Stop the rotation
+
-
rotate(); //Trigger rotation immediately
+
-
rotateSwitch(); // Resume rotation
+
-
return false; //Prevent browser jump to link anchor
+
-
});
+
-
+
-
});
+
-
</script>
+
-
 
+
-
<style type="text/css">
+
-
 
+
-
body {
+
-
background-color: #f4f4f4 /*#aaa*/;
+
-
font-family: Lucida Grande, Verdana, Arial, sans-serif;
+
-
text-align: justify;
+
-
}
+
-
 
+
-
#social {
+
-
float: right;
+
-
margin-top: -50px;
+
-
}
+
-
 
+
-
#top-section {
+
-
    border-left: 0px solid #00ff00;
+
-
    border-right: 0px solid #00ff00;
+
-
}
+
-
 
+
-
#content {
+
-
border-left: 0px solid #00ff00;
+
-
border-right: 0px solid #00ff00;
+
-
}
+
-
 
+
-
lh {
+
-
font-weight: bold;
+
-
font-size: 110%;
+
-
}
+
-
 
+
-
/*--Window & Text Table--*/
+
-
table#rotator_news {
+
-
margin-bottom: 25px;
+
-
}
+
-
 
+
-
/*--Main Image Rotator Container--*/
+
-
.main_view {
+
-
float: left;
+
-
position: relative;
+
-
/*border: 0px solid #fff;*/
+
-
width: 650px;
+
-
}
+
-
/*--Image Rotator Window/Masking Styles--*/
+
-
.window {
+
-
height:286px;
+
-
width: 650px;
+
-
overflow: hidden; /*--Hides anything outside of the set width/height--*/
+
-
position: relative;
+
-
}
+
-
.image_reel {
+
-
position: absolute;
+
-
top: 0; left: 0;
+
-
}
+
-
.image_reel img {float: left;}
+
-
 
+
-
/*--Paging Styles--*/
+
-
.paging {
+
-
position: absolute;
+
-
bottom: 0px; right: -15px;
+
-
width: 400px; height:47px; /*--Increase this width when adding more numbers in paging--*/
+
-
z-index: 100; /*--Assures the paging stays on the top layer--*/
+
-
text-align: center;
+
-
line-height: 40px;
+
-
background: url(paging_bg2.png) no-repeat;
+
-
display: none; /*--Hidden by default, will be later shown with jQuery--*/
+
-
}
+
-
.paging a {
+
-
padding: 5px;
+
-
text-decoration: none;
+
-
color: #fff;
+
-
}
+
-
.paging a.active {
+
-
font-weight: bold;
+
-
/*background: #cdcdcd;*/
+
-
border: 1px solid #cdcdcd;
+
-
-moz-border-radius: 3px;
+
-
-khtml-border-radius: 3px;
+
-
-webkit-border-radius: 3px;
+
-
}
+
-
.paging a:hover {font-weight: bold;}
+
-
 
+
-
 
+
-
/*--Window Text Styling--*/
+
-
 
+
-
table#rotator_news td#window_text {
+
-
z-index: 100;
+
-
/*border: 1px solid #f4f4f4;*/
+
-
width: 400px;
+
-
padding: 10px;
+
-
/*vertical-align:top;*/
+
-
}
+
-
 
+
-
table#rotator_news td#window_text p.window_feature {
+
-
padding: 50px 0px 20px 0px;
+
-
text-align: center;
+
-
}
+
-
 
+
-
table#rotator_news td#window_text hr {
+
-
margin-top: 35px;
+
-
margin-bottom: 10px;
+
-
}
+
-
 
+
-
table#rotator_news td#window_text ul.window_news {
+
-
/*padding-top: 50px;*/
+
-
font-size: 95%;
+
-
}
+
-
 
+
-
table#rotator_news td#window_text p.window_feature a {
+
-
font-weight: bold;
+
-
font-size: 200%;
+
-
color: #40834b;
+
-
text-shadow: 0.05em 0.05em /*0.05em*/ #aaa;
+
-
}
+
-
 
+
-
table#rotator_news td#window_text ul.window_news {
+
-
list-style-image: url('https://static.igem.org/mediawiki/2010/6/6c/Grey_circle_bullet_10px.png');
+
-
}
+
-
 
+
-
 
+
-
/* -- Styling for content BELOW Image Window & Text Table -- */
+
-
 
+
-
#text {
+
-
width: 900px;
+
-
margin-left: 20px;
+
-
color: #666;
+
-
}
+
-
 
+
-
h2 {
+
-
padding-left:80px;
+
-
font-size:180%;
+
-
font-weight:600;
+
-
}
+
-
 
+
-
table#navigation_table {
+
-
padding: 20px 0px 15px 55px;
+
-
text-align: left;
+
-
}
+
-
 
+
-
table#navigation_table td.icon {
+
-
padding-left: 25px;
+
-
padding-bottom: 25px;
+
-
}
+
-
 
+
-
table#navigation_table td.menu {
+
-
padding: 0px 5px 0px 10px;
+
-
vertical-align: baseline;
+
-
}
+
-
 
+
-
table#navigation_table ul {
+
-
list-style:none;
+
-
}
+
-
 
+
-
table#navigation_table lh {
+
-
margin-left: -20px;
+
-
}
+
-
 
+
-
li.nav_link {
+
-
/*font-weight: bold;*/
+
-
font-size: 85%;
+
-
}
+
-
 
+
-
#description {
+
-
margin-left: 20px;
+
-
float:left;
+
-
margin-bottom:15px;
+
-
text-align: justify;
+
-
}
+
-
 
+
-
/*  IGEM BOTTOM NAVIGATION BAR STYLING */
+
-
 
+
-
#bottom-navbar {
+
-
margin-left: 3px;
+
-
padding-top: 50px;
+
-
}
+
-
 
+
-
.bottom-box {
+
-
width: 180px;
+
-
height: 190px;
+
-
padding: 0px 5px 5px 5px;
+
-
border: 1px solid #444444;
+
-
border-top: 3px solid #444;
+
-
float: left;
+
-
text-align: left;
+
-
font-size: 90%;
+
-
line-height: 90%;
+
-
}
+
-
 
+
-
.bottom-heading {
+
-
font-size: 120%;
+
-
font-weight: bold;
+
-
padding: 0.5em 0 0;
+
-
line-height:100%;
+
-
}
+
-
 
+
-
.bottom-box ul {
+
-
line-height: 150%;
+
-
list-style: none;
+
-
}
+
-
.bottom-box li {
+
-
color: #666666;    /* The items are grayed until they have links */
+
-
}
+
-
 
+
-
#sponsor_logos {
+
-
float: left;
+
-
padding-bottom: 25px;
+
-
}
+
-
 
+
-
#sponsors td {
+
-
padding: 15px 0px 0px 15px;
+
-
}
+
-
 
+
-
#sponsor_table td {
+
-
width: 250px;
+
-
padding-left: 5px;
+
-
padding-top: 35px;
+
-
}
+
-
 
+
-
#sponsor_table td img {
+
-
display: block;
+
-
margin-left: auto;
+
-
margin-right: auto;
+
-
}
+
-
 
+
-
</style>
+
</head>
</head>
 +
<object type="application/x-shockwave-flash" height=800 width=900 data="https://static.igem.org/mediawiki/2011/4/43/Application.swf" >
 +
<param name="movie" value="https://static.igem.org/mediawiki/2011/4/43/Application.swf" />
 +
<param name="quality" value="high" />
 +
<param name="" value="Exactfit"/>
 +
</object>
-
 
+
</html>
-
<body>
+
-
 
+
-
<!-- *** FOLLOW iGEM *** -->
+
-
<div id="social">
+
-
<a href="http://www.facebook.com/home.php#/group.php?gid=2217161950">
+
-
<img src="https://static.igem.org/mediawiki/2011/7/72/Facebook_logo_25px.png"
+
-
    style="padding-right:5px; width:25px; height:25px;"
+
-
    alt="Join iGEM on Facebook!"
+
-
    title="Join iGEM on Facebook!">
+
-
</a>
+
-
<a href="http://twitter.com/igem">
+
-
<img src="https://static.igem.org/mediawiki/2011/3/3c/Twitter_logo_25px.png"
+
-
    style="padding-right:5px; width:25px; height:25px;"
+
-
    alt="Follow iGEM on Twitter!"
+
-
    title="Follow iGEM on Twitter!">
+
-
</a>
+
-
<a href="https://igem.org/Forum">
+
-
<img src="https://static.igem.org/mediawiki/igem.org/4/48/Forum_button_v4_25px.png"
+
-
    style="padding-right:15px; width:25px; height:25px;"
+
-
    alt="Join the iGEM discussions on the Forum!"
+
-
    title="Join the iGEM discussions on the Forum!">
+
-
</a>
+
-
</div>
+
-
 
+
-
<table id="rotator_news">
+
-
<tr>
+
-
<td id="window_images">
+
-
<div class="main_view">
+
-
    <div class="window">
+
-
        <div class="image_reel">
+
-
                    <img src="https://static.igem.org/mediawiki/igem.org/9/9f/2010-jam-cheering_650x286.jpg" alt="" />
+
-
                    <img src="https://static.igem.org/mediawiki/igem.org/2/23/2010-jam-thumbwars_650x286.jpg" alt="" />
+
-
                    <img src="https://static.igem.org/mediawiki/igem.org/f/fb/2010-jam-hope_650x286.jpg" alt="" />
+
-
                    <img src="https://static.igem.org/mediawiki/igem.org/7/79/Igem_regions_650w.png" alt="" />
+
-
                    <img src="https://static.igem.org/mediawiki/igem.org/d/d4/2011_igem_in_plates_650x286.jpg" alt="" />
+
-
                    <img src="https://static.igem.org/mediawiki/igem.org/5/50/Team_outside_stata_650x286.jpg" alt="" />
+
-
                    <img src="https://static.igem.org/mediawiki/igem.org/6/63/2011_distribution_stickers_650x286.jpg" alt="" />
+
-
                    <img src="https://static.igem.org/mediawiki/igem.org/6/6b/2009-jam-james_brown_650x286.jpg" alt="" />
+
-
                    <img src="https://static.igem.org/mediawiki/igem.org/b/bb/Distribution_photo_pipette_tips_650x286.jpg" alt="" />
+
-
                    <img src="https://static.igem.org/mediawiki/igem.org/6/6a/2010-jam-tudelft_ladies_650x286.jpg" alt="" />
+
-
                    <img src="https://static.igem.org/mediawiki/igem.org/4/4e/2010_dna_distribution_plate_650x286.jpg" alt="" />
+
-
                    <img src="https://static.igem.org/mediawiki/igem.org/2/2f/Igem_above_2010_650x286.jpg" alt="" />
+
-
        </div>
+
-
    </div>
+
-
    <div class="paging">
+
-
        <a href="#" rel="1">1</a>
+
-
        <a href="#" rel="2">2</a>
+
-
        <a href="#" rel="3">3</a>
+
-
        <a href="#" rel="4">4</a>
+
-
        <a href="#" rel="5">5</a>
+
-
        <a href="#" rel="6">6</a>
+
-
        <a href="#" rel="7">7</a>
+
-
        <a href="#" rel="8">8</a>
+
-
        <a href="#" rel="9">9</a>
+
-
        <a href="#" rel="10">10</a>
+
-
        <a href="#" rel="11">11</a>
+
-
        <a href="#" rel="12">12</a>
+
-
    </div>
+
-
</div> <!-- close "main_view" div -->
+
-
</td>
+

Latest revision as of 11:43, 27 October 2011