这是我做的一个示例里面还有图片未给出,源码如下:
<html xmlns:v> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>无标题文档</title> <style> v/:*{behavior:url(#default#VML)} p{margin:0in; padding:0in; } .one{text-indent:2em} </style> </head>
<body> <script language=javascript><!-- document.body.οnlοad=creatdiv; function array1(wd,tr,ur){ this.word=wd; this.tra=tr; this.url1=ur; } array2=new Array( new array1("rejoicing","喜悦",""), new array1("puny","弱小的;发育不良的",""), new array1("baptize","洗礼",""),new array1("haste","匆忙;匆促","<img src='35.jpg' border='0'/ align='center'>") ); function over(i){ i=i-1; if(i in array2){ var obj=document.getElementById("display"); obj.style.display="block"; obj.style.position="absolute"; obj.style.zindex=999; obj.style.posTop=event.y+5; obj.style.posLeft=event.x+5; string="<v:RoundRect style='position:relative;width:200;height:200;' strokecolor='#ff0000' arcsize=0.01 strokeweight='1px' fillcolor='#000000'>"; string+="<v:shadow on='T' type='single' color='#e5e5e5' offset='3px,3px'/>"; string+="<v:fill src='1.jpg' type='frame' opacity='.9'/>"; string+="<v:TextBox style='font-size:11pt;'>"; string+="<p>名词解释:</p>"; string+="<p class=one>"; string+=array2[i].word; string+=":"; string+=array2[i].tra; string+="<p/>"; string=string+array2[i].url1; string+="</v:textbox>"; string+="</v:RoundRect>"; obj.innerHTML=string; } } function out(i){ var obj=document.getElementById("display"); obj.style.display="none"; } function creatdiv() { var mobj = document.createElement("div"); mobj.id="display"; document.body.appendChild(mobj); } //--> </script> <p align="center"><strong>The Seven Ravens</strong><strong>(七只乌鸦)</strong><strong> </strong><br /> There was once a man who had seven sons, and still he had no daughter, however much he and his wife wished for one. But at last their wish was fulfilled, and a little daughter came to them. </p> The <strong><em><a οnmοuseοver="over(1)" οnmοuseοut="out(1)">rejoicing1</a></em></strong> was great, but the child was sickly and <strong><em><a οnmοuseοver="over(2)" οnmοuseοut="out(2)">puny2</a></em></strong>, and had to be privately <strong><em><a οnmοuseοver="over(3)" οnmοuseοut="out(3)">baptized3</a></em></strong> because of its weakness. The father sent one of the boys in<strong><em> <a οnmοuseοver="over(4)" οnmοuseοut="out(4)">haste4 </a></em></strong>to the spring to fetch water for the ceremony. The other six went with him, and as each of them wanted to be first to fill it, the jug fell into the well. There they stood and did not know what to do, and none of them dared to go home. As they still did not return, the father grew impatient, and said, "They have certainly forgotten it for some game, the <strong><em>wicked5 </em></strong>boys!" He became afraid that the girl would have to die without being baptized, and in his <strong><em>rage6</em></strong> cried, "I wish the boys were all turned into ravens." As soon as the word was spoken, he heard a <strong><em>whirring7</em></strong> of wings over his head in the air, looked up and saw seven coal-black ravens flying away. The parents could not recall the curse, and now matter how sad they were at the loss of their seven sons, they still consoled themselves with their dear little daughter, who soon grew strong and <p> </p> </body> </html>