Reputation: 1918
How do I display an HTML page with ColorBox?
Upvotes: 2
Views: 14017
Reputation: 187030
If you want to open an outside HTML here is the sample
http://colorpowered.com/colorbox/core/example1/index.html
Code would be something like
HTML
<a class='example5' href="yourpage.html" title="My Page">Outside HTML (Ajax)</a>
jQuery
$(".example5").colorbox();
Upvotes: 3
Reputation: 32158
like this:
<a class="example5 cboxElement" href="../content/ajax.html" title="Homer Defined">
Outside HTML (Ajax)
</a>
js:
$(".example5").colorbox();
just look at their example page
Upvotes: 0
Reputation: 4389
Just refer the jQuery plugin in your HTML page using
<script type="text/javascript" src="/path of jQuery library"></script>
<script type="text/javascript" src="/path of color box"></script>
Upvotes: 0