通常我们要判断某个元素是否存在是用:[javascript]view plaincopyif(document.getElementById('example')){//dosomething}else{//dosomethingelse}然而在使用jQuery时,我们可以使用:[javascrip...
分类:
Web程序 时间:
2014-07-30 20:17:44
阅读次数:
269
js引用:jquery-1.8.3.min.js效果图: 代码: 1 2 3 4 New Document 5 6 7 8 9 10 62 63 64 65 66 67 68 ...
分类:
其他好文 时间:
2014-07-30 20:15:34
阅读次数:
208
Document 对象每个载入浏览器的 HTML 文档都会成为 Document 对象。Document 对象使我们可以从脚本中对 HTML 页面中的所有元素进行访问。提示:Document 对象是 Window 对象的一部分,可通过 window.document 属性对其进行访问。Documen...
分类:
Web程序 时间:
2014-07-30 17:15:34
阅读次数:
413
用JDOM解析并输出user.xml
用户ID
用户名
密码
真实姓名
年龄
性别
<% // 得到数据
SAXBuilder builder=new SAXBuilder(); // 创建对象
// 建立Document对象
Document readDocument=builder.build(pageCo...
分类:
Web程序 时间:
2014-07-30 14:56:13
阅读次数:
223
注意:在编写代码前,请确保该Web目录下的"WEB-INF/lib"下包含jdom.jar包!
<%
// 所有的XML元素都是Element的实例,根元素也不例外
Element rootElement=new Element("users");
// 以根元素作为参数创建Document对象。一个Document只有一个根,即root元素。
Document myD...
分类:
Web程序 时间:
2014-07-30 12:26:23
阅读次数:
242
<!doctype html> <html> <head> ??? <meta charset="UTF-8"> ??? <title>Document</title> ??? <style type="text/css"> ???????? body{ ??????????? margin: 0; ?????????...
分类:
编程语言 时间:
2014-07-30 10:15:53
阅读次数:
271
编辑模式 浏览模式 设置焦点
//在使用前需要Webbrowser已经浏览过一个网页 否则错误 uses MSHTML;
///获取Webbrowser编辑模式里面的内容procedure EditMode();begin(Form1.WebBrowser1.Document as IHTMLDoc...
分类:
其他好文 时间:
2014-07-29 21:47:12
阅读次数:
312
网页放大 网页缩小 WebBrowser1.OleObject.Document.Body.Style.Zoom := 0.50;
缩放网页 Ctrl+中键↑ 放大 Ctrl+中键↓ 缩小 constOLECMDID_OPTICAL_ZOOM = 63;varZoomIn: OleVariant;b...
分类:
Web程序 时间:
2014-07-29 21:46:42
阅读次数:
334
///HTML组件///后面的字符串为这个控件的ID号///直线Line(WebBrowser1.Document as IHTMLDocument2).execCommand('InsertHorizontalRule', True, '');///按钮Button(WebBrowser1.Doc...
分类:
Web程序 时间:
2014-07-29 21:39:42
阅读次数:
303
超链接 /取消超链接
插入/取消 书签
插入图片
粘贴图上CTRL+v
截图
插入表情GIF WEB背景色
WEB背景图片 WebBrowser1.OleObject.document.getElementById('bgDiv').currentStyle.BackGroundImage WebB...
分类:
其他好文 时间:
2014-07-29 21:38:42
阅读次数:
247