| |
Author |
Post |
jackavin
|
#1 Mon Apr 13, 2009 11:38 am
|
Guest
|
i have <html><head> <link href="include/floatbox/floatbox.css" rel="stylesheet" type="text/css"></link> <script language="javascript" src="include/floatbox/floatbox.js"></script> <script language="javascript" src="include/floatbox/framebox.js"></script> </head> <body> <iframe src='gallery/gallery.php?list=2' style='width:100%;height:120px;overflow:visible;padding:0px;margin:0px; ' scrolling='no' marginwidth='0' marginheight='0' frameborder='0' vspace='0' hspace='0'></iframe> </body> </html> in iframe i have <a href="image1.gif" class="floatbox"><img src="image1.gif"></a> why it's not working thx
|
|
#2 Mon Apr 13, 2009 4:22 pm
|
Administrator
Registered: Aug 2008
Posts: 3382
|
There's a few things here.
In nested iframes, you need to include floatbox.js on both the top document and the child iframe document.
Make sure your paths are correct. Your script and link elements are using relative paths (no leading back-slash), and according to those paths you have a folder adjacent to the page you are running called "include", and you have the floatbox folder inside that include folder. Is this accurate?
You've got both floatbox.js and framebox.js included on your page. Don't do that. Pick one (probably floatbox.js).
You have no doctype declaration, so your page will be rendered in quirks mode and floatbox does not run on quirks mode pages. See the docs for more detail.
|
jackavin
|
#3 Wed Apr 15, 2009 7:23 pm
|
Guest
|
thank you
|