tags:

views:

27

answers:

1

How can I build a homepage from different files? I would like to have a file styles.css, one javasript file which uses anti-spam link obfuscator, and the main code which gathers the site up.

+1  A: 

You'd create the main HTML file, and then include the styles.css file with a <link> tag and the JavaScript with a <script> tag. I'd suggest the W3Schools HTML tutorial as a starting point on all this.

ceejayoz
I tried. Css works now well. But JavaSript has code<link type="text/javascript" rel="obfuscator" href="obfuscator.js" />The file obfuscator contains the code I got from http://www.jottings.com/obfuscator/. Should it contain the linedocument.write("<a href='mailto:"+link+"'>e-mail.</a>") or why can't I see the links.
Student
As *ceejayoz* said: Add the Javascript with a <script> tag, as in <script src="email.js" type="text/javascript"></script> (hopefully this renders well in a comment…). Works for me. You have to include this somewhere in the body part of your document, obviously.
mkluwe