我一直在這個新的網站上工作,但我使用的「按鈕」造成了大量的滯後,如果可能的話,我想刪除滯後。爲什麼我有這麼多的滯後?
該網站是在這裏:http://lano-project.org/
混亂的代碼是在這裏:
<td>
<a href="templink-info.html">
<img style="display: none" src="images/icons/hover-info.png"/>
<img src="images/icons/info.png"
onmouseover="this.src='images/icons/hover-info.png';
document.getElementById('home_text').style.display = 'none';
document.getElementById('info_text').style.display = 'block';"
onmouseout="this.src='images/icons/info.png';
document.getElementById('home_text').style.display = 'block';
document.getElementById('info_text').style.display = 'none';"
onclick=""/>
</a>
<h3>Info</h3>
</td>
相關CSS:
#icon tr td img{
width: 100px;
height: 100px;}
#icon tr td p{
margin: 0px;}
#icon tr td{
text-align: center;
width: 150px;}
#icon{
margin-left: auto;
margin-right: auto;}
編輯:滯後來自按鈕上的第一個mouseover。 –