why is my lightbox not working?!?!?


nevermind i fixed it

1 Answer

  • Anonymous
    1 decade ago
    Favorite Answer

    You've got a couple of javascript errors:

    "Selector expected. Ruleset ignored due to bad selector" on line 226 and "Accordian is not defined" on line 1.

    When you've got a javascript error, nothing else javascript-based will work.

    The problem may be that you're loading lytebox.js twice, and you have an errant "</style>" tag in between the two of them:

    <script type="text/javascript" src="lytebox.js"> </script>


    <script type="text/javascript" src="lytebox.js"> </script>

    It's good practice to include the language attribute for the script tags, too, like this:

    <script language="javascript" type="text/javascript" src="lytebox.js"></script>

    Also, make sure the path to accordian.pack.js is correct.

    You can use the error console in Firefox (Tools->Error Console) to see javascript errors, but a better bet is to use the Firefox extension Firebug to find them.

Still have questions? Get your answers by asking now.