<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<HTML>
<HEAD>
<TITLE>网页即时提示演示 </TITLE>
<!STYLE元素定义顶级元素BODY与行内元素SPAN的样式>
<STYLE>
</STYLE>
<script language="javascript">
var tipTimer;
function locateObject(n, d) { //v3.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=locateObject(n,d.layers[i].document); return x;
}
function hideTooltip(object)
{
if (document.all)
{
locateObject(object).style.visibility="hidden"
locateObject(object).style.left = 1;
locateObject(object).style.top = 1;
return false
}
else if (document.layers)
{
locateObject(object).visibility="hide"
locateObject(object).left = 1;
locateObject(object).top = 1;
return false
}
else
return true
}
function showTooltip(object,e, tipContent, backcolor, bordercolor, textcolor, displaytime)
{
window.clearTimeout(tipTimer)
if (document.all)
{
locateObject(object).style.top=document.body.scrollTop+event.clientY+20
locateObject(object).innerHTML='<table style="word-break:break-all;word-wrap:break-word;font-family: Verdana,Tahoma, Arial, Helvetica, sans-serif; font-size: 11px; border: '+bordercolor+'; border-style: solid; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; background-color: '+backcolor+'" width="150" border="0" cellspacing="1" cellpadding="1"><tr><td><font style="font-family: Verdana,Tahoma, Arial, Helvetica, sans-serif; font-size: 11px; color: '+textcolor+'">'+unescape(tipContent)+'</font></td></tr></table> '
if ((e.x + locateObject(object).clientWidth) > (document.body.clientWidth + document.body.scrollLeft))
{
locateObject(object).style.left = (document.body.clientWidth + document.body.scrollLeft) - locateObject(object).clientWidth-10;
}
else
{
locateObject(object).style.left=document.body.scrollLeft+event.clientX
}
locateObject(object).style.visibility="visible"
tipTimer=window.setTimeout("hideTooltip('"+object+"')", displaytime);
return true;
}
else if (document.layers)
{
locateObject(object).document.write('<table width="10" border="0" cellspacing="1" cellpadding="1"><tr bgcolor="'+bordercolor+'"><td><table width="10" border="0" cellspacing="0" cellpadding="2"><tr bgcolor="'+backcolor+'"><td ><font style="font-family: Verdana,Tahoma, Arial, Helvetica, sans-serif; font-size: 11px; color: '+textcolor+'">'+(tipContent)+'</font></td></tr></table></td></tr></table>')
locateObject(object).document.close()
locateObject(object).top=e.y+20
if ((e.x + locateObject(object).clip.width) > (window.pageXOffset + window.innerWidth))
{
locateObject(object).left = window.innerWidth - locateObject(object).clip.width-10;
}
else
{
locateObject(object).left=e.x;
}
locateObject(object).visibility="show"
tipTimer=window.setTimeout("hideTooltip('"+object+"')", displaytime);
return true;
}
else
{
return true;
}
}
</script>
</HEAD>
<BODY>
<H3>Unit 14 Lesson 54</H3>
<P>
<!用行内元素SPAN将各个要设置提示的单词单独括起来并用TITLE元素设置提示信息>
<!本例中要设置提示信息的单词分别为Christmas、festival、Britain>
<SPAN TITLE="Christmas--n.圣诞节\nddaldflkasdjklfajslkdjfalksf\nasjdlkfjaklsdfasdf">Christmas </SPAN> is an important
<SPAN TITLE="festival--n.&&&&adj.节日(的);喜庆(的)">festival </SPAN>
in <SPAN TITLE="Britain--n.英国;不列颠">Britain </SPAN> and many other
parts of the world.
</P>
<p><a href=# title="说明一 说明二 说明三">印象派</a>
<a href=# title="说明一 说明二 说明三">印象派</a></p>
<a href="#" onClick="showTooltip('dHTMLToolTip',event, '文字提示信息部分\<br\>额外人情味儿v', '#fffff2','#000000','#000000','20000' )" onMouseOut="hideTooltip('dHTMLToolTip')">给个提示</a>
<span onClick="showTooltip('dHTMLToolTip',event, '文字提示信息部分 额外人情味儿v', '#fffff2','#000000','#000000','20000' )" onMouseOut="hideTooltip('dHTMLToolTip')">给个提示</span>
<div id="dHTMLToolTip" style="position: absolute; visibility: hidden; width:10; height: 10; z-index: 1000; left: 0; top: 0"></div>
<table border="1"> <tr> <td style="width:50px;">测试测试测试测试测试测试测试测试测试测试</td> <td>测试测试测试测试测试测试测试测试测试测试测试测试</td> </tr> <tr> <td>测试测试测试测试测试测试测试测试测试测试测试</td> <td>测试测试测试测试测试测试测试测试测试测试测试</td> </tr></table>
<div align="center">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="560" height="320">
<param name="movie" value="Mapdata.swf" />
<param name="quality" value="high" />
<embed src="Flash/Mapdata.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="560" height="320"></embed>
</object>
</div>
</BODY>
</HTML>