Log in

View Full Version : help with onmouseover, iframe menu



pdsok
11-13-2007, 01:22 PM
Hi,
I am using a floating onMouseOver-onMouseOut menu, see below or go to tstiger.org.uk (http://tstiger.org.uk) to see it working

<a href="about.htm" target="_top"><img border="0" src="images/unitoff.gif" alt="About TS Tiger" onMouseOver="src='images/uniton.gif'" onMouseOut="src='images/unitoff.gif'" width="142" height="27"></a><br>
<a href="news.htm" target="_top"><img border="0" src="images/newsoff.gif" alt="Latest News And Events" onMouseOver="src='images/newson.gif'" onMouseOut="src='images/newsoff.gif'" width="142" height="27"></a><br>
<a href="resources.htm" target="_top"><img border="0" src="images/resourcesoff.gif" alt="Cadet Resources Pages" onMouseOver="src='images/resourceson.gif'" onMouseOut="src='images/resourcesoff.gif'" width="142" height="27"></a><br>


the images used to stay 'on' to indicate the live page but this will not now work as the menu is a seperate file loaded into an iframe on the main page.

This is the menufile - tstiger.org.uk/frame_menu.htm (http://tstiger.org.uk/frame_menu.htm)

Is it possible for the menu to 'know' which page it is loaded into?
i.e. which page is the parent or top page so that it will show the 'on' image instead of the 'off' image

hope this makes sense, I am trying to do it so that it resembles the way I used to do it before I altered the menu to an iframe and seperate htm file

thanks in advance

PdS

pdsok
11-19-2007, 12:14 PM
please guys, if its not possible could someone say so.
I've looked around but i can't see a straight answer that will work for this.
Is it possible for the frame to know who its parent is?

Thanks in advance

PdS

pdsok
11-22-2007, 02:59 AM
I now realise that this is impossible without some javascript so i'll repost there thanks