Template:Uppsala-SwedenTemplatetest

From 2011.igem.org

(Difference between revisions)
 
(23 intermediate revisions not shown)
Line 1: Line 1:
__NOTOC__<html lang="en">  
__NOTOC__<html lang="en">  
<head>  
<head>  
 +
 +
 +
<!-- START Top enlarge function -->
Line 33: Line 36:
 +
</style>
 +
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
 +
<script type="text/javascript">
 +
$(document).ready(function(){
 +
 +
//Larger thumbnail preview
$("ul.thumb li").hover(function() {
$("ul.thumb li").hover(function() {
-
$(this).css({'z-index' : '10'}); /*Add a higher z-index value so this image stays on top*/
+
$(this).css({'z-index' : '10'});
-
$(this).find('img').addClass("hover").stop() /* Add class of "hover", then stop animation queue buildup*/
+
$(this).find('img').addClass("hover").stop()
.animate({
.animate({
-
marginTop: '-110px', /* The next 4 lines will vertically align this image */
+
marginTop: '-110px',  
-
marginLeft: '-110px',
+
marginLeft: '-110px',  
-
top: '50%',
+
top: '50%',  
-
left: '50%',
+
left: '50%',  
-
width: '174px', /* Set new width */
+
width: '500px',  
-
height: '174px', /* Set new height */
+
height: '500px',
-
padding: '20px'
+
padding: '20px'  
-
}, 200); /* this value of "200" is the speed of how fast/slow this hover animates */
+
}, 200);
-
 
+
} , function() {
} , function() {
-
$(this).css({'z-index' : '0'}); /* Set z-index back to 0 */
+
$(this).css({'z-index' : '0'});
-
$(this).find('img').removeClass("hover").stop() /* Remove the "hover" class , then stop animation queue buildup*/
+
$(this).find('img').removeClass("hover").stop()
.animate({
.animate({
-
marginTop: '0', /* Set alignment back to default */
+
marginTop: '0',  
marginLeft: '0',
marginLeft: '0',
-
top: '0',
+
top: '0',  
-
left: '0',
+
left: '0',  
-
width: '100px', /* Set width back to default */
+
width: '100px',  
-
height: '100px', /* Set height back to default */
+
height: '100px',  
padding: '5px'
padding: '5px'
}, 400);
}, 400);
});
});
 +
 +
//Swap Image on Click
 +
$("ul.thumb li a").click(function() {
 +
 +
var mainImage = $(this).attr("href"); //Find Image Name
 +
$("#main_view img").attr({ src: mainImage });
 +
return false;
 +
});
 +
 +
});
 +
</script>
 +
 +
<!-- END Top enlarge function -->
 +
-
</style>
 
 +
<!-- START Lower enlarge function -->
Line 101: Line 124:
#info {z-index:100; height:22em;}
#info {z-index:100; height:22em;}
 +
 +
 +
<!-- END Lower enlarge function -->
</style>
</style>
 +
 +
 +
 +
 +
<!-- START OPACITY TEST -->
 +
 +
<style type="text/css">
 +
 +
 +
a.opac img{
 +
opacity:.40;
 +
filter:alpha(opacity=40);
 +
filter: “alpha(opacity=40)”;
 +
}
 +
 +
a.opac:hover img{
 +
opacity:1;
 +
filter:alpha(opacity=100);
 +
filter: “alpha(opacity=100)”;
 +
}
 +
 +
 +
 +
</style>
 +
 +
 +
 +
<!-- END OPACITY TEST -->
</head>  
</head>  
<body>  
<body>  
 +
 +
 +
 +
 +
<ul class="thumb">
 +
<li><a href="#"><img src="https://static.igem.org/mediawiki/2011/c/c3/Erik.jpg" alt="" /></a></li>
 +
 +
</ul>
 +
Line 121: Line 184:
 +
