<html>
<head>
<script LANGUAGE="JavaScript">
<!--
function openwin() {
window.open ("page.html", "newwindow", "height=100, width=400, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no"}
-->
</script>
</head>
<body onload="openwin()">
...任意的页面内容...
</body>
</html>我只是想蹦出个页面 死活不显示 检查很多遍了 求指导
<head>
<script LANGUAGE="JavaScript">
<!--
function openwin() {
window.open ("page.html", "newwindow", "height=100, width=400, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no"}
-->
</script>
</head>
<body onload="openwin()">
...任意的页面内容...
</body>
</html>我只是想蹦出个页面 死活不显示 检查很多遍了 求指导
<head>
<title>弹出窗体</title>
<script type="text/javascript" language="JavaScript">
window.open("10-1.html", "newwindow", "height=100, width=400, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no");
</script></head>
<body onload="openwin()">
...任意的页面内容...
</body>10-1.html 你要弹出的页面<head>
<title>在指定的查找范围内获取DOM元素</title>
<script type="text/javascript"
src="Jscript/jquery-1.4.2-vsdoc.js">
</script>
<script type="text/javascript"
src="Jscript/jquery-1.4.2.js">
</script>
<style type="text/css">
body{font-size:13px}
.MyCls0{border:solid 1px #666;margin:5px;width:200px}
.MyCls1{border:solid 1px #ccc;margin:5px;width:200px}
.MyCls{background-color:#eee;padding:5px}
</style>
<script type="text/javascript">
$(function() {
window.$objPub = { //在全局范围中,定义一个windows对象
$objTmp0: $("#div0", ".MyCls0"),
$objTmp1: $("#div1")
}
TestFun();
})
function TestFun() { //自定义显示div内容的函数
$objPub.$objTmp0.html("Tmp0");
$objPub.$objTmp1.html("Tmp1");
}
</script>
</head>
<body>
<div class="MyCls0">
<div id="div0" class="MyCls" title="tmp0"></div>
</div>
<div class="MyCls1">
<div id="div1" class="MyCls" title="tmp1"></div>
</div>
</body>
<!--
function openwin() {
window.open ("page.html", "newwindow", "height=100, width=400, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no"}
-->
注释了?<!-- -->
function openwin() {
window.open ("page.html", "newwindow", "height=100, width=400, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no"}
-->
window.open 少半个括号??