Log in

View Full Version : Help with Lightbox 2



ModernRevolutions
03-01-2009, 09:52 PM
I officially don't understand a damn thing about Javascript. I am trying to help my friend put up the Lightbox 2 script for this page (http://www.lokeshdhakar.com/projects/lightbox2/#how). I followed every step of that and its still not working. What did I do wrong? Thanks



http://www.vivid-avenue.net/photos.php

Snookerman
03-01-2009, 10:42 PM
Please post a link to the page on your site that contains the problematic script or attach your code so we can check it out and help you.

sparklingsky
03-01-2009, 10:54 PM
It's for http://vivid-avenue.net

Medyman
03-02-2009, 03:29 AM
I'm not sure if this is all of your problem, but it's one of them. You're not loading all of the parts of the Scriptaculous library that you need.

You should be calling scriptaculous.js as such:

<script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script>

You're missing the highlighted part.

bluewalrus
03-02-2009, 04:03 AM
your also calling the image after you've closed the page. This might lead to other problems either later or now that you haven't noticed



<div id="contentdiv">
<font color="">

</body> <------- This is the page
</html> <-------- closing (i still dont know where the highlight button is)




<a href="http://www.modernrevolutions.vivid-avenue.net/blends/bilson.jpg" rel="lightbox" title="my caption">image #1</a>



<br><br><br>
<center>&copy; 2008-2009 vivid-avenue.net
<br>

<a href="http://vivid-avenue.net/contactme.php">Contact Me</a>| <a href="http://vivid-avenue.net/faq.php">FAQ'S</a>| <a href="http://profile.myspace.com/index.cfm?fuseaction=user.viewprofile&friendid=91599308">The Myspace</a>| <a href="http://vividavenue.ourtoolbar.com/">Toolbar</a>
<br>
</center>

</div>
</center>

sparklingsky
03-02-2009, 11:18 AM
He was helping me code that but he isn't on and that just fixed it for me so thank you soo much. :D