又一个演示winPop渐变消息提示的例子

翻译|其它|编辑:郝浩|2004-08-04 09:14:00.000|阅读 1899 次

概述:

# 界面/图表报表/文档/IDE等千款热门软控件火热销售中 >>


<SCRIPT>
var oPopup = window.createPopup();
function fnDef()
{
  if (event.srcElement.id=="brasshat")
    oPopup.document.body.innerHTML = oBrassHat.innerHTML;
  else if (event.srcElement.id=="entrechat"){
    oPopup.document.body.innerHTML = oEntrechat.innerHTML;}  
    var popupBody = oPopup.document.body;
oPopup.show(0, 0, 300, 50);
  var realHeight = popupBody.scrollHeight;
oPopup.hide();
  oPopup.show(0, 15 , 300, realHeight, event.srcElement);
}
</SCRIPT>
<DIV STYLE="padding:5px; background:#e4e4e4; margin:5px; width:400px">
The <SPAN CLASS="def" ID="brasshat" ONCLICK="fnDef();">brass hat</SPAN>
was impressed by the grace of the dancer's
<SPAN ID="entrechat" ONCLICK="fnDef();">entrechat</SPAN>.
</DIV>
<DIV STYLE="display:none;">
  <DIV ID="oBrassHat">
  <DIV STYLE="background:#ffffcc; border:1px solid black; padding:4px;
   width:300px; font-family:verdana; font-size:70%;
  filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0,
  StartColorStr='yellowgreen', EndColorStr='#FFFFFF')">
  <B>brass hat:</B>
<BR>
A high-ranking official.
  </DIV>
  </DIV>
  <DIV ID="oEntrechat">
  <DIV STYLE="background:#ffffcc; border:1px solid black; padding:4px;
  font-family:verdana; font-size:70%; width:300px;
  filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0,
  StartColorStr='#0099FF', EndColorStr='#00FFFF')">
  <B>Entrechat:</B>
<BR>
A jump in ballet during which the dancer crosses the legs a number of
  times, alternatively back and forth.
  </DIV>

  </DIV>
</DIV>
请鼠标点击entrechat


标签:

本站文章除注明转载外,均为本站原创或翻译。欢迎任何形式的转载,但请务必注明出处、不得修改原文相关链接,如果存在内容上的异议请邮件反馈至chenjj@evget.com


为你推荐

  • 推荐视频
  • 推荐活动
  • 推荐产品
  • 推荐文章
  • 慧都慧问
扫码咨询


添加微信 立即咨询

电话咨询

客服热线
023-68661681

TOP