views:

112

answers:

1

Hello, In my web site there is home page, and all other pages open using fancybox window - with iframe.

I want to be able to construct a URL like www.example.org/About.html which will send the user to my website and will open the iframed page {About.html} within the fancybox window.

Thanks for help.

A: 

You should be able to do it with something like this:

<a id="about_link" href="about.html" class="iframe">About</a>

Then:

<script type="text/javascript">
$(document).ready(function(){
    $("a#about_link").fancybox();
});
</script>

The "class" attribute will tell Fancybox to load the accompanying URL into an iframe.

Rob King