| re: problem with onclick
Sorry, I was quickly writing some tags in as a reference that isnt the
actual code, so most of your points are already covered, and im guessing the
..checked should work both ways. See I have used my function as a
href="javascript: menu();" and it works exactly how I planned it to.
I just re-read that post and realised how many errors I made, pity my first
post didnt actually send as it was much more in depth and accurate *sigh*...
anyway, here is the exact code I have, sorry.
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!--
function menu() {
for (i=0;i<=2;i++) {
if (document.menuform.menu[i].checked=="1") {
parent.main.location.href="document.menuform.menu[i].value + '.html'" }
}
}
//--!>
</SCRIPT>
</HEAD>
<BODY>
<FORM NAME="menuform">
<INPUT TYPE="RADIO" NAME="menu" VALUE="news" onClick=""><A HREF="javascript:
menu()" onMouseOver="document.menuform.menu[0].checked='1'">News</A><BR>
<INPUT TYPE="RADIO" NAME="menu" VALUE="new" onClick=""><A HREF="javascript:
menu()" onMouseOver="document.menuform.menu[1].checked='1'">new</A><BR>
</FORM>
</BODY>
</HTML> |