請將滑鼠移到文字上,試試ALT的效果

這是測試網頁 這是測試網頁

解剖原始碼
第壹部份CSS Tags
<HEAD>
<style type="text/css">
<!--
<!--基本CSS標籤設定-->
a:link {font-family: 華康少女文字W6,標楷體,新細明體; text-decoration: none}
a:active {font-family: 華康少女文字W6,標楷體,新細明體; text-decoration: none}
a:visited {font-family: 華康少女文字W6,標楷體,新細明體; text-decoration: none}
a:hover {font-family: 華康少女文字W6,標楷體,新細明體; text-decoration: underline}
//-->
</style> </HEAD>

第貳部份 CSS Tags
<BODY>
<!--CSS標籤區塊設定-->
<DIV ID="overDiv" STYLE="position:absolute; visibility:hide; z-index:1;"></DIV>
</BODY>

第參部份JavaScript Code
<BODY>
<!--如果您不熟悉JavaScript,這段您只要照抄就好-->
<script Language="JavaScript">
<!--
var fcolor = "#000000";   <!--前景顏色-->
var backcolor = "#ffff00";    <!--背景顏色-->
var textcolor = "#00ff00";     <!--文字顏色-->
var width = 150;     <!--寬度,須與中間txt設定配合設定-->
var border = "1";    <!--邊框,須與中間txt設定配合設定-->
var offsetx = 10;     <!--ALT水平位置-->
var offsety = 10;    <!--ALT垂直位置-->
ns4 = (document.layers)? true:false
ie4 = (document.all)? true:false
if (ie4) {
	if (navigator.userAgent.indexOf('MSIE 5')>0) {
		ie5 = true;
	} else {
		ie5 = false; }
} else {
	ie5 = false;
}
var x = 0;
var y = 0;
var snow = 0;
var sw = 0;
var cnt = 0;
var dir = 1;
if ( (ns4) || (ie4) ) {
	if (ns4) over = document.overDiv
	if (ie4) over = overDiv.style
	document.onmousemove = mouseMove
	if (ns4) document.captureEvents(Event.MOUSEMOVE)
}

function nd() {
	if ( cnt >= 1 ) { sw = 0 };
	if ( (ns4) || (ie4) ) {
		if ( sw == 0 ) {
			snow = 0;
			hideObject(over);
		} else {
			cnt++;
		}
	}
	window.status='';
}

// Simple popup
function drs(text) {    <!--下面txt這段TABLE語法,是您可修正的主要部份,但不要段行哦-->
	txt = "<TABLE BORDER=1 CELLPADDING=1 CELLSPACING=0 BGCOLOR="+backcolor+">
<TR><TD><TABLE WIDTH=100% BORDER=1 CELLPADDING=2 CELLSPACING=0 BGCOLOR=\""+fcolor+"\">
<TR><TD><FONT FACE=Arial COLOR=\""+textcolor+"\" SIZE=2><"+text+"</b></FONT></TD></TR></TABLE>
</TD></TR></TABLE>"
	layerWrite(txt);
	disp();
	window.status=text;
}
// Common calls
function disp() {
	if ( (ns4) || (ie4) ) {
		if (snow == 0) 	{
			moveTo(over,x+offsetx,y+offsety);
			showObject(over);
			snow = 1;
		}
	}
}
// Moves the layer
function mouseMove(e) {
	if (ns4) {x=e.pageX; y=e.pageY;}
	if (ie4) {x=event.x; y=event.y;}
	if (ie5) {x=event.x+document.body.scrollLeft; y=event.y+document.body.scrollTop;}
	if (snow) {
		if (dir == 2) { // Center
			moveTo(over,x+offsetx-(width/2),y+offsety);
		}
		if (dir == 1) { // Right
			moveTo(over,x+offsetx,y+offsety);
		}
		if (dir == 0) { // Left
			moveTo(over,x-offsetx-width,y+offsety);
		}
	}
}
function layerWrite(txt) {
        if (ns4) {
                var lyr = document.overDiv.document
                lyr.write(txt)
                lyr.close()
        }
        else if (ie4) document.all["overDiv"].innerHTML = txt
}
function showObject(obj) {
        if (ns4) obj.visibility = "show"
        else if (ie4) obj.visibility = "visible"
}
function hideObject(obj) {
        if (ns4) obj.visibility = "hide"
        else if (ie4) obj.visibility = "hidden"
}
function moveTo(obj,xL,yL) {
        obj.left = xL
        obj.top = yL
}
// -->
</BODY>

第四部份 Link Tags & JavaScript Code
<BODY>
<!--Link 標籤及JavaScript設定-->
<a onclick="staying='true'" href="test.htm" onMouseOver="drs('這是測試網頁');return true;" onMouseOut="nd();return true;" target='_self'">
</BODY>

注意事項
第壹部份 CSS Tags 若不設定,會影響 NetScape Browsr 顯示效果。
如果您對 CSS 標籤不熟悉,請到進階HTML語法之【CSS 基本語法】參研
如果您對 JavaScript 語言不熟悉,請到實用 Script 程式【JavaScript 大全】參研
如果您對 Table 語法不熟悉,請到【網頁各式模組】參研