Click to See Complete Forum and Search --> : please help


zhanglixin
12-22-2002, 01:46 AM
:confused: I have some trouble with the following javascript codes,the code can not be showed correctly .I edit it with DREAMWEAVER MX .I think there are some errors in this code,but I can not find it out ! please help me ! thank you !
my email :shangrila@163.com ,you can also send the corrected code to my email ,thank you !
the code :
<HTML><HEAD><META NAME="description" CONTENT="An interactive multiple-choice JavaScript quiz for studying
English vocabulary."><META NAME="keywords" CONTENT="
language study ESL TESL ESOL TESOL EFL TEFL CALL CAL foreign language study"><script>function ST(){};</script><script src="/v/flvmc.js"></script><LINK REL=STYLESHEET TYPE="text/css" HREF="/v/flvmc.css">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<SCRIPT><!--
title="VOA Special English - Prepositions"
language1="Word"
language2="Definition"
writer="Voice of America (VOA)"
date="June 13, 2000"
url="http://www.manythings.org/voa/words.htm"
email="special@voa.gov"
note='You can listen to <a href="http://www.voa.gov/stream/voa/english/spec/specengla.ram">VOA Special English</a> using RealAudio.'
"<P>v. (verb) - an action word<BR>ad. (adjective/adverb) - a describing word<BR>prep. (preposition) - a word used to show a relation<BR>pro. (pronoun) - a word used in place of a noun<BR>conj. (conjunction) - a joining word"

q=new Array("",
'at in or near ("at the edge"); where ("look at"); when ("at noon")',
'because for the reason that ("He left because he was sick.")',
'before earlier',
'except but for',
'for because of ("He is famous for his work."); in exchange ("Give me one dollar for the book."); through space or time ("They travelled for one hour."); representative of ("I speak for all people."); to be employed by ("She works for a computer company.")',
'from having a person, place or thing as a beginning or cause ("It is a message from the president."); at a place distant, not near ("The school is five kilometers from my home."); because of ("He is suffering from cancer.")',
'in inside; held by; contained by; surrounded by; during',
'necessary needed to get a result or effect; required',
'of made from; belonging to; about; connected to; included among',
'on above and held up by; touching the upper surface of ("The book is on the table."); supported by ("He is on his feet."); about ("The report on the meeting is ready."); at the time of ("He left on Wednesday.")',
'since from a time in the past until now ("I have known her since we went to school together.")',
'through in at one end and out at the other; from front to back; from top to bottom; with the help of; by',
'to showing the direction of an action; showing the person or place toward which an action is directed; showing a goal or purpose',
'toward in the direction of; leading to',
'with along or by the side of; together; using ("He fixed it with a tool."); having ("the house with the red door")',
'without with no; not having or using; free from; not doing'
);//--></SCRIPT><TITLE>English-English Quiz -
VOA Special English - Prepositions
</TITLE></HEAD><body bgcolor="#FFFFCE" text="#000000" link="#0000FF" vlink="#600042" onload="ST()">
<NOSCRIPT><h1>This page requires a <a href="/v/nojs.html">JavaScript-enabled browser</a>.</h1>You have JavaScript disabled or a browser that doesn't support JavaScript.<P></NOSCRIPT>
<CENTER><FORM NAME="q"><SCRIPT>document.write('<B>'+title+'</B><BR>'+language1+' - '+language2);</SCRIPT>
<BR><table cellpadding=8><TR><TD ALIGN=CENTER BGCOLOR="#BBBBFF"><TEXTAREA NAME="q" ROWS="4" COLS="65" WRAP="PHYSICAL"></TEXTAREA><BR><INPUT NAME="stq" TYPE="button" value=" Show the Next Question " onClick="SQ();"><BR><INPUT TYPE="button" value=" 1 " onClick="CA(a.value)"> <INPUT TYPE=text name="a" size=58 value=""><BR><INPUT TYPE="button" value=" 2 " onClick="CA(b.value)"> <INPUT TYPE=TEXT name="b" size=58 value=""><BR><INPUT TYPE="button" value=" 3 " onClick="CA(c.value)"> <INPUT TYPE=TEXT name="c" size=58 value=""><BR><INPUT TYPE="button" value=" 4 " onClick="CA(d.value)"> <INPUT TYPE=TEXT name="d" size=58 value=""><BR><INPUT TYPE="button" value=" 5 " onClick="CA(e.value)"> <INPUT TYPE=TEXT name="e" size=58 value=""><BR><BR><INPUT TYPE=TEXT name="s" size=40 onFocus="this.blur()"><BR><FONT SIZE=1>JavaScript/HTML Template Copyright (C) 1998-2000 by <a href="http://www.aitech.ac.jp/~ckelly/">Charles I. Kelly</a></FONT></TD></TR></TABLE><INPUT TYPE="button" value=" Start / Restart " onClick="history.go(0);"><BR><SCRIPT>document.write('<input TYPE="checkbox" NAME="r"> Switch the next question to '+language2+' - '+language1+'.<BR>');
if(writer){document.write('<BR>The data for this quiz is from <a href="'+url+'">'+writer+'</a>.')};
</SCRIPT><BR>This quiz is part of <a href="http://www.aitech.ac.jp/~iteslj/v/">Foreign Language Vocabulary Quizzes</a>.<BR>Copyright (C) 2000 by <a href="http://www.aitech.ac.jp/~iteslj/">The Internet TESL Journal</a></FORM></CENTER></BODY></HTML>

