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
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">)
This is usually where the script resides if it is a big script, in an external file, nice and neat although it can also just be placed in the head in its entirety as long as it is inside the <script></script> tags like so:
document.getElementById("adframe").src="/tryitbanner.asp?secid=trycss&rnd=" + Math.random();
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