문제

I am using lightbox to display some youtube videos. When I run it from the main project, it works fine but when i move all the jquery and css into a subfolder "css" "js". The link takes me to youtube instead of popping up the lightbox. Please help.

  <link href="nivo-lightbox.css" rel="stylesheet" />
    <link href="themes/default/default.css" rel="stylesheet" />
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<script src="../jquery-1.7.min.js"></script>
    <script src="nivo-lightbox.min.js"></script>
    <script>
        $(document).ready(function () {
            $('a').nivoLightbox();
        });
</script>
도움이 되었습니까?

해결책

If you moved nivo-lightbox.css and nivo-lightbox.min.js into a subfolder you need to update the src for each of them to reflect that. For example if the code above is in the root of your project you would need to update them to point to:

src="css/nivo-lightbox.css"
src="js/nivo-lightbox.min.js"

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top