Left these info out.. This page here http://www.sodesires.com/links/index.html is using transitional and the rest using strict. You can have a look at this page http://www.sodesires.com/weblog which is in strict as it has the calendar javascript on it as well. Both DTDs are invalid due to <noscript> grrrr! I wouldn't even bother to put this in if not for priority one. With Regards Jaime Wong ~~~~~~~~~~~~~~~~~~~~~~~~~~ SODesires Design Team http://www.sodesires.com ~~~~~~~~~~~~~~~~~~~~~~~~~~ -------Original Message------- From: [EMAIL PROTECTED] Date: 03/07/04 20:49:26 To: [EMAIL PROTECTED] Subject: RE: [WSG] Bobby question Thanks Peter for the wonderful explanation :) I tested it straight away but facing some problem with Strict DTD. This is what I have in my html <script type="text/javascript"> var d=new Date(); yr=d.getFullYear(); if (yr!=2003) document.write("- "+yr); </script> <noscript>- 2004!</noscript> and <script type="text/javascript">dT();</script> <noscript>GMT +8</noscript> This is the errors Line 224, column 55: character data is not allowed here <script type="text/javascript">dT();</script><noscript>GMT +8</noscript> ^ Line 683, column 9: document type does not allow element "noscript" here; missing one of "object", "ins", "del", "map", "button" start-tag <noscript>- 2004!</noscript> ^ Line 683, column 10: character data is not allowed here <noscript>- 2004!</noscript> With Regards Jaime Wong ~~~~~~~~~~~~~~~~~~~~~~~~~~ SODesires Design Team http://www.sodesires.com ~~~~~~~~~~~~~~~~~~~~~~~~~~ -------Original Message------- From: [EMAIL PROTECTED] Date: 03/07/04 20:11:50 To: [EMAIL PROTECTED] Subject: RE: [WSG] Bobby question Hi Jaime, A <noscript> tag is read only when JavaScript isn't present (except in Netscape 4 as I recall but may have been Netscape 3 which shows both the script and the noscript content and this was when it WAS the dominant browser! Someone may like to check that but I can't be bothered as I never use it any more). So you would have something like: <script language="JavaScript" type="text/javascript"> <!-- document.write("<p>Something if JS enabled or even present</p>") //--> </script> <noscript> <p>Something else if JS not available.</p> </noscript> Much like <noframes>. A search for <noscript> on Google brings up everything you need to know in the first 5 links. However, for something like onclick this doesn't work. The best thing to do is test it in Lynx and make sure the default behaviour of the link or button still works. If you're doing something else with onclick (than a form element or link) then you may well have to rethink it. Remember, Google (the worlds biggest blind user) may not be able to follow it if it is inaccessible so your pages may remain hidden to the world. As for the other question (below), much the same answer. However, when we do it, if you don't have JavaScript turned on, you simply don't get the styleswitcher links at all as they wouldn't work anyway. If you do have JavaScript, and you tab to the link and hit enter, the appropriate behaviour is invoked. Again, see http://www.gt.nsw.gov.au/ and try throwing the mouse away and turning JavaScript off to see what happens. You just have to think about it carefully as you put it together and then test the pants off it. <quote> My next question is for e.g. using the style switcher js from ALA, or whichever js written by programmers for your website. Will you change the all commands to satisfy the priority even if the script is non-applicable to lynx users? PS: Can you see better now Peter? This just make me realise that with all the concentration for accessibility on websites, I forgot about others :P Good wakeup call. </quote> Yes thanks, but plain text beats it every time on a mail list :-) P ***************************************************** The discussion list for http://webstandardsgroup.org/ *****************************************************
***************************************************** The discussion list for http://webstandardsgroup.org/ *****************************************************
