2015-01-12 2 views
0

은 내가 # ID가-6 인라인 색상 상자를 열려면이를 사용하는 것이 HTML의 colorbox의 JS에서 링크합니다 (JS 사이트에 어도비 에지 문서에 실제로) normalyjs에서 인라인 컬러 박스 링크를여시겠습니까?

를 열어야합니다 :

<a href="?width=90%&amp;height=90%&amp;inline=true#id-6" class="colorbox-inline init-colorbox-inline-processed cboxElement">test </a> 

하지만 난 JS 경험 많은 내가 인라인 색상 상자

을 보여주는 결과 아래의 5의 일부 옵션 하지만 아무도 시도하지했습니다 그것은 JS 에서 동작하지 않습니다
document.location.href="?width=90%&height=90%&inline=true#id-6"; 

window.open("?width=90%&height=90%&inline=true#id-6", "_self"); 

$.colorbox({width:"80%", height:"80%", inline:"true", href:"id-6"}); 

$.fn.colorbox({href:'#id-6', open:true, inline:true, width:'90%', height:'90%'}); 

jQuery().colorbox({width:"90%", height:"90%", inline:true, href:"?#id-6"}); 

... 

답변

0

ok, 이것이 작동하는 방식을 발견했습니다 ... 아마도 Colorbox와 Adobe Edge의 통합에 대한 추가 참조 자료로 유용 할 것입니다.

jQuery('div').colorbox({ 
    href: "#id-7", 
    inline:true, 
    innerWidth:'90%', 
    innerHeight:'90%', 
    open:true 
}); 
e.preventDefault(); 
return false; 

그리고 요 현재 DIV에 올바른 색상 상자 클래스를 추가해야합니다

colorbox 인라인 초기화-colorbox 인라인 처리 cboxElement

관련 문제