子宫糜烂如何治疗好:打开网页的时候自动弹出FLASH广告的代码!

来源:百度文库 编辑:杭州交通信息网 时间:2024/04/29 05:40:25
在JSP的页面中弹出FLASH广告
最好是在网页的最上方,几秒后自动消失的那种

网站上弹出flash广告代码
在网页里加上如下的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]