Thread: Java/CSS

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2002
    Posts
    2
    Rep Power
    0

    Java/CSS


    I was just wondering if there was a way to include javascript in a CSS document. I have a fade script that I would like to use on every page of my site.

    Ascension
    http://www.geocities.com/gilles_de_rais1
  2. #2
  3. Contributing User
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Apr 2000
    Posts
    1,058
    Rep Power
    22
    You would want to put your javascript in a .js file and then include it on each page like this:

    Code:
    <script src="fade.js"></script>

    wdn2k
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2002
    Posts
    2
    Rep Power
    0
    haha...yeah, I've already got that part figured out. The script works fine, I was just curious about including it in a CSS file. But I've decided to just work around that and leave it as is. Thanks for the reply, however.

    Ascension
    www.geocities.com/gilles_de_rais1

IMN logo majestic logo threadwatch logo seochat tools logo