HANSONGTSENG (Talk | contribs) |
HANSONGTSENG (Talk | contribs) |
||
Line 1: | Line 1: | ||
{{Template:NYMU-Taipei/newtemplate1}} | {{Template:NYMU-Taipei/newtemplate1}} | ||
<html> | <html> | ||
+ | |||
+ | |||
<div id="page-content"> | <div id="page-content"> | ||
− | |||
− | < | + | <div id="memtro"> |
− | + | ||
+ | <div id="intros"> | ||
+ | <div class="intro unshow" id="0i">Welcome! This is memtro!</div> | ||
+ | <div class="intro unshow" id="1i">ahhhhhh</div> | ||
+ | <div class="intro unshow" id="2i">ohhhhhh</div> | ||
+ | <div class="intro unshow" id="3i">ihhhhhh</div> | ||
+ | <div class="intro unshow" id="4i">ehhhhhh</div> | ||
+ | <div class="intro unshow" id="5i">uhhhhhh</div> | ||
+ | <div class="intro unshow" id="6i"></div> | ||
+ | <div class="intro unshow" id="7i"></div> | ||
+ | <div class="intro unshow" id="8i"></div> | ||
+ | <div class="intro unshow" id="9i"></div> | ||
+ | <div class="intro unshow" id="10i"></div> | ||
+ | <div class="intro unshow" id="11i"></div> | ||
+ | <div class="intro unshow" id="12i"></div> | ||
+ | <div class="intro unshow" id="13i"></div> | ||
+ | <div class="intro unshow" id="14i"></div> | ||
+ | <div class="intro unshow" id="15i"></div> | ||
+ | <div class="intro unshow" id="16i"></div> | ||
+ | </div> | ||
− | < | + | <div id="heads"> |
− | < | + | <div class="head" id="1h" onclick="closeintro(event),openintro(event)"><img src="guolun.png"><div class="headname">GuoLun</div></div> |
− | < | + | <div class="head" id="2h" onclick="closeintro(event),openintro(event)"><img src="chiyeh.png"><div class="headname">GuoLun</div></div> |
− | < | + | <div class="head" id="3h" onclick="closeintro(event),openintro(event)"><img src="weitong.png"><div class="headname">GuoLun</div></div> |
− | < | + | <div class="head" id="4h" onclick="closeintro(event),openintro(event)"><img src="guolun.png"><div class="headname">GuoLun</div></div> |
− | < | + | <div class="head" id="5h" onclick="closeintro(event),openintro(event)"><img src="chiyeh.png"><div class="headname">GuoLun</div></div> |
− | </ | + | <div class="head" id="6h"><img src="chiyeh.png"><div class="headname">GuoLun</div></div> |
+ | <div class="head" id="7h"><img src="chiyeh.png"><div class="headname">GuoLun</div></div> | ||
+ | <div class="head" id="8h"><img src="chiyeh.png"><div class="headname">GuoLun</div></div> | ||
+ | <div class="head" id="9h"><img src="weitong.png"><div class="headname">GuoLun</div></div> | ||
+ | <div class="head" id="10h"><img src="chiyeh.png"><div class="headname">GuoLun</div></div> | ||
+ | <div class="head" id="11h"><img src="weitong.png"><div class="headname">GuoLun</div></div> | ||
+ | <div class="head" id="12h"><img src="weitong.png"><div class="headname">GuoLun</div></div> | ||
+ | <div class="head" id="13h"><img src="weitong.png"><div class="headname">GuoLun</div></div> | ||
+ | <div class="head" id="14h"><img src="weitong.png"><div class="headname">GuoLun</div></div> | ||
+ | <div class="head" id="15h"><img src="weitong.png"><div class="headname">GuoLun</div></div> | ||
+ | <div class="head" id="16h"><img src="weitong.png"><div class="headname">GuoLun</div></div> | ||
</div> | </div> | ||
+ | </div> | ||
+ | <style type="text/css"> | ||
+ | body{ | ||
+ | background-color: gray; | ||
+ | } | ||
+ | #memtro{ | ||
+ | background-color: white; | ||
+ | width: 1200px; | ||
+ | margin: auto; | ||
− | + | } | |
− | + | #heads{ | |
− | + | width: 600px; | |
− | + | } | |
− | + | #intros{ | |
− | + | width: 600px; | |
− | + | float: right; | |
− | + | } | |
− | + | .head{ | |
− | + | position: relative; | |
− | + | height: 150px; | |
− | + | width: 150px; | |
− | + | display:inline-block; | |
− | + | margin-right: -4px; | |
− | </ | + | margin-top: -4px; |
+ | } | ||
+ | .head img{ | ||
+ | height: auto; | ||
+ | width: 150px; | ||
+ | } | ||
+ | .head:hover img{ | ||
+ | opacity: 0.5; | ||
+ | } | ||
+ | .headname{ | ||
+ | z-index: 1; | ||
+ | position: absolute; | ||
+ | top:100px; | ||
+ | opacity: 2; | ||
+ | display: none; | ||
+ | background-color: red; | ||
+ | color:white; | ||
+ | text-align: center; | ||
+ | width: 150px; | ||
+ | height:20px; | ||
+ | } | ||
+ | .head:hover .headname{ | ||
+ | display: block; | ||
+ | opacity: 1; | ||
+ | } | ||
+ | .unshow{ | ||
+ | display: none; | ||
+ | } | ||
+ | </style> | ||
+ | |||
+ | <script type="text/javascript"> | ||
+ | window.onload = function(){ | ||
+ | document.getElementById('0i').classList.remove("unshow"); | ||
+ | }; | ||
+ | |||
+ | function closeintro(x){ | ||
+ | var intros = document.getElementsByClassName('intro'); | ||
+ | var targetintro = x.target.parentElement.id.replace('h','i'); | ||
+ | for (var i = intros.length - 1; i >= 0; i--) { | ||
+ | if (intros[i].id != targetintro) { | ||
+ | intros[i].classList.add("unshow"); | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | |||
+ | function openintro(x){ | ||
+ | var targetintro = x.target.parentElement.id.replace('h','i'); | ||
+ | document.getElementById(targetintro).classList.remove("unshow"); | ||
+ | } | ||
+ | </script> |
Revision as of 05:00, 11 August 2018
Welcome! This is memtro!
ahhhhhh
ohhhhhh
ihhhhhh
ehhhhhh
uhhhhhh
GuoLun
GuoLun
GuoLun
GuoLun
GuoLun
GuoLun
GuoLun
GuoLun
GuoLun
GuoLun
GuoLun
GuoLun
GuoLun
GuoLun
GuoLun
GuoLun