Click to See Complete Forum and Search --> : Include (reference) Javascript in CSS


bjstyl2
12-27-2007, 10:15 AM
Is there a way to reference javascript from the css document.

I have a template for a program and want to create a javascript header. Currently the CSS only allows me to make some modifications, but I am limited to JPG.

CURRENT:
/* page header */
#pageHeader{ height: 109px; background-image: url(header.jpg); background-repeat: no-repeat; }

WANT:
Something that says see this script for header. Or can I just add the script in the CSS?

KDLA
12-27-2007, 10:26 AM
A CSS document is solely for styles, not for linking. You need to link to your js via the HTML document.

ray326
12-27-2007, 09:31 PM
That's best done on the server as the page is being built.