나는 iframe의 다음 코드를 가지고 있으며 부모님의 디스플레이를 얻지 만, 이제 fancybox 예제에서 이미지 갤러리와 같은 이미지를 어떻게 만들 수 있는지 알지 못합니다. Fancybox 이미지 갤러리
은 내가 예를 들어이를 보았다$(document).ready(function() {
$('.imagen').click(function(e){
e.preventDefault();
parent.$.fancybox([
{href:'images/01.jpg', title: '01'},
{href:'images/02.jpg', title: '02'},
{href:'images/03.jpg', title: '03'}
],{
// href: this.href,
helpers: {
overlay: {...............
하지만 난 링크가 동적 될 것 때문에 것을 원하지 않는다. 나는 $(".fancybox") .attr('rel', 'gallery')
같이 사용 무언가를 좋아하고 모든 이미지 갤러리로 다음 버튼을 IMG하지만 난 내가 수정해야 할 무엇을 해달라고 볼 달성하기 위해
<a class="fancybox" rel="gallery" href="Lector.ashx?ImagenId=0" >
처럼 사용할 수 있습니다.
내 코드 :
<script type="text/javascript">
$(document).ready(function() {
$('.fancybox').click(function (e) {
e.preventDefault();
parent.$.fancybox({
href: this.href,
helpers: {
title: { type: 'inside' },
overlay: {
opacity: 0.3
} // overlay
//, buttons: {}
} // helpers
}); // fancybox
}); // click
});
</script>
몸
<a class="fancybox" href="Lector.ashx?ImagenId=14" >
<img alt="" src="../Resources/background.png" width="100" height="100"/>
</a>
<a class="fancybox" href="Lector.ashx?ImagenId=6">
<img alt="" src="Lector.ashx?ImagenId=6" width="100" height="100"/>
</a>
<a class="fancybox" href="Lector.ashx?ImagenId=20">
<img alt="" src="Lector.ashx?ImagenId=6" width="100" height="100"/>
</a>
내가 좀 도와주세요 fancybox 2.1.3를 사용하고 있습니다 !!!! 사전
I have to do this?
$(document).ready(function() {
$('.fancybox').click(function (e) {
like i said before at start???
});//click
$('.fancybox').attr('rel', 'gallery').fancybox({
JFK code??
});
});//
팬시 박스 설명서에서 도움을 받으셨습니까? –
yesh 나는이 Open something을 보았다. 그러나 그것은 ashx와 함께 일하지 않는다 – Urah