Target Frame - Java script

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tony Williams

    Target Frame - Java script

    i have a frames based website, my java menu is in frame "contents" but i
    want it to load the page in to frame "main", here is the code i have so far:

    function init()
    {
    menus[0] = new menu(130, "vertical", 10, 10, -2, -2, "#CACAFF", "#0000A0",
    "Verdana,Helvet ica", 9,
    "bold", "bold", "black", "white", 1, "gray", 2,
    "rollover:tri.g if:tri.gif", false, true, true, true, 12, true, 4,

    4, "black");
    menus[0].addItem("frame .htm", 22, "left", "Home", 0 );
    menus[0].addItem("#", 22, "left", "Car Parts", 1);
    menus[0].addItem("FeedB ack/feedback.htm", 22, "left", "Feed Back", 0 );
    menus[0].addItem("Conta ct/contact.htm", 22, "left", "Contact Me", 0);

    //Sub Menu for 2nd Main Menu Item ("Car Parts"):
    menus[1] = new menu(130, "vertical", 0, 0, -5, -5, "#CACAFF", "#0000A0",
    "Verdana,Helvet ica", 9, "bold",
    "bold", "black", "white", 1, "gray", 2, 62, false, true, false, true, 6,
    true, 4, 4, "black");
    menus[1].addItem("http://www.google.com" , 22, "Left", "Air Bags", 0);
    menus[1].addItem("http://www.javascriptk it.com", 22, "left", "Brakes", 0);
    menus[1].addItem("http://www.codingforum s.com", 22, "left", "Diesel
    engines", 0);
    menus[1].addItem("http://www.builder.com ", 35, "left", "Manual
    Transmission", 0);
    menus[1].addItem("http://www.builder.com ", 22, "left", "Petrol Engines",
    0);
    menus[1].addItem("http://www.builder.com ", 22, "left", "Seat Belts", 0);
    menus[1].addItem("http://www.builder.com ", 22, "left", "Steering", 0);

    } //OUTER CLOSING BRACKET. EVERYTHING ADDED MUST BE ABOVE THIS LINE.

    any ideas what to do


  • kaeli

    #2
    Re: Target Frame - Java script

    In article <Z5Ofc.664$UG1. 118@newsfe5-gui.server.ntli .net>,
    tony.williams20 00@ntlworld.com enlightened us with...[color=blue]
    > i have a frames based website, my java menu is in frame "contents" but i
    > want it to load the page in to frame "main", here is the code i have so far:
    >[/color]

    If the only code in the contents frame is the menu, just use a base tag.

    <base href="main">

    --
    --
    ~kaeli~
    Bakers trade bread recipes on a knead-to-know basis.



    Comment

    • Michael Winter

      #3
      Re: Target Frame - Java script

      On Fri, 16 Apr 2004 09:15:04 -0500, kaeli <tiny_one@NOSPA M.comcast.net>
      wrote:
      [color=blue]
      > In article <Z5Ofc.664$UG1. 118@newsfe5-gui.server.ntli .net>,
      > tony.williams20 00@ntlworld.com enlightened us with...
      >[color=green]
      >> i have a frames based website, my java menu is in frame "contents" but i
      >> want it to load the page in to frame "main", here is the code i have so
      >> far:[/color]
      >
      > If the only code in the contents frame is the menu, just use a base tag.
      >
      > <base href="main">[/color]

      I think you mean

      <base href="" target="main">

      The href attribute is required, but has no effect above.

      Mike

      --
      Michael Winter
      M.Winter@blueyo nder.co.invalid (replace ".invalid" with ".uk" to reply)

      Comment

      • kaeli

        #4
        Re: Target Frame - Java script

        In article <opr6lrqjkp5vkl cq@news-text.blueyonder .co.uk>,
        M.Winter@blueyo nder.co.invalid enlightened us with...[color=blue]
        >
        > I think you mean
        >
        > <base href="" target="main">
        >
        > The href attribute is required, but has no effect above.
        >[/color]

        You're right; I meant <base target="main">

        Sorry.


        --
        --
        ~kaeli~
        Who is General Failure and why is he reading my hard disk?



        Comment

        Working...