'전환'버튼을 사용하여 외부 .js 파일의 답변을 표시하거나 숨기려면 어떻게해야합니까? 코드에 액세스 할 수 있다면 div에 응답을 래핑 할 수 있지만 외부 .js 파일이므로 가능합니까?외부 .js 파일의 일부 표시/숨기기
을 Heres 바이올린 & 코드 :
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$(".pds-pd-link").hide();
$(".a2a_dd.pds-share").hide();
$(".pds-box").width(220);
});
</script>
<script type="text/javascript" charset="utf-8" src="http://static.polldaddy.com/p/5968383.js"></script>
<noscript><a href="http://polldaddy.com/poll/5968383/">This is a test question ?</a></noscript>
무엇이 문제입니까? – Starx
음 ... 나는 정말로 얻지 못합니다. Btw 귀하의 설문 조사 polldaddy에서오고있다면 아마도 당신은 원본 페이지와 다른 서버에있는 iframe을 만드는 JS를 포함하고 있습니다. 이 경우 다른 도메인에서 온 것이기 때문에 iframe에서 작동 할 수 없습니다. – Napolux