2011-02-18 7 views

답변

1

우선, 자바 스크립트를 통해 마우스를 움직이는 메커니즘이 없습니다.

$(document).ready(function(){ 
    $(".wysiwyg").find("iframe").load(function(){ 
     var test = $(".wysiwyg").find("iframe").contents().find('body').html(); 
     //do job with the content. 
     //Remember that jwysiwyg will produse some code even if it seems there is 
     //nothing.(couse the wysiwyg is base on browser behavor 
    }); 
}); 
:

은 (당신이 jQuery를 사용하는 경우) 위의 스크립트를 사용해야은 iframe의 내용에 액세스하려면

$(".wysiwyg").find("iframe").focus(); 

을이 스크립트를 사용 iframe에 초점을 맞추려면