




免费预览已结束,剩余1页可下载查看
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
关于js的定时问题,有以下两种解决方案:1、 setTimeout(function()$(#about-text-6).toggle(slow);,2000);只执行一次,2、 setInterval(function()$(#about-text-6).toggle(slow);,2000);每隔2s后自动执行一次,知道网页被关闭 function trim(str) /删除左右两端的空格 return str.replace(/(s*)|(s*$)/g, ); function ltrim(str) /删除左边的空格 return str.replace(/(s*)/g,); function rtrim(str) /删除右边的空格 return str.replace(/(s*$)/g,); js打开新窗口方法代码收集 2009-08-12 15:17 1,打开新窗口全屏 bluefunction ow(owurl)var tmp=window.open(about:blank,fullscreen=1)tmp.moveTo(0,0)tmp.resizeTo(screen.width+20,screen.height)tmp.focus()tmp.location=owurlblog2,打开新窗口固定大小 open1open2open33,默认大小开启 /tmtC_winMaximizer if (document.layers) var larg=screen.availWidth-10; var altez=screen.availHeight-20; else var larg=screen.availWidth-2; var altez=screen.availHeight; self.resizeTo(larg,altez); self.moveTo(0,0); /tmtC_winMaximizerEnd 4,正常打开打开一个弹出窗口 function WinOpen() mesg=open(cnrose,DisplayWindow,toolbar=no,menubar=no,location=no,scrollbars=no);mesg.document.write(中国asp之家);mesg.document.write(http:/www.aspxhome);a5,Chromeless Window For IE6 SP1 Chromeless Window/*- Special Thanks For andot -*/*This following code are designed and writen by Windy_sk You can use it freely, but u must held all the copyright items!*/*- Thanks For andot Again -*/var CW_width = 400;var CW_height = 300;var CW_top = 100;var CW_left = 100;var CW_url = /bluebook/;var New_CW = window.createPopup();var CW_Body = New_CW.document.body;var content = ;var CSStext = margin:1px;color:black; border:2px outset;border-style:expression(onmouseout=onmouseup=function()this.style.borderStyle=outset, onmousedown=function()if(event.button!=2)this.style.borderStyle=inset);background-color:buttonface;width:16px;height:14px;font-size:12px;line-height:11px;cursor:Default;/Build Windowinclude.startDownload(CW_url, function(source)content=source);function insert_content()var temp = ;CW_Body.style.overflow = hidden;CW_Body.style.backgroundColor = white;CW_Body.style.border = solid black 1px;content = content.replace(/*)/g,);temp += ;temp += ;temp += Chromeless Window For IE6 SP1;temp += ;temp += ?;temp += 0;temp += 1;temp += x;temp += ;temp += ;temp += content;temp += ;temp += ;CW_Body.innerHTML = temp;setTimeout(insert_content(),1000);var if_max = true;function show_CW()window.moveTo(10000, 10000);if(if_max)New_CW.show(CW_top, CW_left, CW_width, CW_height);if(typeof(New_CW.document.all.include)!=undefined)New_CW.document.all.include.style.width = CW_width;New_CW.document.all.Max.innerText = 1; elseNew_CW.show(0, 0, screen.width, screen.height);New_CW.document.all.include.style.width = screen.width;window.onfocus = show_CW;window.onresize = show_CW;/ Move Windowvar drag_x,drag_y,draging=falsefunction drag_move(e)if (draging)New_CW.show(e.screenX-drag_x, e.screenY-drag_y, CW_width, CW_height);return false;function drag_down(e)if(e.button=2)return;if(New_CW.document.body.offsetWidth=screen.width & New_CW.document.body.offsetHeight=screen.height)return;drag_x=e.clientX;drag_y=e.clientY;draging=true;e.srcElement.setCapture();function drag_up(e)draging=false;e.srcElement.releaseCapture();if(New_CW.document.body.offsetWidth=screen.width & New_CW.document.body.offsetHeight=screen.height) return;CW_top = e.screenX-drag_x;CW_left = e.screenY-drag_y;6,打开即全屏 js打开新窗口方法代码收集 - 中国asp之家 - = 4)if (navigator.appName=Netscape)var MachakFull=window.open(other,MachakFull,scrollbars=yes,width=+x+,height=+y+,top=0,left=0);MachakFull.moveTo(0,0);MachakFull.resizeTo(x,y);if (navigator.appName=Microsoft Internet Explorer)window.open(Ie,MachakFull,fullscreen=yes);else window.open(other,sub,scrollbars=yes);function MM_goToURL() /v3.0var i, args=MM_goToURL.arguments; document.MM_returnValue = false;for (i=0; iwindow.open(/,fullscreen=1);window.close();7,网页对话框 window.onload=function()var features=status:0;dialogWidth:470px;dialogHeight:470px;dialogTop:100px;dialogLeft:100px;resizable:0;scroll:0;center:1;showModelessDialog(http:/www.aspxhome/,window,features);function show(laysn)var obj;obj=
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 跨境电子商务双语教程 习题和答案Chapter 1
- 提高病区住院患者入院健康教育知晓率质量改进项目
- 供水管网更新后的负荷测试方案
- 消防电梯设计与安装方案
- 建筑工程项目基础施工质量控制方案
- 基坑支护技术方案设计
- 鸡场农药使用与管理
- 水利项目土地利用方案
- 二零二五年度二手房购房定金合同样本(含违约责任细则)
- 二零二五年股权对赌协议转让合同:创业公司股权
- 2023年建筑工程施工现场安全管理资料全套样本方案模板
- 妊娠期合并症-心脏病的护理(妇产科学课件)
- 急救护理学高职PPT完整全套教学课件
- AutoCAD计算机辅助设计标准教程(中职)PPT完整全套教学课件
- 安全生产费用使用范围及计量办法
- 肾脏疾病常见症状和诊疗
- 安全环保职业卫生消防题库及答案
- 金X绅士无双攻略
- 第八章 立体几何初步(章末复习) 高一数学 课件(人教A版2019必修第二册)
- GB/T 27518-2011西尼罗病毒病检测方法
- GB/T 26255-2022燃气用聚乙烯(PE)管道系统的钢塑转换管件
评论
0/150
提交评论