-4

我的 jQuery Fancybox 在我的本地计算机上完美运行,但现在我的网站在 000webhost 上运行,它无法运行。我找不到任何关于为什么的答案!

我的网站是:sarahmeasom.com

我真的很感激有人帮我看看这个,因为我很困惑!

基本上,在我的作品集上,您单击它会显示图像,但它只是加载图像并将您带到另一个页面!

感谢您的帮助!

这基本上是我用来创建盒子的代码:

我的工作。

                <ul class="cols clearFix">

                    <li>
                        <div class="clearFix">
                            <h2 class="floatLeft">Circle Cover</h2>
                            <a href="./" class="more floatLeft">Website</a>
                        </div>
                        <a href="./tmp/circlecover_2.jpg" class="thumb">
                            <span class="zoom"></span>
                            <img src="./tmp/circlecover_1.jpg" alt="No image" />
                        </a>
                        <p>Circle Cover provides travel insurance for the over 50's. My main aims were to keep the site clean, simple and easy to navigate. With mobile compaitibility. 
                        </p>
                    </li>


                    <li class="center">
                        <div class="clearFix">
                            <h2 class="floatLeft">Virgin Insurance</h2>
                            <a href="./" class="more floatLeft">Website</a>
                        </div>
                        <a href="./tmp/virgin_2.jpg" class="thumb">
                            <span class="zoom"></span>
                            <img src="./tmp/virgin_1.jpg" alt="No image" />
                        </a>
                        <p>Re-design of the Virgin Travel Insurance quote website. It does its job in effectively helping customers buy insurance online, taking them through the quote process.</p>
                    </li>

                    <li>
                        <div class="clearFix">
                            <h2 class="floatLeft">Victoria's Salon</h2>
                            <a href="./" class="more floatLeft">website</a>
                        </div>
                        <a href="./tmp/tanning_2.jpg" class="thumb">
                            <span class="zoom"></span>
                            <img src="./tmp/tanning_1.jpg" alt="No image" />
                        </a>
                        <p>A small salon requested a website to help promote the business online. Modern and girly was the theme, keeping it suited to its target audience. </p>
                    </li>

                                            <li>
                        <div class="clearFix">
                            <h2 class="floatLeft">MPM Property</h2>
                            <a href="./" class="more floatLeft">Website</a>
                        </div>
                        <a href="./tmp/mpm_2.jpg" class="thumb">
                            <span class="zoom"></span>
                            <img src="./tmp/mpm_1.jpg" alt="No image" />
                        </a>
                        <p>MPM Property group requested a site which simply informs the public what they do. The site has a simple and precise layout encorporating the company style. </p>
                    </li>

                    <li class="center">
                        <div class="clearFix">
                            <h2 class="floatLeft">Twine Rooms Design</h2>
                            <a href="./" class="more floatLeft">Concept</a>
                        </div>
                        <a href="./tmp/twine_2.jpg" class="thumb">
                            <span class="zoom"></span>
                            <img src="./tmp/twine_1.jpg" alt="No image" />
                        </a>
                        <p>A minimalistic design using a consistent colour scheme and layout, with a fresh and colourful feel. Plenty of white space to make the main features stand out.</p>
                    </li>
4

2 回答 2

2

您包含 jQuery 两次。这很可能是问题所在。

于 2013-07-17T15:27:28.363 回答
0

快速修复:从第 343 行的页脚中删除 jQuery 脚本标签。

更好的修复:还将第 15 行从

<script src="./js/jquery/jquery-1.5.1.min.js" type="text/javascript"></script>

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
于 2013-07-17T15:34:12.423 回答