Results 1 to 3 of 3

Thread: HV Menu With Inline Frames

  1. #1
    Join Date
    Aug 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default HV Menu With Inline Frames

    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

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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.
    Code:
    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);
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Aug 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks John, thats awesome.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •