简体   繁体   中英

prettyPhoto script isn't working

I had a previous question about working with a lightbox for this website www.chrissybulakites.com .. now I got the photos to load and fade properly into the gallery setting, however my script doesn't seem to be showing up when I placed it where the website told me to.

Can anyone help me out with this? I'm very much a beginner when it comes to this style, just a designer looking to help out a fellow friend.

These three resources are not available at the specified [relative] paths:

<script src="js/jquery.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" href="css/prettyPhoto.css" type="text/css" media="screen" charset="utf-8" />
<script src="js/jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"></script>

which are interpreted by the browser as

http://www.chrissybulakites.com/js/jquery.js
http://www.chrissybulakites.com/css/prettyPhoto.css
http://www.chrissybulakites.com/js/jquery.prettyPhoto.js

Check to be sure that they're actually there -- the js/ and css/ directories should be at the same level as index.html (or whatever the default page is), and that the files have the correct permissions for the http server to serve them, etc.

I looked in Chrome's Javascript Console and saw that that those URLs were returning 404 Not Found -- Chrome and Firefox both have developer tools built-in that will alert you to these kinds of problems.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM