View Full Version : global use of scripts?
06-28-2003, 10:47 PM
This might be a no-brainer, but I don't know how to do it. Can you make a file that contains common scripts that every new HTML page can use, like a CSS file? How would you do this? I want to have the same script on every page of my site without adding the code to each page.
External CSS files must not contain any HTML tags or code.
In CSS you must have units with all of your numbers, so one of either px, pt, em, %, or # is always required.
You should export the CSS to an external file and call it with a one line instruction in the <head> section:
<link type="text/css" rel="stylesheet" src="/path/file.css">
Check the resultant file by running it through: http://jigsaw.w3.org/css-validator/validator-uri.html
The answer, above, applies to CSS code (Cascading Style Sheets) only.
06-28-2003, 11:30 PM
thanks a bunch it works great!
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.