A barebones, flexible jQuery popup plugin. Designed for developers, it's simple to use but very powerful.
Place /assets/css/popup.css
in /your/css/folder/
.
Add this just before your closing head
tag:
<link rel="styesheet" href="https://github.com/Toddish/Popup/blob/master/your/css/folder/popup.css">
Then, place /assets/js/jquery.popup.min.js
in /your/js/folder/
.
Add this just before your closing body
tag, after you've included jQuery:
<script src="https://github.com/Toddish/Popup/raw/master/your/js/folder/jquery.popup.min.js"></script>
Set up your html:
<a href="http://placehold.it/350x175.png" class="popup">Popup link</a>
Call the plugin:
var options = {};
$('a.popup').popup(options);
For full documentation, have a look at http://docs.toddish.co.uk/popup.