Javascript

[转]jquery取得iframe元素的方法

博客分类: 

收集利用Jquery取得iframe中元素的几种方法 :

 

Js代码

  1. $(document.getElementById('iframeId').contentWindow.document.body).htm()  

$(document.getElementById('iframeId').contentWindow.document.body).htm()

 

 显示iframe中body元素的内容。

 

Js代码

  1. $("#testId", document.frames("iframename").document).html();  

$("#testId", document.frames("iframename").document).html();

 根据iframename取得其中ID为"testId"元素

 

[转]jquery取得iframe元素的方法

博客分类: 

收集利用Jquery取得iframe中元素的几种方法 :

 

Js代码

  1. $(document.getElementById('iframeId').contentWindow.document.body).htm()  

$(document.getElementById('iframeId').contentWindow.document.body).htm()

 

 显示iframe中body元素的内容。

 

Js代码

  1. $("#testId", document.frames("iframename").document).html();  

$("#testId", document.frames("iframename").document).html();

 根据iframename取得其中ID为"testId"元素

 

鼠标的几种形状

博客分类: 

鼠标的几种形状

<INPUT   TYPE=\"submit\"   style=\"cursor:   pointer\"   value=\"hand\">  

形状值如下:
  auto                     :标准光标  
  default               :标准箭头  
  pointer                     :手形光标  
  wait                     :等待光标  
  text                     :I形光标  
  vertical-text   :水平I形光标  
  no-drop               :不可拖动光标  
  not-allowed       :无效光标  
  help                     :?帮助光标  
  all-scroll         :三角方向标  
  move                     :移动标  
  crosshair           :十字标

页面