jamestrotta New member

Joined: 04 Feb 2003 Posts: 1
|
Posted: Tue Feb 04, 2003 5:56 am Post subject: An external css that only works half the time... |
|
|
I kind of taught myself css. I made an external style sheet which is saved at www.eslgo.com/textstyle.css. Below I pasted heads from two of my web pages. The first one works: www.eslgo.com/about.html, but the second one doesn't. The problem is that they look the same to me and I ahve no idea why the second one isn't working. Please help!
working:
<head><link rel="stylesheet" type="text/css"
href="textstyle.css" />
<title>About ESLgo.com</title>
</head>
not working:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head><link rel="stylesheet" type="text/css"
href="textstyle.css" />
<title>Irregular past tense verbs: quiz by James Trotta</title>
<script language="javascript">
<!--
var score = 0;
var answer = new Array("did not","went","came","said","said","took","saw","had","hit","went","flew","landed","knew","asked","told","won","won","gave","went","made");
//Check and display score
//Check and display score
function check(){
for(i=0;i<answer.length;i++){
if(document.myform.elements[i].value.toLowerCase()==answer[i]){
score++;
}else{
if(document.myform.elements[i].value!=""){
document.myform.elements[i].value="Wrong!";
}
}
}
alert(score + " out of " + answer.length + ".");
score = 0;
}
//Put the correct answers into all the fields
function show(){
for(i=0;i<answer.length;i++){
document.myform.elements[i].value = answer[i];
}
}
//-->
</script>
</head> |
|