请教“如何实现在地址栏输入网址后,在打开首页时自动加载一个消息框”

toufawenzi 2004-04-04 03:18:55

公司要求在打开网页首页的时候,自动弹出一个小的通知网页,请多多指教怎么
编写这段程序! 我们的首页程序好像是: index.asp
在Dreamweaver Mx 下打开是

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>

<body>
</body>
</html>

但在记事本下打开为

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>::::长江有限公司::::</title>
<bgsound src="Images/laputa.mid" loop="infinite">
</head>

<frameset rows="0,*" cols="*" framespacing="0" frameborder="no" border="0">
<frame src="Images/Sound.htm" name="top" frameborder="no" id="top">
<frame src="index2.asp" name="main" frameborder="no" noresize id="main">
</frameset>
<noframes><body>

</body></noframes>
</html>

...全文
98 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
风流才子 2004-04-04
  • 打赏
  • 举报
回复
就是一个window.open
toufawenzi 2004-04-04
  • 打赏
  • 举报
回复
谢谢各位的指教
老兄,可以解释清楚点吗?

("hwj044.asp","","toolbar=no,location=no,resizable=yes,directories=no,status=no,menubar=no,scrollbars=yes,width=550,height=240,top=0,left=0");


同时可否解释一哈这个写法:<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
</head>

<frameset rows="0,*" cols="*" framespacing="0" frameborder="no" border="0" onLoad="MM_openBrWindow('pop.htm','pop','width=450,height=380')">
<frame src="Images/Sound.htm" name="top" frameborder="no" id="top">
<frame src="index2.asp" name="main" frameborder="no" noresize id="main">
</frameset>


lawdoor 2004-04-04
  • 打赏
  • 举报
回复
<script language=javascript>
window.open("hwj044.asp","","toolbar=no,location=no,resizable=yes,directories=no,status=no,menubar=no,scrollbars=yes,width=550,height=240,top=0,left=0");
</script>
vvfish119 2004-04-04
  • 打赏
  • 举报
回复
<noframes><body>

</body></noframes>
这个地方加
<noframes><body onload=window.open("xxx.asp")>

</body></noframes>
qxg1123 2004-04-04
  • 打赏
  • 举报
回复
说的不清楚
是不是就是window.open呢

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