Forum Moderators: open
I'd move all code between the HEAD tags for javascript and style sheets to their own separate files, like this:
<script language="JavaScript" type="text/javascript" src="/somedir/javascripts.js"></script>
<link rel="stylesheet" type="text/css" href="/somedir/styles.css">
Hope this helps.
I'm not sure why you're still seeing the code. There are parts you're supposed to leave off when you include them in external pages. For instance:
The style.css should contain only the following bits:
{
H1 { font-size: x-large; color: red }
H2 { font-size: large; color: blue }
}
and not
<STYLE TYPE="text/css">
<!--
H1 { font-size: x-large; color: red }
H2 { font-size: large; color: blue }
-->
</STYLE>
leave out the STYLE tags and comment lines.
The Javascript external file is much the same -
use:
function whatever(var) {
code goes here
}
and not:
<script language="JavaScript" type="text/javascript">
<!--
function whatever(var) {
code goes here
}
-->
</script>
Leave out the SCRIPT tags and comment lines.