jquery - Opening a URL in iframe with Fancybox -
i using fancybox first time , trying use click on link, webpage pops in fancybox @ position scrolled down in new webpage.
for example:
i've been testing out below code, iframe ends jumping bottom of page first, top right:
<html> <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <script type="text/javascript" src="fancybox/jquery.fancybox.js"></script> <script type="text/javascript" src="fancybox/jquery.fancybox.pack.js"></script> <link type="text/css" rel="stylesheet" href="/fancybox/jquery.fancybox.css" > <script type="text/javascript"> $(document).ready(function() { $(".iframe").fancybox({ "padding" : 3, "type":"iframe", "width" : 640, "height" : 480, }); }); </script> </head> <body> <a href="http://awesomedl.com" class="iframe"> fancy me <img src="fancybox/fancybox_sprite.png"> </a> </body> </html>
i know missing properties in function can point me in right direction achieve result?
Comments
Post a Comment