Team:UESTC Life
From 2013.igem.org
(Difference between revisions)
Neptune Yu (Talk | contribs) |
Neptune Yu (Talk | contribs) |
||
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'; | ||
- | |||
} | } | ||
</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> | ||
- | <center><div id="popDiv" class="mydiv" style="display:none;"> | + | <center> |
- | + | <div id="popDiv" class="mydiv" style="display:none;"> | |
- | + | </div> | |
- | + | </center> | |
- | <div id="bg" class="bg" | + | <div id="bg" class="bg"> |
- | <iframe | + | <iframe id="popIframe" class="popIframe" frameborder=0></iframe> |
+ | </div> | ||
</div> | </div> | ||
Revision as of 09:06, 23 September 2013
Loading pages...