Facebox doesn't work...

1 view
Skip to first unread message

Torakiki

unread,
May 10, 2008, 5:30:45 PM5/10/08
to facebox
Hello to everybody,

I wanted to use Facebox in my website, so
I downloaded the tarball and the jQuery file jquery-1.2.3.js.
Then I wrote the following lines in the head of my index.php file,
but Facebox does not work. When using rel="facebox" in a link,
it just display the link in the same window, as if it was a common
link.
Is there something wrong?
Is there some line to be written in some other files?
Have I to add the Facebox css file to some other file of my website?
I really don't know...it seemed so simple, but....

Thank you in advance!!

Simone


<script src="/facebox/jquery-1.2.3.js" type="text/javascript"></
script>
<link href="/facebox/facebox.css" media="screen" rel="stylesheet"
type="text/css" />
<script src="/facebox/facebox.js" type="text/javascript"></script>

<script type="text/javascript">
jQuery(document).ready(function($) {
$('a[rel*=facebox]').facebox()
})
</script>

Torakiki

unread,
May 11, 2008, 11:50:58 AM5/11/08
to facebox
Hello again,

I partially solved my problems, changing

/facebox to facebox

Now the window opens, with loading and closing
images, but the thick grey border is still missing.
Any suggestion? What's the line which determines the path
of these images? I think the problem is that in some way
the script build a path which starts with

/facebox


Thanks,

Simone

clayton191

unread,
May 11, 2008, 4:57:56 PM5/11/08
to facebox
Yeah, I had to downgrade back to 1.1. This release doesn't seem to
support relative paths.
Reply all
Reply to author
Forward
0 new messages