日期:2014-05-17 浏览次数:20610 次
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title> new document </title> <meta name="generator" content="editplus" /> <meta name="author" content="" /> <meta name="keywords" content="" /> <meta name="description" content="" /> <script type="text/javascript"> <!-- //popup窗体 开始------------------------------- var oPopup, oPopupBody, oPopTimer function popInit(){ if (window.document.all){ oPopup = window.createPopup() oPopupBody = oPopup.document.body; oPopupBody.style.background="#000" oPopupBody.style.fontSize="12px" oPopupBody.style.textAlign="center" oPopupBody.style.padding="2px 2px 0px 2px" var s = oPopup.document.createStyleSheet(); s.addRule ('a:link','color:red;') s.addRule ('a:visted','color:red;') s.addRule ('a:hover','color:gold;') oPopupBody.attachEvent('onmouseout',hidePop) oPopupBody.attachEvent('onmouseover',clrPopTimer) } } function showPop(){ if (window.document.all){ var xp = 200, yp = 100, ww = 180, wh = 50, txt = '<div><a href="">sdfsdfsggggg</a></div>' oPopupBody.innerHTML = txt oPopup.show( xp, yp, ww, wh ) oPopupBody.innerHTML=txt oPopup.show(xp,yp,ww,wh) } } function hidePop(){ if (window.document.all) if (oPopup.isOpen) oPopTimer = setTimeout("oPopup.hide()",1000) } function clrPopTimer(){ clearTimeout(oPopTimer) } //popup窗体 结束------------------------------- //--> </script> </head> <body> <script type="text/javascript"> <!-- popInit() sho