replace minified JavaScript with http://...

Q: How to replace minified version in te following lines with online URLs?

I guess this applies to lines 3 through 6, correct?

<script src=""></script>
<!-- Latest compiled and minified JavaScript -->
<script src="js/bootstrap.js"></script>
<script src="plugins/fancybox/jquery.fancybox.js"></script>
<script type="text/javascript" src="plugins/fancybox/helpers/jquery.fancybox-buttons.js?v=1.0.5"></script>
<script type="text/javascript" src="plugins/fancybox/helpers/jquery.fancybox-media.js?v=1.0.6"></script>
$(function() {

Open in new window

LVL 34
Mike EghtebasDatabase and Application DeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dave BaldwinFixer of ProblemsCommented:
Minified scripts usually have the word 'min' in them somewhere.  I don't see that there.  You can open those script files in the view source in Firefox and see what's there.
Mike EghtebasDatabase and Application DeveloperAuthor Commented:
Ok, take line 4, for example:

<script src="plugins/fancybox/jquery.fancybox.js"></script>

I do not see url in this line. Could you possibly explain where src information resides? Is it in my root directory (plugins/fancybox...)? If it is downloaded minified or not.

Could it get the information it needs from a url instead?
Dave BaldwinFixer of ProblemsCommented:
In the "View Source" window in Firefox, it will show that code if I click on the src link.  That is a relative URL, it is a 'src' link URL for that script.  Just click on it.
Julian HansenCommented:
That path is relative to the site where you got the code from.
What you need to do is
1. Go to
2. Download the library by clicking the download button
3. Open the archive and navigate to the 'source' folder
4. Copy everything in the source folder to the folder 'plugins/fancybox' off the root of your site

Alternative to 4 - copy the contents of 'source' to wherever you keep your plugins on your site and then modify the paths to the .css and .js to match those paths.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.