2
나는 내 것이 아니며 하위 도메인에있는 도구를 가지고 있습니다 : app.domain.com
. 이 도구는 영어로되어 있으며이 사람들은 번역하고 싶지 않습니다.iframe에서 텍스트 콘텐츠 변경
그래서 iframe에서 번역하고 jQuery (Google 번역이 작동하지 않음)로 텍스트를 변경하기로 결정했으며 다른 하위 도메인에서는 apps.domain.com
입니다.
어떻게 할 수 있습니까? 이 웹에서 검색하지만 응답을 얻지 못했습니다.
이
내 코드이며, 실행 아니에요 :<iframe src="http://app.domain.com" id='inneriframe' scrolling="no"></iframe>
<script>
$(document).ready(function() {
$("#inneriframe").contents().find('body').text("Clientes");
$(this).html($(this).html().replace('Password','<span class="stars stars5">* * * * *</span>'));
$("#inneriframe").contents().text($(this).text().replace('Password','Name:'));
});
}
</script>
iframe의 콘텐츠가 다른 도메인의 콘텐츠이기 때문에 작동하지 않습니다 ... – DarkAjax