返回列表 上一主題 發帖

[發問] 請問網頁自動彈出視窗語法

<html>
<head>
<title>標題</title>
<script type="text/javascript">

</script>
</head>
<body onload="MM_openBrWindow('你要跳出的網址','aa','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=500,height=500')">
</body>
</html>

TOP

<html>
<head>
<title>MM_openBrWindow事件</title>
<script language="JavaScript" type="text/JavaScript">
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
</script>
</head>
<body>
<a href="#" title="開新視窗" onclick="MM_openBrWindow('test.htm','test','width=700,height=300')" onKeypress="MM_openBrWindow('test.htm','test','width=700,height=300')">test</a>
</body>
</html>

TOP

        靜思自在 : 看別人不順眼,是自己修養不夠。
返回列表 上一主題