...

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



JVRudnick
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">
.linkw{color:white;}
.linkg{color:gray;}
</style>

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?

Jim

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

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

http://www.w3schools.com/css/css_howto.asp

Basscyst



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum