2012年3月31日

转 JS中showModalDialog 详细使用

摘要: 基本介绍: showModalDialog() (IE 4+ 支持) showModelessDialog() (IE 5+ 支持) window.showModalDialog() 方法用来创建一个显示HTML内容的模态对话框。 window.showModelessDialog() 方法用来创建一个显示HTML内容的非模态对话框。 使用方法: vReturnValue = window.showModalDialog(sURL [, vArguments] [,sFeatures]) vReturnValue = window.showModelessDialog(sURL [... 阅读全文

posted @ 2012-03-31 14:27 blogMe 阅读(159) 评论(0) 推荐(0)

2012年3月30日

转 js中window对象详解

摘要: 一.说明:他是JS中最大的对象,它描述的是一个浏览器窗口,一般要引用他的属性和方法时,不需要用“Window.XXX”这种形式,而是直接使用“XXX”。一个框架页面也是一个窗口。二.Window窗口对象有如下属性。 1.name 窗口的名称,由打开它的连接(<a target="...">)或框架页(<frame name="...">)或某一个窗口调用的 open() 方法(见下)决定。一般我们不会用这个属性。 2.status 指窗口下方的“状态栏”所显示的内容。通过对 status 赋值,可以改变状态栏的显示。 3.open 阅读全文

posted @ 2012-03-30 15:21 blogMe 阅读(418) 评论(0) 推荐(0)

转 document对象详解

摘要: JS中document对象详解对象属性 document.title //设置文档标题等价于HTML的<title>标签 document.bgColor //设置页面背景色 document.fgColor //设置前景色(文本颜色) document.linkColor //未点击过的链接颜色 document.alinkColor //激活链接(焦点在此链接上)的颜色 document.vlinkColor //已点击过的链接颜色 document.URL //设置URL属性从而在同一窗口打开另一网页 document.fileCreatedDate //文件建立日期,... 阅读全文

posted @ 2012-03-30 15:20 blogMe 阅读(927) 评论(0) 推荐(0)

2012年3月28日

Http请求&GB2312编码

摘要: 1 string httpurl = "http://www.baidu.com/";2 HttpWebRequest req = (HttpWebRequest)WebRequest.Create(httpurl);3 //发送Http请求(即发送短信)4 HttpWebResponse resp = (HttpWebResponse)req.GetResponse();5 //创建返回对象6 StreamReader reader = new StreamReader(resp.GetResponseStream(), Encoding.GetEncoding(&quo 阅读全文

posted @ 2012-03-28 15:49 blogMe 阅读(829) 评论(0) 推荐(0)

导航