查看: 627|回复: 14
|
跳出小窗口的代号
[复制链接]
|
|
求跳出小窗口的代号
意思就是进去一个地址后 ,会自动出现一个小窗口...

像这样小小个的...
有人会吗? |
|
|
|
|
|
|
|
发表于 6-4-2006 08:54 PM
|
显示全部楼层
|
|
|
|
|
|
|
发表于 7-4-2006 12:10 AM
|
显示全部楼层
<body onload="window.open('aaa.htm','title','width=300,height=200')"> |
|
|
|
|
|
|
|

楼主 |
发表于 7-4-2006 12:34 AM
|
显示全部楼层
原帖由 belon_cfy 于 7-4-2006 12:10 AM 发表
<body onload="window.open('aaa.htm','title','width=300,height=200')">
谢谢..
可惜都会被 pop-up
不然的话,可以用来放广告
本来是想用 iflame 的..
可惜, resize 不成功(internet explorar)
在 firefox 就正常... |
|
|
|
|
|
|
|

楼主 |
发表于 7-4-2006 12:41 AM
|
显示全部楼层
|
|
|
|
|
|
|
发表于 7-4-2006 01:05 AM
|
显示全部楼层
|
|
|
|
|
|
|
发表于 7-4-2006 01:15 AM
|
显示全部楼层
原帖由 powershotman 于 7-4-2006 12:41 AM 发表
http://www.booksky.biz
这个不懂用什麽方法, 就是进去后,不管你按什麽后,就会出现广告出来...
请问有这样的功能吗??
我按了没有事发生的?? |
|
|
|
|
|
|
|

楼主 |
发表于 7-4-2006 01:46 PM
|
显示全部楼层
原帖由 lEkiss 于 7-4-2006 01:05 AM 发表
ifame 应该做不到...
其实我是想在里面放广告的...
用 ifame , 不懂为什麽不懂 resize ... (internet explorar)
在 firefox 那里看就可以...
大家懂什麽问题吗? |
|
|
|
|
|
|
|

楼主 |
发表于 7-4-2006 01:47 PM
|
显示全部楼层
原帖由 红发 于 7-4-2006 01:15 AM 发表
我按了没有事发生的??
我想可能是我早前按 allow pop-up
那么就是讲要 allow pop-up 才能看到 @@"
还有, ifame 有办法吗? |
|
|
|
|
|
|
|
发表于 8-4-2006 04:17 PM
|
显示全部楼层
原帖由 powershotman 于 7-4-2006 01:47 PM 发表
我想可能是我早前按 allow pop-up
那么就是讲要 allow pop-up 才能看到 @@"
还有, ifame 有办法吗?
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <title>Click here to open a pop-up-wind</title>
- <SCRIPT>
- function centerpopup(popupwidth,popupheight) {
- var popup_width=popupwidth
- var popup_height=popupheight
- var screen_width=window.screen.width
- var screen_height=window.screen.height
- var popup_left=Math.round((screen_width-popup_width)/2)
- var popup_top=Math.round((screen_height-popup_height)/2)
- var popupwindow=window.open("","","status,height="+popup_height+",width="+popup_width+",resizable=no,left="+popup_left+",top="+popup_top+",scrollbars=no");
- popupwindow.document.write("<HTML><HEAD></HEAD><BODY BGCOLOR=red></BODY></HTML>")
- popupwindow.document.close()
- }
- </SCRIPT>
- </head>
- <body onClick="centerpopup('400','300')">
- </body>
- </html>
复制代码
只要你一click就跑出来 |
|
|
|
|
|
|
|

楼主 |
发表于 9-4-2006 08:55 PM
|
显示全部楼层
|
|
|
|
|
|
|
发表于 9-4-2006 09:59 PM
|
显示全部楼层
|
|
|
|
|
|
|

楼主 |
发表于 9-4-2006 11:18 PM
|
显示全部楼层
原帖由 红发 于 9-4-2006 09:59 PM 发表
那些是不是你要的先?
对..刚刚测试了... |
|
|
|
|
|
|
|
发表于 10-4-2006 12:13 AM
|
显示全部楼层
原帖由 powershotman 于 9-4-2006 11:18 PM 发表
对..刚刚测试了...
给你一个比较简单的
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <title>OpenNewLink</title>
- <script type="text/javascript">
- function popupWindow(url) {
- window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=700,height=600,screenX=10,screenY=10,top=10,left=10')
- }
- </script>
- </head>
- <body onclick="javascript:popupWindow('NewLink.htm')">
- javascript:popupWindow('NewLink.htm')
- 把NewLink.htm改成你要popup的就可以了
- 上面的function你就要自己看了,
- 因该不难
- </body>
- </html>
复制代码
就这样了
Good Luck |
|
|
|
|
|
|
|

楼主 |
发表于 10-4-2006 12:02 PM
|
显示全部楼层
原帖由 红发 于 10-4-2006 12:13 AM 发表
给你一个比较简单的
[code]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>OpenNewLink</title> ...
恩... 谢谢.. 我去研究下 |
|
|
|
|
|
|
| |
本周最热论坛帖子
|