2013-04-10 6 views
0

prettyphoto를 사용하여 iframe에 웹 페이지를 표시하고 있습니다. 어떤 사람이 웹 페이지 http : // reference의 고유 한 값을 포함하는 요소 id를 알고 있습니까? 그들에게는 이드가 없기 때문에 나는 그것을 사용할 수 있다고 생각했다.prettyphoto iframe

감사합니다.

어딘가에 있습니다.

alert ($ ("# pp_full_res") .html());

는 "640"

= 등 등 내가 어떻게 할 수있는 나에게 = "http://xxxx.com/zzz/html"iframeborder = "no"를 높이

iframe이 SRC를 제공합니다 src 만 잡아라.

덕분에 당신이 JQuery와의 ATTR() 메소드를 사용하여 실제 iframe이 src에 도착하기 위해 위의 예에서

답변

0

건물.

var sSrc = $ ("# pp_full_res"). attr ('src'); prettyPhoto을 iniatializating 때

0

당신은 당신의 자신의 iframe을 참조를 설정할 수 있습니다

$("a[rel^='prettyPhoto']").prettyPhoto({ 
    iframe_markup: '<iframe id="name-here" name="name-here" src ="{path}" width="{width}" height="{height}" frameborder="no"></iframe>', 
});