View Full Version : OnMouseOver can you page...
Is there a method of opening a page in a frame using the OnMouseOver command. or any other method.
As I want to display in a info box(a frame) as you go over certain headings a page in that frame with intro info on it and if you click heading you Jump to full info page.
mr_grumpy_man
28-09-2000, 22:20
It's easily done. You trigger the event in the same way an image rollover works - you just have an 'onmouseover="dosomethinginjavascript"' in the link.
So for example:
onmouseover="changeFrame('frame1', 'newframe.htm')"
earlier on, between <script> tags you want:
function changeFrame(framename, newurl)
{
top.framename.document.location=newurl;
}
Or something like that. Give it a go, if you have any probs let me know.
Thanx
can't get it to work not to hot on Java
this is what I have got
this is between the head statement
<script language="javascript">
<script>
function changeFrame('test','test1.htm')
{
top.test.document.location=test1.htm;
}
</script>
and this is where I called the function
<a onmouseover="changeFrame('test','test1.htm')"> Motherboard</a>
this was in the body statment
Frame name is test
new url is test 1.htm both on the same directory
thanx hope you can solve my prob
I need to learn Java
got it
<a href="test4.htm" onMouseOver="parent.test.location='cpu.htm'">processor</a>
I found this and it worked thanx GM
mr_grumpy_man
29-09-2000, 00:50
Or you could do it that way :)
It's a good feeling when you work something out, ain't it? Don't get that much in my old age...
:cheese:
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.