All work and no play makes Jack a dull boy.

只会用功不玩耍,聪明孩子也变傻

  IT博客 :: 首页 :: 联系 :: 聚合  :: 管理
  8 Posts :: 0 Stories :: 1 Comments :: 0 Trackbacks

在网页里加上如下的js代码
<script language=javascript type=text/javascript>
<!--
var win= null;
function openWindow(mypage,w,h,myname){
var winl = (screen.width-w)/2;
var wint = (screen.height-h)/2;
settings='height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=no,toolbar=no,location=no,status=no,menubar=no,resizable=no'
win=window.open(mypage,myname,settings)
if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}
//-->
</script>


//flash的按钮的action为下面的代码

on (press) {
getURL("javascript:openWindow('http://appleshow.cn/index.htm','1024','700','apple')");
}
[/code]

posted on 2005-10-09 10:44 html 阅读(2084) 评论(0)  编辑 收藏 引用
只有注册用户登录后才能发表评论。