Get Colorbox functionality without a popup?
I am using ColorBox to present a series of HTML pages with Next
and Previous
buttons, with code similar to this:
<p><a class="myPages" href="page1.html">Page 1</a></p>
<p><a class="myPages" href="page2.html">Page 2</a></p>
<p><a class="myPages" href="page3.html">Page开发者_JAVA百科 3</a></p>
<script type="text/javascript">
$(".myPages").colorbox({width:"80%", height:"80%", iframe:true});
</script>
It is working fine but in order start viewing the pages, the user must first click on one of the links. This brings up a moadal window showing the content of the page they clicked, with Next
and Previous
buttons so they can switch to the other pages.
I would like to change it so that the content of page1.html
is shown right away on the main page itself (not in a modal window), and the Next
and Previous
buttons are also shown. In other words I want the contents of the modal window on the main page instead. Is there any way to do this?
As Michael Mior says, Probably not a situation for ColorBox. The plugin pretty much assumes you want overlay/popup/different window interaction.
精彩评论