Team:UESTC Life

From 2013.igem.org

(Difference between revisions)
Line 56: Line 56:
}
}
.bg,.popIframe {
.bg,.popIframe {
-
background-color: #666; display:none;
+
background-color: #666;  
 +
display:none;
width: 100%;
width: 100%;
height: 100%;
height: 100%;
Line 168: Line 169:
document.getElementById('popIframe').style.display='block';
document.getElementById('popIframe').style.display='block';
document.getElementById('bg').style.display='block';
document.getElementById('bg').style.display='block';
-
 
+
if(document.getElementById('popIframePhoto') === null) {
 +
document.getElementById('popDiv').innerHTML='<br/><a href="javascript:closeDiv()">关闭窗口</a><iframe id="popIframePhoto" width=100% height=100% src="https://2013.igem.org/Team:UESTC_Life/Team" frameborder=0></iframe>';
 +
}
}
}
function closeDiv(){
function closeDiv(){
document.getElementById('popDiv').style.display='none';
document.getElementById('popDiv').style.display='none';
document.getElementById('bg').style.display='none';
document.getElementById('bg').style.display='none';
-
document.getElementById('popIframe').style.display='none';
 
}
}
</script>
</script>
Line 456: Line 458:
</div>
</div>
<div>
<div>
-
 
+
  <a href="javascript:showDiv()"><font size=14px>点击这里弹出层</font></a>
-
<a href="javascript:showDiv()"><font size=14px>点击这里弹出层</font></a>
+
</div>
-
</div>
+
</div>
</div>
</div>
</div>
-
<center><div id="popDiv" class="mydiv" style="display:none;">
+
<center>
-
<br><a href="javascript:closeDiv()">关闭窗口</a><input type=button value="刷新3" onclick="window.parent.frames['poppIframe'].location.reload()"><br>
+
  <div id="popDiv" class="mydiv" style="display:none;">
-
<iframe id=poppIframe name=poppIframe width=100% height=100% src="https://2013.igem.org/Team:UESTC_Life/Team" frameborder=0></iframe>
+
  </div>
-
</div></center>
+
</center>
-
<div id="bg" class="bg" style="display:none;"></div>
+
<div id="bg" class="bg">
-
<iframe Id='popIframe' class='popIframe' frameborder='0'></iframe>
+
  <iframe id="popIframe" class="popIframe" frameborder=0></iframe>
 +
</div>
</div>
</div>

Revision as of 09:06, 23 September 2013

Loading pages...