Book Section
-----
TY JavaScript 3rd Ed.
Teach Yourself JS 1.5
Teach Yourself DHTML
Teach Yourself JS 1.3
LLWW: JavaScript

General Section
-----
Discussion Forum
Articles / Tips
JavaScript Links
About the Author
Privacy Policy
Contact Me



Other Sites
-----
Website Workshop
JavaScript Weblog

JavaScript Workshop Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
An external css that only works half the time...

 
Post new topic   Reply to topic    JSWorkshop Forum Index -> DHTML and CSS
View previous topic :: View next topic  
Author Message
jamestrotta
New member
New member


Joined: 04 Feb 2003
Posts: 1

PostPosted: Tue Feb 04, 2003 5:56 am    Post subject: An external css that only works half the time... Reply with quote

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>
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    JSWorkshop Forum Index -> DHTML and CSS All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
(c) 1997-2002 Starling Technologies and Michael Moncur. Portions (c) Sams Publishing.