Click to See Complete Forum and Search --> : Can a frame change itself?


Michjo
07-18-2003, 01:31 AM
I'm working on a multilingual website, and I want to change the language of the menu which calls different frames.

My code is as follows:

><A href="javascript:void(0)"
>ONMOUSEOVER="document.images[0].src='leguB.gif';"
>ONMOUSEOUT="document.images[0].src='legu.gif';"
>ONCLICK="document.images[0].src='leguP.gif'; >currpage=currpage+1;
>parent.right.location=webdoc[currpage]; >parent.left.location='Emenu.html';">

Everything works except the last line, which tries to change the language of the menu, and the script is in the menu document itself. In other words, the current parent.left.location is "menu.html" and I want to change it to "Emenu.html" -- the same in another language.

Thanks,
Mike

badda
07-18-2003, 03:01 AM
Answer to your question: Yes, it can
The problem must be somewhere else.
Maybe try using
parent.left.location.href='Emenu.html' ? :confused: