Using the Popup Object(关于html里面的POPUP对象

很多人都想着能不能自定义一个TOOLIP,其实微软已经在MSDN的帮助里面提到了此类功能,完全可以使用POPUP对象来实现,参见MSDN地址
ms-help://MS.MSDNQTR.v80.chs/MS.MSDN.v80/MS.WEBDEV.v10.en/dhtml/workshop/author/om/popup_overview.htm

关于popup对象是
popup Object

----------------------------------------------------------------------
A special type of overlapped window typically used for dialog boxes, message boxes, and other temporary windows that appear separate from an application's main window.


使用的方法也挺简单
<SCRIPT LANGUAGE="JScript">
  var oPopup = window.createPopup();
  var oPopupBody = oPopup.document.body;

  oPopupBody.innerHTML = "Display some <B>HTML</B> here.";
  oPopup.show(100, 100, 200, 50, document.body);
</SCRIPT>

通过popup对像可以建立如MESSAGEGOX,TOOLTIP及自定义下拉框等,具体的可参见MSDN的帮助文档

你可能感兴趣的:(html,windows)