【javascript】使用window.open()实现弹出广告框
来源:互联网 发布:不定积分 软件 编辑:程序博客网 时间:2024/06/03 01:17
被引用页面:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn"><head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> <title>网页标题</title> <meta name="keywords" content="关键字列表" /> <meta name="description" content="网页描述" /> <link rel="stylesheet" type="text/css" href="" /> <style type="text/css"> *{ margin: 0; padding: 0; } #ad{ width: 693px; height: 300px; background-color: lightgreen; margin: 0 auto; } p{ font-size: 60px; font-weight: bold; color:#000; text-align: center; height: 300px; line-height: 300px; } </style> <script type="text/javascript"></script></head><body><div id="ad"> <p id="wz">welcome to website</p></div><script type="text/javascript">window.onload=function(){ setInterval("change1()",2000); //change(); setInterval("change2()",4000);}var Owz = document.getElementById("wz");function change1(){ Owz.style.color = "#fff"; }function change2(){ Owz.style.color = "#000"; }</script></body></html>
引入页面:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn"><head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> <title>网页标题</title> <meta name="keywords" content="关键字列表" /> <meta name="description" content="网页描述" /> <link rel="stylesheet" type="text/css" href="" /> <style type="text/css"></style> <script type="text/javascript"></script></head><body><script type="text/javascript">window.onload = function(){window.open("js.html","js","height=300,width=693,top=10,left=20");}</script></body></html>
0 0
- 【javascript】使用window.open()实现弹出广告框
- 在Javascript 中实现window.open弹出窗口居中显示
- 在Javascript 中实现window.open弹出窗口居中显示
- JavaScript实现动态广告弹出框
- open.window弹出窗口实现居中
- js设置window.open弹出框
- window.open弹出窗口
- window.open() 弹出窗口
- window.open() 弹出窗口
- 教你一天玩转JavaScript(四)——使用JavaScript实现定时弹出广告定时隐藏广告
- 「转载」window.open详解(javascript弹出页面)
- JAVASCRIPT之window.open的使用
- javascript里window.open()使用实例
- window.open()方法实现弹出窗居中显示
- 使用JavaScript实现滚动广告
- 使用JavaScript实现滚动广告
- window.open弹出窗口代码
- js弹出新窗口window.open
- java编程思想-异常处理-学习摘要
- key-value数据库
- poj3233矩阵的幂的和
- Thrift 介绍及java实例
- cocos2d-x中的父类和子类之间的继承关系
- 【javascript】使用window.open()实现弹出广告框
- android studio导入android studio工程小记--持续更
- android 长连接总结
- cocos2d-x 3.x之动画
- Android 闹钟 开发过程记录(七)
- Python特殊语法:filter、map、reduce、lambda [转]
- Unbuntu下搭建嵌入式QT开发环境(Tiny210)
- Windows 2008允许多用户远程登录设置
- wget for windows