burntcopper: (just be a good boy)
[personal profile] burntcopper
How the hell do you take a chunk of javascript out of the header of an html page and provide a link back, like you can with css scripts?

eg : *link rel="stylesheet" href="06.css" type="text/css"*

I'm re-designing my dad's company's website, and putting drop-down menus in. However, the script I'm using to do so is effing long and I want the individual pages to stay fairly clean.

Oh, and what do you use to evenly space text out on a line? Anyone? anyone?

Date: 2004-11-21 10:32 am (UTC)
alyse: terminator genisys -full body shot of Sarah and Kyle walking away from the camera (Default)
From: [personal profile] alyse
You put it in a .js file, and then you call it up within the header tags, like so:

< script language="JavaScript" src="datecode.js">
< /script>
< script language="JavaScript" src="cookies_manip.js">
< /script>

The .js file is just a text file with the script in, and the doc type of .js.

That's what we use for CI5 Ops and it works well.

Hope that helps :)

Date: 2004-11-21 11:14 am (UTC)
From: [identity profile] burntcopper.livejournal.com
whee! thankyou!

Date: 2004-11-21 05:16 pm (UTC)
From: [identity profile] missiedith.livejournal.com
For evenly spaced I assume you mean justifying text? You want the html attribute align="justify" or if you're using css, text-align:justify.

Profile

burntcopper: (Default)
burntcopper

April 2014

S M T W T F S
  12345
678910 1112
1314 1516171819
20212223242526
27282930   

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 30th, 2026 01:07 pm
Powered by Dreamwidth Studios