• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Lightbox issue


Senior Member
Please help!!!!!

I have tried to set up a lightbox so when i have a thumbnail image i click it and a larger image appears. But what happens with mine is that it just opens in another page.

Please can someone help with this.:mad:

the link to the page is Tom Stutt Design | Portfolio



Senior Member
You havent uploaded your lightbox.js file to the correct directory.

In your head section you reference it as:

<script type="text/javascript" src="/js/lightbox.js"></script>
Which means that (in relation to the page) the page is trying to use the file located at tomstuttdesign.co.uk/js/lightbox.js whereas it isnt actually there.

Either upload the lightbox.js file to a js folder in your main directory or rename the file link to where the file actually is on your webspace.

I have also just checked your other links to files and none of those are linking to a file either:

<link rel="stylesheet" href="/css/lightbox.css" type="text/css" media="screen" /><script type="text/javascript" src="/js/prototype.js"></script><script type="text/javascript" src="/js/scriptaculous.js?load=effects,builder"></script><script type="text/javascript" src="/js/lightbox.js"></script>
Hope this helps,