用javascript脚本语言怎么实现在页面加载时自动弹出一个窗口?
展开全部
<html>
<head>
<SCRIPT
language="JavaScript">
function
openwindow(){
window.open("zy.htm","广告窗口","toolbar=0,scrollbars=0,location=0,status=0,menubar=0,resizable=0,width=700,height=250");
}
</SCRIPT>
<style
type="text/css">
body
{background-image:
url(at.bmp);}
</style>
</head>
<body
onLoad="openwindow()">
<h2> </h2>
</body>
</html>
不是css的问题,是你参数拼写有错,我帮你改了,现在能用了,你试试
<head>
<SCRIPT
language="JavaScript">
function
openwindow(){
window.open("zy.htm","广告窗口","toolbar=0,scrollbars=0,location=0,status=0,menubar=0,resizable=0,width=700,height=250");
}
</SCRIPT>
<style
type="text/css">
body
{background-image:
url(at.bmp);}
</style>
</head>
<body
onLoad="openwindow()">
<h2> </h2>
</body>
</html>
不是css的问题,是你参数拼写有错,我帮你改了,现在能用了,你试试
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询