</div>
-
<ul class="thumb">
+
<a href="http://www.uu.se/" class="opac"><img src="https://static.igem.org/mediawiki/2011/7/7a/UUlogo.png" alt="css opac" /></a>
-
<li><a href="#"><img src="https://static.igem.org/mediawiki/2011/c/c3/Erik.jpg" alt="" /></a></li>
+
-
</ul>
 
 +
<style type="text/css">
 +
.rollover Antonio {
 +
    background: url(https://static.igem.org/mediawiki/2011/6/67/Antonio-UU.jpg) no-repeat 0px 0px;
 +
    width: 204px;
 +
    height: 218px;
 +
    display: block;
 +
}
 +
.rollover Antonio:hover {
 +
    background-position: -204px;
 +
        }
-
</div>
+
.rollover Lidaw {
 +
    background: url(https://static.igem.org/mediawiki/2011/5/5d/Lidaw-UU.jpg) no-repeat 0px 0px;
 +
    width: 200px;
 +
    height: 200px;
 +
    display: block;
 +
}
 +
.rollover Lidaw:hover {
 +
    background-position: -200px;
 +
}
 +
 
 +
.rollover Lei {
 +
    background: url(https://static.igem.org/mediawiki/2011/d/d3/Lei-UU.jpg) no-repeat 0px 0px;
 +
    width: 200px;
 +
    height: 200px;
 +
    display: block;
 +
}
 +
.rollover Lei:hover {
 +
    background-position: -200px;
 +
}
 +
 
 +
.rollover Tomas {
 +
    background: url(https://static.igem.org/mediawiki/2011/7/76/Tomas-UU.jpg) no-repeat 0px 0px;
 +
    width: 200px;
 +
    height: 200px;
 +
    display: block;
 +
}
 +
.rollover Tomas:hover {
 +
    background-position: -200px;
 +
}
 +
 
 +
.rollover Erik {
 +
    background: url(https://static.igem.org/mediawiki/2011/a/ac/Erik-UU.jpg) no-repeat 0px 0px;
 +
    width: 200px;
 +
    height: 200px;
 +
    display: block;
 +
}
 +
.rollover Erik:hover {
 +
    background-position: -200px;
 +
}
 +
 
 +
 
 +
.rollover Amin {
 +
    background: url(https://static.igem.org/mediawiki/2011/f/f9/Amin-UU.jpg) no-repeat 0px 0px;
 +
    width: 200px;
 +
    height: 200px;
 +
    display: block;
 +
}
 +
.rollover Amin:hover {
 +
    background-position: -200px;
 +
}
 +
 
 +
 
 +
.rollover Sibel {
 +
    background: url(https://static.igem.org/mediawiki/2011/c/c0/Sibel-UU.jpg) no-repeat 0px 0px;
 +
    width: 200px;
 +
    height: 200px;
 +
    display: block;
 +
}
 +
.rollover Sibel:hover {
 +
    background-position: -200px;
 +
}
 +
 
 +
.rollover Cherno {
 +
    background: url(https://static.igem.org/mediawiki/2011/d/df/Cherno-UU.jpg) no-repeat 0px 0px;
 +
    width: 200px;
 +
    height: 200px;
 +
    display: block;
 +
}
 +
.rollover Cherno:hover {
 +
    background-position: -200px;
 +
}
 +
 
 +
 
 +
.rollover Johanna {
 +
    background: url(https://static.igem.org/mediawiki/2011/2/28/Johanna-UU.jpg) no-repeat 0px 0px;
 +
    width: 200px;
 +
    height: 200px;
 +
    display: block;
 +
}
 +
.rollover Johanna:hover {
 +
    background-position: -200px;
 +
}
 +
 
 +
.rollover Mohammed {
 +
    background: url(https://static.igem.org/mediawiki/2011/5/5c/Mohammed-UU.jpg) no-repeat 0px 0px;
 +
    width: 200px;
 +
    height: 200px;
 +
    display: block;
 +
}
 +
.rollover Mohammed:hover {
 +
    background-position: -200px;
 +
}
 +
 
 +
 
 +
 
 +
.rollover Laura {
 +
    background: url(https://static.igem.org/mediawiki/2011/7/70/Laura-UU.jpg) no-repeat 0px 0px;
 +
    width: 200px;
 +
    height: 200px;
 +
    display: block;
 +
}
 +
.rollover Laura:hover {
 +
    background-position: -200px;
 +
}
 +
 
 +
 
 +
.rollover Hamid {
 +
    background: url(https://static.igem.org/mediawiki/2011/0/0b/Hamid-UU.jpg) no-repeat 0px 0px;
 +
    width: 200px;
 +
    height: 200px;
 +
    display: block;
 +
}
 +
.rollover Hamid:hover {
 +
    background-position: -200px;
 +
}
 +
 
 +
.rollover Pikkei {
 +
    background: url(https://static.igem.org/mediawiki/2011/5/5b/Pikkei-UU.jpg) no-repeat 0px 0px;
 +
    width: 200px;
 +
    height: 200px;
 +
    display: block;
 +
}
 +
.rollover Pikkei:hover {
 +
    background-position: -200px;
 +
}
 +
 
 +
 
 +
.rollover Karl {
 +
    background: url(https://static.igem.org/mediawiki/2011/7/74/Karl-UU.jpg) no-repeat 0px 0px;
 +
    width: 200px;
 +
    height: 200px;
 +
    display: block;
 +
}
 +
.rollover Karl:hover {
 +
    background-position: -200px;
 +
}
 +
 
 +
 
 +
.rollover Phani {
 +
    background: url(https://static.igem.org/mediawiki/2011/7/7b/Phani-UU.jpg) no-repeat 0px 0px;
 +
    width: 192px;
 +
    height: 201px;
 +
    display: block;
 +
}
 +
.rollover Phani:hover {
 +
    background-position: -192px;
 +
}
 +
 
 +
.rollover Eugenia {
 +
    background: url(https://static.igem.org/mediawiki/2011/b/ba/Eugenia-UU.jpg) no-repeat 0px 0px;
 +
    width: 200px;
 +
    height: 200px;
 +
    display: block;
 +
}
 +
.rollover Eugenia:hover {
 +
    background-position: -200px;
 +
}
 +
 
 +
}
 +
 
 +
</style>
 +
 
 +
<div align="right" class="rollover"><Antonio href="#"></a></div>
 +
 
 +
<div align="right" class="rollover"><Lidaw href="#"></a></div>
 +
 
 +
<div align="right" class="rollover"><Lei href="#"></a></div>
 +
 
 +
<div align="right" class="rollover"><Tomas href="#"></a></div>
 +
 
 +
<div align="right" class="rollover"><Erik href="#"></a></div>
 +
 
 +
<div align="right" class="rollover"><Amin href="#"></a></div>
 +
 
 +
<div align="right" class="rollover"><Sibel href="#"></a></div>
 +
 
 +
<div align="right" class="rollover"><Cherno href="#"></a></div>
 +
 
 +
<div align="right" class="rollover"><Johanna href="#"></a></div>
 +
 
 +
<div align="right" class="rollover"><Mohammed href="#"></a></div>
 +
 
 +
<div align="right" class="rollover"><Laura href="#"></a></div>
 +
 
 +
<div align="right" class="rollover"><Hamid href="#"></a></div>
 +
 
 +
<div align="right" class="rollover"><Pikkei href="#"></a></div>
 +
 
 +
<div align="right" class="rollover"><Karl href="#"></a></div>
 +
 
 +
<div align="right" class="rollover"><Phani href="#"></a></div>
 +
 
 +
<div align="right" class="rollover"><Eugenia href="#"></a></div>
</body>
</body>
 +
</html>

Latest revision as of 15:24, 8 September 2011

css opac