当前位置: 首页 > news >正文

弹出窗口生成器

< HTML >
< HEAD >
< title > 弹出窗口生成器 </ title >
< STYLE  type ="text/css" >
<!--
BODY 
{ font-family : "宋体" ; ; font-size :  9pt ;  margin-top :  0px }
.pt9 
{   font-family :  "宋体" ;  font-size :  9pt }
td 
{  font-size :  9pt  }
-->
</ STYLE >
< script  Language ="JavaScript" >
function  popup(url, name, width, height)
{
settings
=
" toolbar=yes,location=yes,directories=yes, " +
" status=no,menubar=no,scrollbars=yes, " +
" resizable=yes,width= " + width + " ,height= " + height;
MyNewWindow
= window.open( "" + url,name,settings);
}
function  testmywindow()
{
result
= new  Array( 7 );
for  (i = 1 ; i <= 7 ; i ++ ){result[i] = " no " };
with  (document.detectform)
{
if  (R1[ 0 ].checked) {result[ 1 ] = " yes " };
if  (R2[ 0 ].checked) {result[ 2 ] = " yes " };
if  (R3[ 0 ].checked) {result[ 3 ] = " yes " };
if  (R4[ 0 ].checked) {result[ 4 ] = " yes " };
if  (R5[ 0 ].checked) {result[ 5 ] = " yes " };
if  (R6[ 0 ].checked) {result[ 6 ] = " yes " };
if  (R7[ 0 ].checked) {result[ 7 ] = " yes " };
settings
= " toolbar= " + result[ 1 ] + " ,location= " + result[ 2 ] + " ,directories= " + result[ 3 ] + " ,status= " + result[ 4 ] + " ,menubar= " + result[ 5 ] + " ,scrollbars= " + result[ 6 ] + " ,resizable= " + result[ 7 ] + " ,width= " + newwidth.value + " ,height= " + newheight.value;
code.value
= " \<a href=\ " #\ "  onClick=\ " MyWindow = window.open(\ ' "+url.value+"\ ' ,\ ' MyWindow\ ' ,\ ' "+settings+"\ ' )\;\ " >这里是打开窗口的代码</a> " ;
}
}
</ script >
</ HEAD >

< BODY  leftmargin =0  topmargin =0  marginwidth ="5"  marginheight ="0"  bgcolor ="#FFFFFF"  link ="#000000"  vlink ="#000000" >
< p > &nbsp;   </ p >
< div  align ="center" ></ div >
< div  align ="center" ></ div >
< table  align ="CENTER"  width ="362" >
  
< tr  valign ="top" >  
    
< td  height ="610" >  
      
< h1  align ="center" >   < font  color ="#C40000"  face ="Arial" > 弹出窗口生成器 </ font >  
      
</ h1 >
      
< form  name ="detectform" >
        
< div  align ="center" >  
          
< center >
            
< table  border ="1"  width ="323" >
              
< tr >  
                
< td  bgcolor ="#C0C0C0"  colspan ="2" >  
                  
< div  align ="center" >  
                    
< center >
                      打开哪个窗口? 
                    
</ center >
                  
</ div >
                
</ td >
              
</ tr >
              
< tr  align ="center" >  
                
< td  bgcolor ="#E4E4E4"  colspan ="2" >  
                  
< div  align ="center" >  
                    
< center >
                      
< font  color ="#000000" >< strong >  
                      
< p >  
                        
< input
              
type ="text"  name ="url"  size ="30"  value ="http://www.google.com" >
                      
</ strong ></ font >  
                    
</ center >
                  
</ div >
                
</ td >
              
</ tr >
              
< tr  align ="center" >  
                
< td  bgcolor ="#C0C0C0"  colspan ="2" >  
                  
< div  align ="center" >  
                    
< center >
                      
< p > 窗口设置参数 
                    
</ center >
                  
</ div >
                
</ td >
              
</ tr >
              
< tr  align ="center" >  
                
< td  bgcolor ="#E4E4E4" >< font  color ="#000000"  face ="Arial, Helvetica, sans-serif" > toolbar 
                  = 
</ font ></ td >
                
< td  bgcolor ="#E4E4E4" >< font  color ="#000000"  face ="Arial, Helvetica, sans-serif" > yes 
                  
< input  type ="radio"  value ="V15"  name ="R1"
              checked
>
                  | no 
                  
< input  type ="radio"  name ="R1"  value ="V16" >
                  
