Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jul 2002
    Posts
    88
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Trying to Centralize all my various javascripts...

    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

  • #2
    teh Moderatorinator
    Join Date
    Sep 2004
    Location
    USA
    Posts
    2,472
    Thanks
    4
    Thanked 40 Times in 40 Posts
    Thats CSS you'd put that in a .css file. And then call that.

  • #3
    Smokes a Lot
    Join Date
    Jul 2003
    Location
    CA, USA
    Posts
    1,594
    Thanks
    5
    Thanked 20 Times in 20 Posts
    This will provide you with some guidence.

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

    Basscyst
    Helping to build a bigger box. - Adam Matthews


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •