How do I make this javascript into valid XHTML1.0 transitional?

windows

Guest
I have this hobby page <!-- w --><a class="postlink" href="http://www.scrollmaster.net">www.scrollmaster.net</a><!-- w --> which I have just redone to be valid XHTML1.0 transitional. <br />
<br />
And it is, except I have this drop down menu at the top left under the logo which is not valid. I don't know much about javascript and I know nothing about how to make it valid XHTML.<br />
<br />
Can anybody help me?<br />
<br />
The code looks like this:<br />
<form name="jumpy" id="hidedrop"><br />
<select name="example" onChange="gonefused()"><br />
<option value="">Choose Area</option><br />
<option value="index.cfm">Scrollmaster's Corner</option><br />
<option value="fathertime/">Fathertime's Area</option><br />
<option value="darkage/">Dark Age</option><br />
<option value="ikwarmachines/">IK Warmachines</option><br />
<option value="noquarters/">No Quarters</option><br />
<option value="vor/">VOR The Maelstrom</option><br />
<option value="roguetrader/">Rogue Trader</option><br />
<option value="bloodbowl/">Blood Bowl</option><br />
</select><br />
<br />
<script language="javascript"><br />
function gonefused(){<br />
top.location.href=http://www.htmlforums.com/archive/index.php/document.jumpy.example.options[document.jumpy.example.selectedIndex].value<br />
}<br />
//--><br />
</script><br />
<!--<input type="button" name="test" value="Open Section" onClick="gone()">--><br />
<br />
</form><!--content-->*BUMP*<br />
<br />
hmmm, is it not posible to do a javascript menu like that which is XHTML valid?<br />
<br />
Is it not psoible to make XHTML valid javascripts at all?<!--content-->who told you it wasn't?<br />
<br />
and that script needs to go in the head tags anyway.<!--content-->who told you it wasn't? <br />
Well I ran it through w3.org's XHTML validator and this was the result: <!-- m --><a class="postlink" href="http://validator.w3.org/check?uri=www.scrollmaster.net">http://validator.w3.org/check?uri=www.scrollmaster.net</a><!-- m --> all errors are regarding the that javascript except the email error which I have fixed but haven't uploaded yet<br />
<br />
and that script needs to go in the head tags anyway. <br />
I thought it didn't matter, but as I wrote in the beginning I don't know much about javascript<!--content-->ok, the errros you see atre easily fixed and have nothing to do with javascript.<br />
<br />
<script language="JavaScript" type="text/javascript"><br />
<br />
you need to add the bold to ALL script tags. <br />
<br />
even though you don't have an action in your form you need to add one. action="" will work.<br />
<br />
onChange=""<br />
<br />
that needs to be lowercase. you need to close your img tag with a / slash at teh end like you input tags.<br />
and that should be it if you fixed the mailto tag.<br />
<br />
and yes you should put it in the head tag, actually it should go into a javascritp file by itself but not neccassary.<!--content-->I see, ok I'll try that, thanks :-)<br />
<br />
yes the img tag has been properly closed but not uploaded yet as well<br />
<br />
The whole site used to be crap HTML just chucked together but I thought it would be a good exersize to re-do it into XHTML1.0<!--content-->
 
Back
Top