</ font ></ td >
              
</ tr >
              
< tr  align ="center" >  
                
< td  bgcolor ="#E4E4E4" >< font  color ="#000000"  face ="Arial, Helvetica, sans-serif" > location 
                  = 
</ font ></ td >
                
< td  bgcolor ="#E4E4E4" >< font  color ="#000000"  face ="Arial, Helvetica, sans-serif" > yes 
                  
< input  type ="radio"  value ="V17"  name ="R2"
              checked
>
                  | no 
                  
< input  type ="radio"  name ="R2"  value ="V18" >
                  
</ font ></ td >
              
</ tr >
              
< tr  align ="center" >  
                
< td  bgcolor ="#E4E4E4" >< font  color ="#000000"  face ="Arial, Helvetica, sans-serif" > directories 
                  = 
</ font ></ td >
                
< td  bgcolor ="#E4E4E4" >< font  color ="#000000"  face ="Arial, Helvetica, sans-serif" > yes 
                  
< input  type ="radio"  value ="V19"  name ="R3"
              checked
>
                  | no 
                  
< input  type ="radio"  name ="R3"  value ="V20" >
                  
</ font ></ td >
              
</ tr >
              
< tr  align ="center" >  
                
< td  bgcolor ="#E4E4E4" >< font  color ="#000000"  face ="Arial, Helvetica, sans-serif" > status 
                  = 
</ font ></ td >
                
< td  bgcolor ="#E4E4E4" >< font  color ="#000000"  face ="Arial, Helvetica, sans-serif" > yes 
                  
< input  type ="radio"  value ="V21"  name ="R4"
              checked
>
                  | no 
                  
< input  type ="radio"  name ="R4"  value ="V22" >
                  
</ font ></ td >
              
</ tr >
              
< tr  align ="center" >  
                
< td  bgcolor ="#E4E4E4" >< font  color ="#000000"  face ="Arial, Helvetica, sans-serif" > menubar 
                  = 
</ font ></ td >
                
< td  bgcolor ="#E4E4E4" >< font  color ="#000000"  face ="Arial, Helvetica, sans-serif" > yes 
                  
< input  type ="radio"  value ="V23"  name ="R5"
              checked
>
                  | no 
                  
< input  type ="radio"  name ="R5"  value ="V24" >
                  
</ font ></ td >
              
</ tr >
              
< tr  align ="center" >  
                
< td  bgcolor ="#E4E4E4" >< font  color ="#000000"  face ="Arial, Helvetica, sans-serif" > scrollbars 
                  = 
</ font ></ td >
                
< td  bgcolor ="#E4E4E4" >< font  color ="#000000"  face ="Arial, Helvetica, sans-serif" > yes 
                  
< input  type ="radio"  value ="V25"  name ="R6"
              checked
>
                  | no 
                  
< input  type ="radio"  name ="R6"  value ="V26" >
                  
</ font ></ td >
              
</ tr >
              
< tr  align ="center" >  
                
< td  bgcolor ="#E4E4E4" >< font  color ="#000000"  face ="Arial, Helvetica, sans-serif" > resizable 
                  = 
</ font ></ td >
                
< td  bgcolor ="#E4E4E4" >< font  color ="#000000"  face ="Arial, Helvetica, sans-serif" > yes 
                  
< input  type ="radio"  value ="V27"  checked
              name
="R7" >
                  | no 
                  
< input  type ="radio"  name ="R7"  value ="V28" >
                  
</ font ></ td >
              
</ tr >
              
< tr  align ="center" >  
                
< td  bgcolor ="#E4E4E4" >< font  color ="#000000"  face ="Arial, Helvetica, sans-serif" > width 
                  = 
</ font ></ td >
                
< td  bgcolor ="#E4E4E4" >< font  color ="#000000"  face ="Arial, Helvetica, sans-serif" >  
                  
< input  type ="text"  name ="newwidth"  size ="3"
              value
="600" >
                  
</ font ></ td >
              
</ tr >
              
< tr  align ="center" >  
                
< td  bgcolor ="#E4E4E4" >< font  color ="#000000"  face ="Arial, Helvetica, sans-serif" > height 
                  =
&nbsp;   </ font ></ td >
                
< td  bgcolor ="#E4E4E4" >< font  color ="#000000"  face ="Arial, Helvetica, sans-serif" >  
                  
< input  type ="text"  name ="newheight"  size ="3"
              value
