[查看演示] 源码如下 ---------------------------------------------------------- <html>
<script Language="javascript">
function link(){
o=event.srcElement
while(o.tagName != "A")
{if(!o.parentElement) return
o=o.parentElement}
event.returnValue = false
if (o.className == "pop"){open(o.href,'','height=360,width=650,top=0,left=0,scrollbars=yes')}
else if (o.getAttribute("target")=="_blank"){window.open(o.href,'','')}
else{location=o.href}}
document.onclick=link;
</script>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<style>body,td,div,a,input{font:menu;line-height:180%}</style>
<title>pop窗口一例-www.51windows.Net</title>
</head>
<body>
<p><a href="http://www.52nh.com/hw" class="pop">class=pop</a></p>
<p><a href="http://www.52nh.com/hw" target="_blank">target=blank</a></p>
<p> </p>
</body>
</html>
<div style="position: absolute; top: 10; right: 10; width: 148; height: 18;cursor:hand">
<input type="button" name="Button" value="查看源代码" onClick= 'window.location = "view-source:" + window.location.href'></div> |