To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.publish.htmlOpen lugnet.publish.html in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Publishing / HTML / 199
198  |  200
Subject: 
Re: Help With HTML
Newsgroups: 
lugnet.publish.html
Date: 
Fri, 18 Jan 2002 13:49:02 GMT
Viewed: 
5569 times
  
On Fri, 18 Jan 2002, John Herre wrote:

> In lugnet.castle, Jay Rodarte writes:
> > Hi. I need some sort of code that, when you answer questions, based on your
> > answers it will take you to another page. Like a quiz. Like if i asked you
> > "What's your favorite color, and you said green, it would take you to
> > 1.html. But if you said blue it would take you to 2.html, does anyone know
> > what I mean? If so please help me.
> 
> I put a couple of short samples, both using javascript, that do what I think
> you want at
> http://home.earthlink.net/~jherre/test/select.html
> which uses a select list for the answers, and
> http://home.earthlink.net/~jherre/test/radio.html
> which uses radio buttons for the answers.

<snip of John Herre's good, working code>

Note that a Javascript implementation will only work for users who have
Javascript turned on, so you need to either catch that somehow[1] or have
a note on the page indicating the Javascript requirement (and, preferably,
linking to a non-Javascript implementation).

-------------------------------------------------------------------------
TWS Garrison
tgarriso@math.purdue.edu
   http://www.math.purdue.edu/~tgarriso/

[1] I have no idea how, but I've seen it done.



Message is in Reply To:
  Re: Help With HTML
 
(...) I put a couple of short samples, both using javascript, that do what I think you want at (URL) uses a select list for the answers, and (URL) uses radio buttons for the answers. The code for these is <html> <head> <title>choose a color</title> (...) (25 years ago, 18-Jan-02, to lugnet.castle, lugnet.publish.html)

6 Messages in This Thread:




Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR