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 4 of 4
  1. #1
    New Coder
    Join Date
    Aug 2004
    Posts
    36
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Load javascript .js file via CSS?

    Is it possible to add a javascript file via CSS which is applying on body tag?

  • #2
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Erm. Not unless you use CSS exploits.

    Perhaps you'd be best in telling us what you actually want to do.

  • #3
    New Coder
    Join Date
    Aug 2004
    Posts
    36
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hhaha... well... I'm programing a chat which uses browser plug-in to view the chat, and there are several html files which contain only JavaScript functions like addtext() and addstylesheet() to call them from the program in order to view clients text and to chage themes of the chat. I don't want to edit the files, I just want to use the function addstylesheet() to add my stylesheet. The current problem is because I wanted to create winter theme with winter.css and had the Idea to add snowflakes. I have a snowstorm .js file and I just need to find a way to link it with the css...

  • #4
    New Coder
    Join Date
    Aug 2004
    Posts
    36
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Any ideas...?


  •  

    Posting Permissions

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