Fancybox plugging with PDF

Fancybox plugging with PDF

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Fancybox</title>
  6. <link href="../_css/site.css" rel="stylesheet">
  7. <link href="fancybox/jquery.fancybox-1.3.4.css" rel="stylesheet">
  8. <script src="../_js/jquery-1.7.2.min.js"></script>
  9. <script src="../_js/jquery.easing.1.3.js"></script>
  10. <script src="fancybox/jquery.fancybox-1.3.4.min.js"></script>
  11. <script>
  12. $(document).ready(function() {
  13. $('#gallery a').fancybox({
  14. overlayColor: '#060',
  15. overlayOpacity: .3,
  16. transitionIn: 'elastic',
  17. transitionOut: 'elastic',
  18. easingIn: 'easeInSine',
  19. easingOut: 'easeOutSine',
  20. titlePosition: 'outside' ,
  21. cyclic: true
  22. });
  23. }); // end ready
  24. </script>
  25. </head>
  26. <body>
  27. <div class="wrapper">
  28. <div class="header">
  29. <p class="logo">JavaScript <i>&</i> jQuery <i class="mm">The<br>Missing<br>Manual</i></p>
  30. </div>


  31. <div class="content">
  32. <div class="main">
  33. <h1>Gallery</h1>
  34. <div id="gallery">
  35. <a href="../_images/large/slide1.jpg" rel="gallery" title="Lotsa golf balls"><img src="../_images/small/slide1_h.jpg" width="70" height="70" alt="golf balls"></a>
  36. <a href="../_images/large/slide2.jpg" rel="gallery" title="Someplace pretty"><img src="../_images/small/slide2_h.jpg" width="70" height="70" alt="rock wall"></a>
  37. <a href="../_images/large/slide3.jpg" rel="gallery" title="The Old Course"><img src="../_images/small/slide3_h.jpg" width="70" height="70" alt="old course"></a>
  38. <a href="../_images/large/slide4.jpg" rel="gallery" title="Lotsa tees"><img src="../_images/small/slide4_h.jpg" width="70" height="70" alt="tees"></a>
  39. <a href="../_images/large/slide5.jpg" rel="gallery" title="Tree and pond"><img src="../_images/small/slide5_h.jpg" width="70" height="70" alt="tree"></a>
  40. <a href="../_images/large/slide6.jpg" rel="gallery" title="Is that the Loch Ness Monster?"><img src="../_images/small/slide6_h.jpg" width="70" height="70" alt="ocean course"></a></div>
  41. </div>
  42. </div>
  43. <div class="footer">
  44. <p>JavaScript &amp; jQuery: The Missing Manual, by <a href="http://sawmac.com/">David McFarland</a>. Published by <a href="http://oreilly.com/">O'Reilly Media, Inc</a>.</p>
  45. </div>
  46. </div>
  47. </body>
  48. </html>

  49. Using the facy box plugging i created the following image gallary(Image 1 and two)






  50. now look at the following page . the area marked in "RED" redirects and goes to a PDF file . 

  51. how can i acheive the gallary effect with facybox (Does fancy box support this in the 1st place ?  I.E. PDF)

  52. what changes will i need to make to the code (Give me a vague idea) .   



  53. Thank you .

  54. Gautam.