George L Smyth wrote:
> I have an FAQ page that lists questions and when the user clicks on the
> question the answer is displayed below.  I am using JavaScript to flip the
> display style property of the answer.  This works just fine.
>
> If one does not have JavaScript enabled I am using <noscript> to set display 
> to
> block, i.e.
>
> <style type="text/css">
> .FullInfo { display: none; }
> </style>
> <noscript>
> <style type="text/css">
> .FullInfo { display: block; }
> </style>
> </noscript>
>
> This does not validate because <noscript> needs to be within a block element
> and I am putting it in the <head> of the document.
>
> In an attempt to get it to validate I wrote a JavaScript routine to look
> through the answer <div>s and set the display to none, but this resulted in
> them all being displayed then closing up, which looked quite unappealing to 
> me.
>   

This is what you should do -- have them display by default, then if the 
user has JavaScript, they're hidden. I'm sure if you call your 
JavaScript another way it will "take hold" before the answers display. 
Ask your question on another list where JavaScript is discussed for more 
help on this.

Also, to start a new thread, do not reply to an existing message. When 
you do this,
your message gets threaded on to the old thread, which messes up the 
archives
and makes it less likely that others will see your message and subsequently
reply to you. You must send a new message with an appropriate and 
descriptive
subject line to css-d@lists.css-discuss.org in order to start a new thread.

Thanks,
Zoe

-- 
Zoe M. Gillenwater
Design Services Manager
UNC Highway Safety Research Center
http://www.hsrc.unc.edu


______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to