shadowbox installation

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

shadowbox installation

ignask
hello!

Can someone please link or write some simple step by step installation guide on shadowbox? i don't need any fancy options and stuff like that, just a simple gallery run by shadowbox, viewing images and videos. all i need is the code that adds the script into the html file, what files from the downloaded shadowbox Zip do i need and what code do i write when adding a link with shadowbox.

Thenx!
Reply | Threaded
Open this post in threaded view
|

Re: shadowbox installation

IchDu
You can all read it here:
http://mjijackson.com/shadowbox/doc/usage.html

jQuery:
add the following code append to the head-tag
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript" src="path/to/shadowbox-jquery.js"></script>
<script type="text/javascript" src="path/to/shadowbox.js"></script>

then open a script-tag and add the the following code append to the script-tag:
$(document).ready(function(){
        // Shadowbox optional Options
        var options = {
                counterType: 'skip',
                continuous: true
        };
        Shadowbox.init(options);
)};

then add rel="shadowbox" to every link you want.
FINISHED!