="300" >
                  
</ font ></ td >
              
</ tr >
              
< tr  align ="center" >  
                
< td  colspan ="2"  bgcolor ="#C0C0C0" >  
                  
< div  align ="center" >  
                    
< center >
                      
< p >< font  color ="#FFFFFF" >  
                        
< input
              
type ="button"  value ="生成代码"  name ="B1"  onClick ="testmywindow()"  class ="pt9" >
                        
< br >
                        
< input  type ="reset"  value ="清除重写"  name ="B2"  class ="pt9" >
                        
</ font >  
                    
</ center >
                  
</ div >
                
</ td >
              
</ tr >
            
</ table >   
            
< div  align ="center" > 这里是生成的代码: < br >
            
</ div >
          
</ center >
        
</ div >
        
< div  align ="center" >  
          
< center >
            
< p >  
              
< textarea  rows ="8"  name ="code"  cols ="50"  wrap ="VIRTUAL"  class ="pt9" ></ textarea >
            
</ p >
          
</ center >
        
</ div >
        
</ form >
      
    
</ td >
  
</ tr >
</ table >
</ HTML >

相关文章:

  • VTK的学习资源
  • 时代亿信身份认证成功案例——武警森林部队SID安全身份认证及访问控制系统...
  • Vala 编程语言以及相关的开源软件
  • 求一个Turbo Delphi Pro版本的下载地址啊~
  • k个最大的数及变种小结
  • [Prism]Composite Application Guidance for WPF(9)——命令
  • 最受 Web 开发者欢迎的 NoSQL 和关系数据库
  • ASP.NET MVC Preview 5 and Form Posting Scenarios
  • 洛谷P2726 阶乘 Factorials 数学
  • COM+中怎么公用一个数据层接口
  • JAVA常见算法题(十七)
  • Node 版本管理
  • XNA Game Stdio 3.0 发布了
  • (转)淘淘商城系列——使用Spring来管理Redis单机版和集群版
  • 可能出现的问题
  • css的样式优先级
  • docker python 配置
  • docker-consul
  • Intervention/image 图片处理扩展包的安装和使用
  • JavaScript DOM 10 - 滚动
  • javascript从右向左截取指定位数字符的3种方法
  • Java比较器对数组,集合排序
  • JS数组方法汇总
  • Redis中的lru算法实现
  • spring boot下thymeleaf全局静态变量配置
  • uva 10370 Above Average
  • 代理模式
  • 干货 | 以太坊Mist负责人教你建立无服务器应用
  • 前端知识点整理(待续)
  • 设计模式(12)迭代器模式(讲解+应用)
  • 算法系列——算法入门之递归分而治之思想的实现
  • ​七周四次课(5月9日)iptables filter表案例、iptables nat表应用
  • ​什么是bug?bug的源头在哪里?
  • !$boo在php中什么意思,php前戏
  • # Swust 12th acm 邀请赛# [ E ] 01 String [题解]
  • #我与虚拟机的故事#连载20:周志明虚拟机第 3 版:到底值不值得买?
  • $GOPATH/go.mod exists but should not goland
  • (13):Silverlight 2 数据与通信之WebRequest
  • (java版)排序算法----【冒泡,选择,插入,希尔,快速排序,归并排序,基数排序】超详细~~
  • (pojstep1.1.1)poj 1298(直叙式模拟)
  • (超简单)构建高可用网络应用:使用Nginx进行负载均衡与健康检查
  • (二)JAVA使用POI操作excel
  • (仿QQ聊天消息列表加载)wp7 listbox 列表项逐一加载的一种实现方式,以及加入渐显动画...
  • (附源码)spring boot网络空间安全实验教学示范中心网站 毕业设计 111454
  • (附源码)springboot金融新闻信息服务系统 毕业设计651450
  • (附源码)springboot学生选课系统 毕业设计 612555
  • (附源码)ssm高校志愿者服务系统 毕业设计 011648
  • (附源码)基于SpringBoot和Vue的厨到家服务平台的设计与实现 毕业设计 063133
  • (一)Dubbo快速入门、介绍、使用
  • (转)es进行聚合操作时提示Fielddata is disabled on text fields by default
  • .NET : 在VS2008中计算代码度量值
  • .net core webapi 大文件上传到wwwroot文件夹
  • .NET和.COM和.CN域名区别
  • .net流程开发平台的一些难点(1)
  • .NET文档生成工具ADB使用图文教程