Talk:Team:LZU-China/tempfortest

From 2014.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">
+
<!DOCTYPE HTML>
-
<html xmlns="http://www.w3.org/1999/xhtml">
+
<html lang=zh-cn>
<head>
<head>
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+
<title>带TAB切换的css3幻灯片</title>
-
<title>放大镜效果</title>
+
<style>
<style>
-
*{ margin:0; padding:0}
+
*{margin:0px;padding:0px;}
-
#div1{ width:306px; height:260px; margin:50px; position:relative;border:1px solid #eaeaea; padding:5px;}
+
body{background:#b1b1b1;margin:0px;padding:0px;font-size:14px;color:#000;}
-
.undis{ display:none}
+
.tips{width:702px;margin:0 auto;line-height:24px;padding-top:10px;}
-
.small{ position:relative; z-index:1}
+
.bredcolor{color:#fff;}
-
.floatLeft{ background:#fafafa; border:1px solid #f0f0f0; width:80px; height:80px; display:inline-block; position: absolute; display:none}
+
.radiogallery {position:relative; padding:0; margin:50px auto; width:599px; height:492px; border:5px solid #000; border-top-width:1px; overflow:hidden; background:#000; border-radius:5px;}
-
.mark{ display:inline-block;width:306px; height:260px; position:absolute; z-index:5}
+
.radiogallery input {display:none;}
-
.big{ position:absolute; top:0; left:325px; border:1px solid #eaeaea;display:none; z-index:1;;width:316px; height:270px; overflow:hidden;}
+
.radiogallery label {display:block; width:99px; height:66px; border-right:1px solid #fff; border-top:1px solid #fff; float:left; cursor:pointer;}
-
.big img{ position:absolute; z-index:5}
+
.radiogallery label img{width:99px;height:66px;}
-
</style>
+
.radiogallery label.set {width:149px; height:25px; position:absolute; top:0; border-top:0; background:#000; border-right:1px solid #fff; border-bottom:1px solid #fff; font:bold 14px/24px arial, sans-serif; color:#fff; text-align:center;}
-
<script>
+
.radiogallery label.pos4 {left:0;}
-
function getClass(oParent,sClass){
+
.radiogallery label.pos3 {left:150px;}
-
var oElem = document.getElementById(oParent).getElementsByTagName("*");
+
.radiogallery label.pos2 {left:300px;}
-
var aClass=[];
+
.radiogallery label.pos1 {left:450px; border-right:0;}
-
var i= 0;
+
.radiogallery label.set img {width:150px; height:25px; display:block; position:absolute; left:0; top:0;}
-
for(i;i<oElem.length;i++){
+
.radiogallery input#push1,
-
if(oElem[i].className == sClass)aClass.push(oElem[i]);
+
.radiogallery input#push2,
-
}
+
.radiogallery input#push3,
-
return aClass;
+
.radiogallery input#push4 {display:block; margin:0; padding:0; border:0; width:599px; height:56px; opacity:0; filter: alpha(opacity=0);
 +
-webkit-transition:1s;
 +
-moz-transition:1s;
 +
-ms-transition:1s;
 +
-o-transition:1s;
 +
transition:1s;
}
}
-
window.onload = function(){
+
 
-
var oSmall = getClass("div1","small")[0];
+
.radiogallery label.p6 {border-right:0;}
-
var oMark = getClass("div1","mark")[0];
+
.radiogallery section.large {position:absolute; left:0; top:26px; width:599px; height:399px; text-align:center; opacity:0; filter: alpha(opacity=0); z-index:100; overflow:hidden;
-
var oFloatLeft = getClass("div1","floatLeft")[0];
+
-webkit-transition:1s;
-
var oBig = getClass("div1","big")[0];
+
-moz-transition:1s;
-
var oDiv = document.getElementById("div1");
+
-ms-transition:1s;
-
var oImg = oBig.getElementsByTagName("img")[0];
+
-o-transition:1s;
-
oMark.onmouseover = function(){
+
transition:1s;
-
oFloatLeft.style.display = "block"
+
}
-
oBig.style.display = "block"
+
.radiogallery section.large section {position:absolute; left:0; top:-399px; width:499px; height:299px; background:url(); z-index:300; padding:50px;
-
}
+
-webkit-transition:1s 1s;
-
oMark.onmouseout = function(){
+
-moz-transition:1s 1s;
-
oFloatLeft.style.display = "none"
+
-ms-transition:1s 1s;
-
oBig.style.display = "none"
+
-o-transition:1s1s;
-
}
+
transition:1s 1s;
-
oMark.onmousemove = function(ev){
+
}
-
var oEvent = ev || event;
+
.radiogallery section.large section h1 {padding:0; margin:0; font:normal 20px/40px arial,sans-serif; color:#fff;}
-
var l = oEvent.clientX - oDiv.offsetLeft - oSmall.offsetLeft - oFloatLeft.offsetWidth/2;
+
.radiogallery section.large section p {padding:0; margin:0; font:normal 14px/25px arial,sans-serif; color:#ddd; text-align:left;}
-
var t = oEvent.clientY - oDiv.offsetTop - oSmall.offsetTop - oFloatLeft.offsetHeight/2;
+
.radiogallery section.large section ol li {padding:0; margin:0; font:normal 14px/25px arial,sans-serif; color:#ddd; text-align:left;}
-
if(l<0){
+
.radiogallery section.large section a {padding:0; margin:0; font:normal 14px/25px arial,sans-serif; color:#0cf;}
-
l=0;
+
.radiogallery section.large section a:hover {text-decoration:none;}
-
}else if(l> (oMark.offsetWidth- oFloatLeft.offsetWidth)){
+
.radiogallery section.large:hover section {top:0;}
-
l=oMark.offsetWidth- oFloatLeft.offsetWidth ;
+
.radiogallery #cover {display:block; background:#fff; width:599px; height:399px; position:absolute; left:0; top:26px; z-index:90;}
-
+
.radiogallery input#pic1:checked ~ section.pic1,
-
}
+
.radiogallery input#pic2:checked ~ section.pic2,
-
+
.radiogallery input#pic3:checked ~ section.pic3,
-
if(t<0){
+
.radiogallery input#pic4:checked ~ section.pic4,
-
t=0;
+
.radiogallery input#pic5:checked ~ section.pic5,
-
}else if(t> (oMark.offsetHeight- oFloatLeft.offsetHeight)){
+
.radiogallery input#pic6:checked ~ section.pic6,
-
t=oMark.offsetHeight- oFloatLeft.offsetHeight;
+
.radiogallery input#pic1a:checked ~ section.pic1a,
-
+
.radiogallery input#pic2a:checked ~ section.pic2a,
-
}
+
.radiogallery input#pic3a:checked ~ section.pic3a,
-
+
.radiogallery input#pic4a:checked ~ section.pic4a,
-
oFloatLeft.style.left = l + "px";  //oSmall.offsetLeft的值是相对什么而言
+
.radiogallery input#pic5a:checked ~ section.pic5a,
-
oFloatLeft.style.top = t + "px";  
+
.radiogallery input#pic6a:checked ~ section.pic6a,
-
var percentX = l/(oMark.offsetWidth-oFloatLeft.offsetWidth);
+
.radiogallery input#pic1b:checked ~ section.pic1b,
-
var percentY = t/(oMark.offsetHeight-oFloatLeft.offsetHeight);
+
.radiogallery input#pic2b:checked ~ section.pic2b,
-
oImg.style.left = - percentX * (oImg.offsetWidth - oBig.offsetWidth) +"px";
+
.radiogallery input#pic3b:checked ~ section.pic3b,
-
oImg.style.top = -percentY * (oImg.offsetHeight - oBig.offsetHeight) +"px";
+
.radiogallery input#pic4b:checked ~ section.pic4b,
-
}
+
.radiogallery input#pic5b:checked ~ section.pic5b,
-
}
+
.radiogallery input#pic6b:checked ~ section.pic6b,
-
</script>
+
.radiogallery input#pic1c:checked ~ section.pic1c,
 +
.radiogallery input#pic2c:checked ~ section.pic2c,
 +
.radiogallery input#pic3c:checked ~ section.pic3c,
 +
.radiogallery input#pic4c:checked ~ section.pic4c,
 +
.radiogallery input#pic5c:checked ~ section.pic5c,
 +
.radiogallery input#pic6c:checked ~ section.pic6c {opacity:1; filter: alpha(opacity=100); z-index:200;}
 +
.radiogallery input#push4:checked {height:56px;}
 +
.radiogallery input#push3:checked {height:123px;}
 +
.radiogallery input#push2:checked {height:190px;}
 +
.radiogallery input#push1:checked {height:257px;}
 +
.radiogallery input#push1:checked + label,
 +
.radiogallery input#push2:checked + label,
 +
.radiogallery input#push3:checked + label,
 +
.radiogallery input#push4:checked + label {color:#6cf;}
 +
.radiogallery input:checked + label img {opacity:0.3; filter: alpha(opacity=30);}
 +
.radiogallery input.pics + label:hover img {opacity:0.7; filter: alpha(opacity=70);}
 +
.radiogallery input:checked + label:hover img {opacity:0.3; filter: alpha(opacity=30);}
 +
</style>
</head>
</head>
<body>
<body>
-
<div id="div1">
+
<section class="radiogallery">
-
<div class="small">
+
<input type="radio" name="push" id="push1" class="pusher"><label for="push1" class="set pos1"><span>Set 4</span></label>
-
    <span class="mark"></span>
+
<input type="radio" name="push" id="push2" class="pusher"><label for="push2" class="set pos2"><span>Set 3</span></label>
-
<span class="floatLeft"></span>
+
<input type="radio" name="push" id="push3" class="pusher"><label for="push3" class="set pos3"><span>Set 2</span></label>
-
<img src="https://static.igem.org/mediawiki/2014/0/04/Logolzuchinaminitemp.jpg" /></div>
+
<input type="radio" name="push" id="push4" class="pusher" checked="checked"><label for="push4" class="set pos4"><span>Set 1</span></label>
-
<div class="big"><img src="https://static.igem.org/mediawiki/2014/c/cc/Logolzuchina.jpg" /></div>
+
 
-
</div>
+
<input type="radio" name="pic" id="pic1" class="pics"><label for="pic1"><img src="/jscss/demoimg/wall_s1.jpg" alt=""></label>
 +
<input type="radio" name="pic" id="pic2" class="pics"><label for="pic2"><img src="/jscss/demoimg/wall_s2.jpg" alt=""></label>
 +
<input type="radio" name="pic" id="pic3" class="pics"><label for="pic3"><img src="/jscss/demoimg/wall_s3.jpg" alt=""></label>
 +
<input type="radio" name="pic" id="pic4" class="pics"><label for="pic4"><img src="/jscss/demoimg/wall_s4.jpg" alt=""></label>
 +
<input type="radio" name="pic" id="pic5" class="pics"><label for="pic5"><img src="/jscss/demoimg/wall_s5.jpg" alt=""></label>
 +
<input type="radio" name="pic" id="pic6" class="pics"><label for="pic6" class="p6"><img src="/jscss/demoimg/wall_s6.jpg" alt=""></label>
 +
 
 +
<input type="radio" name="pic" id="pic1a" class="pics"><label for="pic1a"><img src="/jscss/demoimg/wall_s7.jpg" alt=""></label>
 +
<input type="radio" name="pic" id="pic2a" class="pics"><label for="pic2a"><img src="/jscss/demoimg/wall_s8.jpg" alt=""></label>
 +
<input type="radio" name="pic" id="pic3a" class="pics"><label for="pic3a"><img src="/jscss/demoimg/wall_s9.jpg" alt=""></label>
 +
<input type="radio" name="pic" id="pic4a" class="pics"><label for="pic4a"><img src="/jscss/demoimg/wall_s10.jpg" alt=""></label>
 +
<input type="radio" name="pic" id="pic5a" class="pics"><label for="pic5a"><img src="/jscss/demoimg/wall_s4.jpg" alt=""></label>
 +
<input type="radio" name="pic" id="pic6a" class="pics"><label for="pic6a" class="p6"><img src="/jscss/demoimg/wall_s5.jpg" alt=""></label>
 +
 
 +
<input type="radio" name="pic" id="pic1b" class="pics"><label for="pic1b"><img src="/jscss/demoimg/wall_s1.jpg" alt=""></label>
 +
<input type="radio" name="pic" id="pic2b" class="pics"><label for="pic2b"><img src="/jscss/demoimg/wall_s2.jpg" alt=""></label>
 +
<input type="radio" name="pic" id="pic3b" class="pics"><label for="pic3b"><img src="/jscss/demoimg/wall_s3.jpg" alt=""></label>
 +
<input type="radio" name="pic" id="pic4b" class="pics"><label for="pic4b"><img src="/jscss/demoimg/wall_s4.jpg" alt=""></label>
 +
<input type="radio" name="pic" id="pic5b" class="pics"><label for="pic5b"><img src="/jscss/demoimg/wall_s5.jpg" alt=""></label>
 +
<input type="radio" name="pic" id="pic6b" class="pics"><label for="pic6b" class="p6"><img src="/jscss/demoimg/wall_s6.jpg" alt=""></label>
 +
 
 +
<input type="radio" name="pic" id="pic1c" class="pics" checked="checked"><label for="pic1c"><img src="/jscss/demoimg/wall_s7.jpg" alt=""></label>
 +
<input type="radio" name="pic" id="pic2c" class="pics"><label for="pic2c"><img src="/jscss/demoimg/wall_s8.jpg" alt=""></label>
 +
<input type="radio" name="pic" id="pic3c" class="pics"><label for="pic3c"><img src="/jscss/demoimg/wall_s9.jpg" alt=""></label>
 +
<input type="radio" name="pic" id="pic4c" class="pics"><label for="pic4c"><img src="/jscss/demoimg/wall_s10.jpg" alt=""></label>
 +
<input type="radio" name="pic" id="pic5c" class="pics"><label for="pic5c"><img src="/jscss/demoimg/wall_s4.jpg" alt=""></label>
 +
<input type="radio" name="pic" id="pic6c" class="pics"><label for="pic6c" class="p6"><img src="/jscss/demoimg/wall_s5.jpg" alt=""></label>
 +
 
 +
 
 +
 
 +
<section class="pic1 large"><img src="/jscss/demoimg/wall1.jpg" alt=""><section>
 +
<h1>Photograph #1 - set #4</h1>
 +
</section></section>
 +
<section class="pic2 large"><img src="/jscss/demoimg/wall2.jpg" alt=""><section>
 +
<h1>Photograph #2 - set #4</h1>
 +
</section></section>
 +
<section class="pic3 large"><img src="/jscss/demoimg/wall3.jpg" alt=""><section>
 +
<h1>Photograph #3 - set #4</h1>
 +
</section></section>
 +
<section class="pic4 large"><img src="/jscss/demoimg/wall4.jpg" alt=""><section>
 +
<h1>Photograph #4 - set #4</h1>
 +
</section></section>
 +
<section class="pic5 large"><img src="/jscss/demoimg/wall5.jpg" alt=""><section>
 +
<h1>Photograph #5 - set #4</h1>
 +
</section></section>
 +
<section class="pic6 large"><img src="/jscss/demoimg/wall6.jpg" alt=""><section>
 +
<h1>Photograph #6 - set #4</h1>
 +
</section></section>
 +
<section class="pic1a large"><img src="/jscss/demoimg/wall7.jpg" alt=""><section>
 +
<h1>Photograph #1 - set #3</h1>
 +
</section></section>
 +
<section class="pic2a large"><img src="/jscss/demoimg/wall8.jpg" alt=""><section>
 +
<h1>Photograph #2 - set #3</h1>
 +
</section></section>
 +
<section class="pic3a large"><img src="/jscss/demoimg/wall9.jpg" alt=""><section>
 +
<h1>Photograph #3 - set #3</h1>
 +
</section></section>
 +
<section class="pic4a large"><img src="/jscss/demoimg/wall10.jpg" alt=""><section>
 +
<h1>Photograph #4 - set #3</h1>
 +
</section></section>
 +
<section class="pic5a large"><img src="/jscss/demoimg/wall4.jpg" alt=""><section>
 +
<h1>Photograph #5 - set #3</h1>
 +
</section></section>
 +
<section class="pic6a large"><img src="/jscss/demoimg/wall5.jpg" alt=""><section>
 +
<h1>Photograph #6 - set #3</h1>
 +
</section></section>
 +
<section class="pic1b large"><img src="/jscss/demoimg/wall7.jpg" alt=""><section>
 +
<h1>Photograph #1 - set #2</h1>
 +
</section></section>
 +
<section class="pic2b large"><img src="/jscss/demoimg/wall8.jpg" alt=""><section>
 +
<h1>Photograph #2 - set #2</h1>
 +
</section></section>
 +
<section class="pic3b large"><img src="/jscss/demoimg/wall9.jpg" alt=""><section>
 +
<h1>Photograph #3 - set #2</h1>
 +
</section></section>
 +
<section class="pic4b large"><img src="/jscss/demoimg/wall10.jpg" alt=""><section>
 +
<h1>Photograph #4 - set #2</h1>
 +
</section></section>
 +
<section class="pic5b large"><img src="/jscss/demoimg/wall4.jpg" alt=""><section>
 +
<h1>Photograph #5 - set #2</h1>
 +
</section></section>
 +
<section class="pic6b large"><img src="/jscss/demoimg/wall5.jpg" alt=""><section>
 +
<h1>Photograph #6 - set #2</h1>
 +
</section></section>
 +
<section class="pic1c large"><img src="/jscss/demoimg/wall7.jpg" alt=""><section>
 +
<h1>Photograph #1 - set #1</h1>
 +
</section></section>
 +
<section class="pic2c large"><img src="/jscss/demoimg/wall8.jpg" alt=""><section>
 +
<h1>Photograph #2 - set #1</h1>
 +
</section></section>
 +
<section class="pic3c large"><img src="/jscss/demoimg/wall9.jpg" alt=""><section>
 +
<h1>Photograph #3 - set #1</h1>
 +
</section></section>
 +
<section class="pic4c large"><img src="/jscss/demoimg/wall10.jpg" alt=""><section>
 +
<h1>Photograph #4 - set #1</h1>
 +
</section></section>
 +
<section class="pic5c large"><img src="/jscss/demoimg/wall4.jpg" alt=""><section>
 +
<h1>Photograph #5 - set #1</h1>
 +
</section></section>
 +
<section class="pic6c large"><img src="/jscss/demoimg/wall5.jpg" alt=""><section>
 +
<h1>Photograph #6 - set #1</h1>
 +
</section></section>
 +
<span id="cover"></span>
 +
</section>
</body>
</body>
</html>
</html>

Revision as of 09:41, 6 September 2014

<!DOCTYPE HTML> 带TAB切换的css3幻灯片

Photograph #1 - set #4

Photograph #2 - set #4

Photograph #3 - set #4

Photograph #4 - set #4

Photograph #5 - set #4

Photograph #6 - set #4

Photograph #1 - set #3

Photograph #2 - set #3

Photograph #3 - set #3

Photograph #4 - set #3

Photograph #5 - set #3

Photograph #6 - set #3

Photograph #1 - set #2

Photograph #2 - set #2

Photograph #3 - set #2

Photograph #4 - set #2

Photograph #5 - set #2

Photograph #6 - set #2

Photograph #1 - set #1

Photograph #2 - set #1

Photograph #3 - set #1

Photograph #4 - set #1

Photograph #5 - set #1

Photograph #6 - set #1