PDA

View Full Version : Article "Creating and referencing external JavaScript libraries"


dvonj
03-20-2003, 03:57 AM
I read this article http://www.javascriptkit.com/javatutors/external.shtml

about external JS libraries, the example given is a simple one, understood. However some scripts have styles associated with them, usually placed in the <head></head> tags. IF one was to create a .js file as an external library file would the associated style be included in the .js file or place with in the head tags of the page that will call the .js file.



:confused:

dvonj

WA
03-20-2003, 05:30 AM
The involved style sheet needs to be seperated into a file of its own, and linked using the syntax:

<LINK REL=STYLESHEET TYPE="text/css" HREF="mystyle.css">

More information on the ways of embedding a style sheet: http://www.javascriptkit.com/dhtmltutors/css2.shtml

dvonj
03-20-2003, 05:39 AM
Thanks for the help see I got more reading to do. :thumbsup: