473,397 Members | 2,028 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

How to get this Javascript Movie Qoute Quiz???

1
Hii this is my first question here. Hope you will help me.

I found a script to a movie quote quiz that I would like to post on my website.

The quiz I want to use can be found at :

http://www.s-anand.net/Movie_quote_quiz.html


It has this smart function that the correct answer will turn to green in the box.

Can you give me the exact code so I only need to change the movie quotes and the answer.

thanks
Yaso
Nov 8 '06 #1
1 1439
vee10
141 100+
hi,
i think this is solution for ur problem

Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <head runat="server">
  3.     <title>Untitled Page</title>
  4.     <script type="text/javascript">
  5.     function changecolor(color)
  6.      {
  7.  
  8.      if(color==1)
  9.      {
  10.       if(document.form1.text1.value=="Apple")
  11.         document.form1.text1.style.color="green";
  12.         else document.form1.text1.style.color="black";
  13.      }  
  14.      else if(color==2)
  15.      {
  16.       if(document.form1.text2.value=="Grapes")
  17.         document.form1.text2.style.color="green";
  18.         else document.form1.text2.style.color="black";
  19.      }
  20.      }
  21.  
  22.     </script>
  23. </head>
  24. <body>
  25.     <form id="form1" runat="server">
  26.     <div>
  27.            <input type="text" name="text1" onchange="changecolor(1);"  />&nbsp;
  28.            <input type="text" name="text2" onchange="changecolor(2);"  />&nbsp;
  29.     </div>
  30.     </form>
  31. </body>
  32. </html>
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  













Hii this is my first question here. Hope you will help me.

I found a script to a movie quote quiz that I would like to post on my website.

The quiz I want to use can be found at :

http://www.s-anand.net/Movie_quote_quiz.html


It has this smart function that the correct answer will turn to green in the box.

Can you give me the exact code so I only need to change the movie quotes and the answer.

thanks
Yaso
Nov 9 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: bin_P19 P | last post by:
the code i have got is as follows and now im stuck <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Shopping...
8
by: chrisdude911 | last post by:
how do i add video into a javascript web page with my own custom buttons?
2
by: Cox News | last post by:
Greetings. Any help with this would be greatly appreciated! I use Articulate Quizmaker to develop online quizes. When published, the outputed JS on the HTML page looks like this: ...
2
by: streammalvern | last post by:
Hi, I am having a problem with a published Flash Movie. I included a preloader and the whole file size of the .swf is only about 1MB. If I go to the movie, it pauses even before the preloader...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.