Jump to content



Welcome to AstaHost - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
Photo
- - - - -

How Do You Install Jquery Plugins?


2 replies to this topic

#1 Illustrious

Illustrious

    Member - Active Contributor

  • Members
  • 88 posts

Posted 28 November 2010 - 05:10 PM

I was searching on Google and I saw something about jQuery plugins that caught my eye. I was wondering how you would install jQuery plugins into your website. I searched it up on Google but was not able to find a tutorial on how to do this. I also tried doing it myself but failed. I was looking at these plugins:

TipTip jQuery - http://code.drewwils...p-jquery-plugin
Captify - http://thirdroute.co...ojects/captify/
Aero Windows - http://www.soyos.net...r_Websites.html
Growl Notifications - http://plugins.jquer...-net-and-jQuery

These plugins looked pretty neat and I thought that it would improve the visual pleasure of my website. Also, do you need prerequisite knowledge of jQuery to install these plugins as well?

#2 FirefoxRocks

FirefoxRocks

    Super Member

  • [HOSTED]
  • 988 posts
  • Gender:Male
  • Location:Ontario, Canada
  • myCENTs:92.36

Posted 03 October 2011 - 06:52 AM

It depends on the plugin but usually they are just scripts written with jQuery that does what the documentation says. Once you download it, you unzip the contents to wherever you want to put it (whether it be in your website's directory or in a separate js directory or whatever), and you insert the correct js files using <script> tags in your HTML pages, and the CSS files as well if present.

#3 Quatrux

Quatrux

    the Q

  • [HOSTED]
  • 1,669 posts
  • Gender:Male
  • Location:Lithuania, Vilnius
  • Interests:PHP, MySQL, Oracle, PL/SQL, HTML, CSS, Javascript, jQuery, C# Computers, Alternative OS, Amiga, MorphOS, Beer, Friends, Linux, KDE..
  • myCENTs:30.76

Posted 03 October 2011 - 10:56 AM

It's really easy to use a jQuery plugin, if it's a well written one, as it was said, you need to download it, exctract the archive to the js/ folder, for example:

mysite/js/jqueryplugin/

and in your html you should include it with the script tag:

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

Also, if it has css files, you need to include them too, just include the right path:

<link type="text/css" rel="stylesheet" href="js/jqueryplugin/css/style.css" />

Where it will be stored, you decide, the main thing that the path would be reachable, once everything included you can use the plugin like any javascript code, usually a plugin is a class with it's own methods which you use or a function with parameters. :unsure:



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users