custombox
custombox copied to clipboard
Use as a gallery?
Hi there,
I'm using the modal on a website at the moment to target a div with an ID which works great.
But I'd now like to use the modal with a gallery, so the anchor triggers the modal loading an image rather than a single div with an ID.
I can't seem to figure this out, any advice would be great!
Thanks
Hi, I'm not sure what do you want to do. Could you put your code in jsfiddle.net?
Hi Julio,
Sorry it didn't make much sense;
http://jsfiddle.net/dsjrosry/
I want to be able to open the image in the anchor.
Thanks
Hi there,
Just wondered if you had an answer to this?
I really like your plugin with the added effects, I'd like to open images like so http://dimsemenov.com/plugins/magnific-popup/
Thanks
You need a modal which contains an image (full size with modal) :)
I think I know what you mean... try this, it worked for me:
<a class="gallery-item" href="#cossie">
<img class="example-image"src="images/contentpics/cossie_small.png" alt=""></img>
</a>
<div id="cossie" class="lightboxIMG">
<button type="button" class="close" onclick="Custombox.close();">
<span>×</span>
</button>
<h1 class="title">Ford Escort RS Cosworth</h1>
<div class="imageBox">
<img src="images/contentpics/cossie_big.png">
</div>
</div>