나는 안드로이드 웹 카탈로그를 만들고 있는데, 그 이유 때문에 iframe을 사용해야했다. 그러나 iframe의 버튼을 클릭하여 기본 페이지에서 코드를 작동시키는 것이 가능한지 묻고 싶습니다. iframe의 대상 버튼은 무엇입니까?
이
은 내가 가진 코드 : function initFastButtons() {
new FastButton(document.getElementById("CloseButton"), runclose);
new FastButton(document.getElementById("OpenButton"), runopen);
};
function runclose() {
$('.full-preview-viewer').hide();
};
function runopen() {
$('.full-preview-viewer').show();
};
그리고 이것은 iframe에 버튼이 모습입니다 :
이<input id="OpenButton" type="image" src="products/special/product1.png" name="image" width="336" height="593"></input>
덕분에 모두가
안녕하세요 제이슨, 조금 혼란 스러워요. '; I는 [iframe이 (http://www.nightlifebratislava.com/demos/mobile7/special.html) parent.runopen '()를 실행하는 기능을 실행하는 별도 jQuery 코드를 만들었다. 하지만 작동하지 않습니다 (PC에서도 작동하지 않지만 정상입니다). [여기에 메인 페이지가 있습니다] (http://www.nightlifebratislava.com/demos/mobile7) – pufAmuf
그것은 고맙습니다! – pufAmuf