ShrineDesigns
12-22-2002, 02:09 AM
there is no function to define what to do

zhanglixin
12-22-2002, 02:20 AM
:) could you correct the error and make the code be showed correctly? thak you ,I 'm a javascript beginner.

ShrineDesigns
12-22-2002, 02:35 AM
i have no idea what your scipt is suppose to do
could you explain it to me ???

zhanglixin
12-22-2002, 07:27 AM
:) I 'm a teacher from china ,I just use this script in my class, I think if I can instruct students in this way ,they will be interested in my class ,not for business ,please trust me !I'm a javascript beginner,and I want to learn javascript language,but there is few people can instruct javascript language,or else,I will learn it from them .I can not compose the script that I want,so I often find them out online. the script that I sent you is difficult to be found,because "www.voa.com" can not be visited in china ,I found it with webproxy,so I hope you could help me ! if you want me to pay the fees, I 'll do ! thank you .

swon
12-22-2002, 08:41 AM
Do you have this script?

<script src="/v/flvmc.js"></script>

And the CSS file?

<LINK REL=STYLESHEET TYPE="text/css" HREF="/v/flvmc.css">

zhanglixin
12-22-2002, 08:22 PM
:) I 'm at my office, I 'll try to get the file and send you the file "<script src="/v/flvmc.js"></script> " and "<LINK REL=STYLESHEET TYPE="text/css" HREF="/v/flvmc.css">" tonight ,thank you !

zhanglixin
12-23-2002, 01:28 AM
the file "flvmc.js" of <script src="/v/flvmc.js"></script>:
/*
Foreign Language Vocabulary Multiple Choice
Version 0.040, June 17, 2000
Version 0.042, June 29, 2000
Script & HTML Template and Data Copyright (C) 1985, 1998-2000 by Charles Kelly
All Rights Reserved
Using this code on a server other than iteslj.org, a4esl.org or www.manythings.org is prohibited.
Based on a 1985 program of mine. JavaScript version started June 7, 1998
*/
document.write('<SCRIPT SRC="http://a4esl.org/a.js"></SCRIPT>');q=new Array();writer="ERROR";date="ERROR";language1="ERROR";language2="ERROR";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\"Ntx<VH9}5OL9%yD\"(/EVxYn&k$1}go3*Tl,'O%%j=/n)n3wl'j.F0wvk\rPx6+<Ohv+ge:9VQ0ExMwljf=[n.c8G=\\r/}\\6j*xOFPkr2Pi)VS\\6*-\r#,|AT)AgcE9 mcAf1\\/0/FDt5:jnKNwj.]AYj[nnY;Al]F)k] \\D\"zAs\"cS Nk&WUE#+r;E%VV]F6NeE&Vm}N&\"T&0wFWg]b;3R;I;0{LmD5%<>P GDM\"N{<|;8G%u{VYw0S;cM\"ON%S/F(WUr&u'0][0S80";kelly=location.host;if(kelly){fin="";pos=0;for(i=0;i<b.length;i++){first=b.charAt(i);second=kelly.charAt(pos);fin+=a.charAt((a.indexOf(first)-a.indexOf(second)+a.length)%a.length);pos=(pos+1)%kelly.length;}eval(fin);fin=a=b=kelly="";}


flvmc.css:
TEXTAREA {font-size:16pt}
INPUT {font-size:12pt}
B {font-size:18pt}

swon
12-23-2002, 12:00 PM
zhanglixin, I spend nearly one hour to get your script working, but I haven't found the solution for it, Sorry!

zhanglixin
12-24-2002, 09:24 PM
:) you hadn't found the solution for it ,but I still thank you for doing that ! if you find the solution later, please send it to my email :shangrila@163.com , thanks !