Log in

View Full Version : HV Menu With Inline Frames



TomMonkey
08-23-2005, 09:23 AM
Hello.

I have installed and customised HV menu and it works fine. However i can not get it to work with inline frames. I have read the information on using frames but they tend to work differently. Instead of having their own <body> code they have this:

<iframe name="I1" src="Home.htm" width="100%" height="100%" marginwidth="6" align="left" title="Main Frame">
Your browser does not support inline frames or is currently configured not to display inline frames.
</iframe>

Does anyone know how to get the HV menu on the main page to change what is inside the inline frame? I have set the page default to the frame but it ignores this.

Thank you

jscheuer1
08-23-2005, 02:30 PM
The first method will replace the iframe 'I1' contents without adding to the history stack. The second will switch the iframe 'I1' to the new content and add to the history stack. The third entry is the default method the menu comes with. The fourth one opens the contents in a new window.

Menu2_1_2=new Array("ABCNews","javascript:I1.location.replace('http://www.abcnews.com')","",0);
Menu2_1_3=new Array("MSNBC","javascript:I1.location.href='http://www.msnbc.com'","",0);
Menu2_1_4=new Array("CBSNews","http://www.cbsnews.com","",0);
Menu2_1_5=new Array("Canadian News","javascript:window.open('http://news.bbc.co.uk')","",2);

TomMonkey
08-23-2005, 02:33 PM
Thanks John, thats awesome.