Results 1 to 2 of 2
Feb 17, 2011, 12:24 #1
- Join Date
- Feb 2011
- 0 Post(s)
- 0 Thread(s)
Beginner needs help implementing Accordion :)
So with this program i got an accordion as a .js file.
So my question is , how would I go about implementing this Accordion into a div tag or basically, how do i control it's positioning on the site. This is probably a question with a simple answer, but i'm a beginner and i'm hoping that someone here could help me out.
I would appreciate any help I can get
Feb 17, 2011, 16:15 #2
Ok well I will do my best to give you a good explanation of how to install a plugin like this.
Usually (but not always) you would have two external files which you would declare in the <head> of the page:
one for the css (<link rel="STYLESHEET" type="text/css" href="yourstylesheetname.css">)
eg: script.js is the same folder as your webpage
BUT js/script.js is nested inside a folder called js - sorry if that's obvious, just want to be thorough
At some point during installation of the plugin, it asks you to specify an images folder, select your default images folder and the script should do the image filepaths for you.
Also it gives you a short line of js which you must copy to your clipboard and paste in the place in the body tag where you want it to occur so you can make your own div and put that code in here. This short line of js is the trigger to call the bigger script declared in the head.
Hope this works, if you want to know more about getting cool plugins working check out JQuery at www.jquery.com. It takes a while to get used to installing and running the plugins but its really powerful. I have only been developing for a few months but I learnt how to install JQuery plugins and now I am getting quite good, it has transformed the look and feel of my sites. Heres some examples of of the things it can do:
THE SITEPOINT book JQueRY From Novice To Ninja is awesome if you want to learn the language. Anyway check it out if you want, and best of luck
Last edited by molona; Feb 18, 2011 at 01:55. Reason: wanted to attach file