日期:2014-05-17 浏览次数:20456 次
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> <!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" lang="zh-cn"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="author" content="Tank,Scrat,xiaoyuehen" /> <meta name="keywords" content="网页设计,XHTML,CSS,DIV,XHTML标准,WEB标准,WEB标准教程,网站重构, CSS布局, XHTML+CSS,layout, usability,搜集库,soujiku, CSS+DIV" /> <meta name="description" content="web标准教程站点,推动web标准在中国的应用." /> <title>modal box demos</title> <link type="text/css" rel="stylesheet" href="style.css" /> <script type="text/javascript" src="../scripts/jquery.js"></script> <script type="text/javascript" src="../scripts/bgiframe.js"></script> <link type="text/css" rel="stylesheet" href="../source/modalbox.css" /> <script type="text/javascript" src="../source/modalbox.js"></script> <script type="text/javascript"> $(document).ready(function(){ /* $(".test").bgiframe(); $(".test h2").mousedown(function(){ $(".test:eq(0)").ppdrag(); }); */ $("#testbutton").click(function(){ //$.modalbox.show(); $.modalbox.show({ modal: true, contentType: "url", content: "child.aspx" }); }); $("#resizebutton").click(function(){ $.modalbox.resize({w: 300, h: 400}); }); $("#movebutton").click(function(){ $.modalbox.moveto({x: 40, y: 60}); }); $("#closebutton").click(function(){ $.modalbox.close(); }); $(".modalbox-button-ok").click(function (){ //$("#TextBox1").val() //alert ('ccc'); } ) //$.modalbox.show(); }) </script> <style type="text/css"> .test { clear: both; /* position: absolute; left: 100px; top: 50px; z-index: 4; */ border: 1px solid blue; width: 200px; height: 400px; } </style> </head> <body> <input type="button" id="testbutton" value="测试一下" /> <div class="test" id="Dtest"> <h2>title</h2> 网页设计,XHTML,CSS,DIV,XHTML标准,WEB标准,WEB标准教程,网站重构, CSS布局, XHTML+CSS,layout, usability,搜集库,soujiku, CSS+DIV </div> </body> </html>
var k = window.showModalDialog("../WarningMessage.htm", window, "dialogWidth:420px;status:no;dialogHeight:300px"); if (k != null && k == "true") return true; else return false;
------解决方案--------------------
学习精神值得鼓励。
--
如果不是另一个页面的,而只是一个div仿窗口的话,就可以直接获取。
document就行。
------解决方案------------------