论坛交流
首页办公自动化| 网页制作| 平面设计| 动画制作| 数据库开发| 程序设计| 全部视频教程
应用视频: Windows | Word2007 | Excel2007 | PowerPoint2007 | Dreamweaver 8 | Fireworks 8 | Flash 8 | Photoshop cs | CorelDraw 12
编程视频: C语言视频教程 | HTML | Div+Css布局 | Javascript | Access数据库 | Asp | Sql Server数据库Asp.net  | Flash AS
当前位置 > 文字教程 > Javascript教程
Tag:验证,特效,入门,实例,验证,表单,特效,正则表达式,跑马灯,document,函数,代码,getElementByID,菜单,图片,视频教程

JavaScript教程_设置弹出窗口的属性

文章类别:Javascript | 发表日期:2010-3-25 15:24:59

JavaScript教程_设置弹出窗口的属性

21视频教程网3月25日整理

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
       <head>
              <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
              <title>HTML 弹出页面示例</title>
              <script type="text/javascript">
                     function popup()
                     {
                            window.open("列表2.html","newwin", "toolbar=no,height=240,width=390,menubar=no,   scrollbars=no,   resizable=no,location=no,   status=no,titlebar=no,location,directories=no,location=no");
                            return false;
                     }
              </script>
       </head>
       <body>
              <p><a href="http://www.dreamdu.com/xhtml/">HTML教程</a> <a href="http://www.dreamdu.com/xhtml/popup/"><strong>HTML 弹出页面</strong></a></p>
              <p><a href="列表2.html" title="使用弹出页面" onclick="return popup()" onkeypress="return popup()">HTML教程弹出页面</a></p>
       </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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>

<link href="liebiao2.css" rel="stylesheet" type="text/css" />
<body >

<div class="yuehguo_t"><div class="nei">
              <div class="title"><table width="378"  border="0" cellpadding="0" cellspacing="0" class="table">
                                                        <tr>
                                                                      <td width="45">&nbsp; </td>
                                                                      <td width="257">&nbsp;</td>
                                                                      <td width="76" align="center"><div  style=" height: 15px; width: 45px; margin-top: 10px; font-family: '宋体';">
                                                                                    <h3><span class="guangbi"><a href="#">关 闭</a></span></h3>
                                                                      </div>                                                                      </td>
                                                        </tr>
                            </table></div>
              
              <div class="miid_ddg">
                            <table  class="toxxg"width="330" border="0" cellspacing="0" cellpadding="0">
                                          <tr>
                                                        <td width="102" ><span ><img src="images/tshziltu_r2_c2.gif" /></span> </td>
                                                        <td width="248" align="left" >
                                                        <span class="shuoxxm1">你还可以:</span>
                                                        
                                                        <div class="shuoxxm" >
                                                                      <ul><li><a href="#">完善</span></a></li>
                                                                      <li><a href="#">完善</span></a></li>
                                                                      <li><a href="#">上传</a></li>
                                                                      </ul>
                                                                      </div></td>
                                          </tr>
              </table>
                            <div class="cao"><table  style="background-repeat:no-repeat"width="376" height="60" border="0" cellpadding="0" cellspacing="0" >
                                          <tr>
                                                        <td align="center" valign="bottom" background="images/cao_r2_c2.gif"><img src="images/yihouzaish2_r2_c2.gif" width="74" height="23" />&nbsp;</td>
                                          
              </tr>
              </table>
              </div>
                                          <div class="clear"></div>
                             <div class="clear"></div>
              </div><!--end-->
                                   
</div>
</div>


</body>
</html>

JavaScript教程/编

视频教程列表
文章教程搜索
 
Javascript推荐教程
Javascript热门教程
看全部视频教程
购买方式/价格
购买视频教程: 咨询客服
tel:15972130058