colorbox plugin to make picture pop up - javascript

I have to make a photo gallery and use colorbox as plugin to make the pictures pop up and be able to scroll through them while they are popped up. Here is a JSFiddle link to the HTML, CSS, and script. JSFiddle
The issue I am having is the page is among the pictures, and I only want the pictures in the pop up.
$(function() {
$('a').colorbox({rel: 'gallery'});
});

Related

select slide with javascript

I have a photo gallery which is displayed in modal (the gallery uses SplideJS and I particularly use the Thumbnails one).
I have also the same clickable photos previews on the webpage.
The gallery modal is opened simply by clicking any of the preview photos. This works fine, but in the modal gallery I also want the focus on the exact same photo as clicked in preview.
I was trying to look inside the SplideJS code, but it seems to work with positioning, which is probably not usable for me.

Can't scroll/Drag the page Up and down by clicking on carousel section

I am trying to use this carousel
http://tympanus.net/Tutorials/ResponsiveImageGallery/
But without using bottom part, I am only using thumb section to show movie posters.
Everything works fine, but When i open my page on mobile, I can't scroll the page up and down by clicking on carousel image.
Please find the code files from this link. https://drive.google.com/file/d/0BzUuSGoEEtDxWVRRT0dWY2J4V0E/view?usp=sharing
Any help would be much appreciated.

Popping out images on transparent background Javascript

I was wondering how to get images similar to www.eskimodesign.com.au or facebook where you click on a photo and it pop outs and darkens the background.
(Try clicking on a project or image on the eskimo website)
You should check out
Lightbox
Fancybox
Thickbox
Slimbox
Check this out too: Rounding Up the Top 10 jQuery Lightbox Scripts
By the sounds of it, looks like you're looking for a lightbox component.
There are a lot out there each to their own design.
http://lokeshdhakar.com/projects/lightbox2/
You'll need to have jquery enabled while using this as well.
http://jquery.com/
Some other lightboxes
http://www.huddletogether.com/projects/lightbox/
http://fancybox.net/

How can I get Colorbox to appear in a div?

At the moment I've got Colorbox setup so that it starts automatically when the page loads, but I need to place it in a div on the page, instead of hovering in the center of the page. How can I do this? Thanks for reading.
You can do insert this javascript snippet into your javascript on document complete, where you bind colorbox.
$(document).bind('cbox_complete', function(){
var divContent = $('#cboxLoadedContent').html(); // Grab the content of cboxLoadedContent div
$('#colorbox').hide(); // Hide colorbox div
$('#cboxOverlay').hide(); // Hide the overlay div
$('#Output').html(divContent); // put the content inside the specified div.
});
What this does is that after the image/page is successfully loaded into colorbox, it will immediately grab that content, hide the colorbox and overlay, and dump that content into the new div.
Yes, you will see opening and closing of colorbox flashing on your screen really quick, but this will do it. If you want more controls, then you customize these events: onOpen or onLoad. See link at bottom of my post to go to colorbox website for more details.
Beside cboxLoadedContent, you can also use #cboxWrapper, or #colorbox divs, depending on how much colorbox information you want to embed in your div.
Please note that by doing this, you will have to rebind the buttons, if you want it to allow navigation inside the div.
You can go to Colorbox Site for more customization options.
I think Colorbox is the wrong tool for what you want. The functionality you want is more like an image gallery. Some ones you might like: Galleriffic or Galleria

show image gallery on modal popup

i have a dropdownlist containing some items,,,on selecteditem index i have displayed modal popup,,,this modal popup is used to show image gallery,,i have seen some posts where datalist is used to show images but they dont seem to work efficiently,plz provide some posts which show image gallery and enlarge them as well....
Lightbox is a simple, unobtrusive script used to overlay images on the current page. It's a snap to setup and works on all modern browsers.
Also take a look at this link
15 Amazing jQuery Image Gallery/Slideshow Plugins and Tutorials

Categories