View Full Version : Trying to Centralize all my various javascripts...

12-11-2004, 08:32 PM
And what I'd like to do is to put them all on a single .js page...

And then include that page, on any html or asp pages that I might want to use various javascript functions and styles on...

The thing is, I can create a .js page okay. And I know how to layout say a function, and my testing shows that when I (for example) try to open up a javascript popup, the proper function is called...ie it works.

But I can't quite grasp how to add something like the following to my .js 'library' page...

<style type="text/css">

When added, it fails to work, so I suspect that the <style> tags might not be kosher...but when deleted, the html page then gives me an error when it tries to load?

What's the secret to add these kind of javascript puppies?


12-11-2004, 08:37 PM
Thats CSS you'd put that in a .css file. And then call that.

12-11-2004, 10:12 PM
This will provide you with some guidence.