according to
this link
i can open fancybox with text
$.fancybox.open('<div class="message"><h2>Hello!</h2><p>You are awesome!</p></div>');
but this code does not show images just say
"The requested content cannot be loaded.
Please try later"
$.fancybox.open([
{
src : '1_b.jpg',
opts : {
caption : 'First caption'
}
},
{
src : '2_b.jpg',
opts : {
caption : 'Second caption'
}
}
], {
loop : false
});
What I have tried:
work fine
$.fancybox.open('<div class="message"><h2>Hello!</h2><p>You are awesome!</p></div>');
not working
$.fancybox.open([
{
src: '/0TestFancyBox/clock.png',
type: 'image',
opts: {
caption: 'First caption'
}
},
{
src: '/0TestFancyBox/flowers.png',
type: 'image',
opts: {
caption: 'Second caption'
}
}
], {
loop: false
});