http://www.baelkopat.com/GECCo/goingGreenTest.html是我到目前爲止。我需要學習的是如何在用戶mouseOver
的鏈接中顯示附加文本。即當「活動指南(PDF)」上的用戶mouseOver
顯示「下載和打印....」時。 我對使用ActionScript的經驗並不是很新,對JavaScript很有幫助。我想知道如何使mouseOver
效果發生。如何使用javascript在textover的某個地方顯示文本/信息
懸停DIV是使用CSS
overTextA {
position:absolute;
left:190px;
top:7px;
width:280px;
padding:10px 15px;
background-image:url(../images/navMenuOver.png);
background-repeat:no-repeat;
z-index:3;
}
overTextB裝箱{
position:absolute;
left:190px;
top:40px;
width:280px;
padding:10px 15px;
background-image:url(../images/navMenuOver.png);
background-repeat:no-repeat;
z-index:3;
}
和在HTML
<div id="overTextA"> Download and print a PDF-version of the Junior <i>Going Green with GECCo</i> guide, with activity information, instructions, and resources. </div>
<div id="overTextB"> Take the <i>GECCo Challenge !</i> Help our planet by saving energy AND earning money for conservation.</div>
我不知道那是做的最好的辦法,但現在我只想有一個可行的工作版本,顯示了導航鏈接,相應的文本時mouseOver
。
謝謝,雷克斯
感謝您的快速回復。我看着網站,但並沒有完全得到它... 雖然我不知道很多關於JavaScript的我想堅持下去,並開始前首先獲得基礎知識使用其他庫... 謝謝,雷克斯霸王龍 – rex 2010-09-13 18:16:10
,使用庫並不難,你創建一個Java腳本包括頭,只是使用功能。比你想象的容易。 – Jakub 2010-09-14 12:55:12