Basic js help

first of all, get used to my questions because they have only just begun :slight_smile:

Ok, i am using a lot of frames these days and what i want to have happen is for someone to move their mouse over a link in one frame and have the page come up in a different frame, and then on the mouse out go back to null.html which is just has a background but no text.

here’s what i did:

a href=“bioanswer.html#name” onMouseOver=“parent.location=‘dude.html’”; onMouseOut=“parent.location=‘null.html’”; target=“answer”

the problem is the “parent.location” but i don’t know what to put instead of “parent.location” so that i could open “bioanswer.html#name” in the “answer” frame shown above.
thanks in advanced for the help :slight_smile:

What is your frames-layout first of all

if i wasn’t using the onmouseover action, it would look like this:
a href=“bioanswer.html#name” target=“answer”

but what i want to do is this:
a href=“bioanswer.html#name” onmouseover=“parent.location=‘bioanswer.html#name’”

the only problem is, with the javascript i don’t know how to make the page open in the other frame.

you need to include your target somewhere in your mouseover… right now you’re not telling it to go anywhere… all you have is it telling what document needs to be opened but it doesn’t know where it needs to open it.

i am really stupid, so im trying my best to explain what i don’t know how to do, so sorry. however, let me try again

i want to change parent.location so that it opens the file in the “answer” frame. do i put parent.answer or what?

once again sorry, but i am dumb.

ok, i figured it out, so no need for help anymore.

however, if anyone else is wondering how to do it…

to make it work in IE you put onmouseover=“parent.yourframename.location=‘yourpage.html’;”

or in netscape you put
onmouseover=“parent.yourframename.document.location=‘yourpage.html’;”

ok, i hope that helps someone in the future.