PDA

View Full Version : Css And Scripts?


wonton
03-24-2003, 09:02 PM
Was wondering how i could add a full script into a css file and use the relation link to get it to appear on page? Ty Wonton

brothercake
03-24-2003, 09:14 PM
You can't.

But IE and Gecko both have proprietary behavior-binding technologies, which are conceptually similar to what you're saying. Yes?

Or are you simply wanting to make a single JS script accessibile from multiple pages? If so, the script tag does it:

<script type="text/javascript" src="myscript.js"></script>

where "myscript.js" is a plain-text document containing everything in your script except the <script> tags themselves.