Two clicks in one

Sharky Forums


Results 1 to 4 of 4

Thread: Two clicks in one

  1. #1
    Catfish
    Join Date
    Dec 2000
    Location
    New Zealand
    Posts
    149

    Question Two clicks in one

    Hi, this is gonna be hard to explain so bare with me...

    I have a webpage with two frames on it.

    Frame 1 has a menu in it.

    Frame 2 has the main body of the page in it.

    I want to be able to click on a button in the menu and have it do the following:

    Frame 1 change to a different menu

    Frame 2 change htm file.

    Is this possible? If so, could someone please help me out with the coding for it.

    Thanks

    ------------------
    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
    Computers don't have bugs, they just develop random features...

  2. #2
    Tiger Shark
    Join Date
    Oct 2000
    Location
    Belgium
    Posts
    742

    Post

    Make a link to another page with again two frames in it and that opens in the entire window.

    Or else make your pages with tables, then you wouldn't have to worry about multiple pages.

    ------------------
    Just something

  3. #3
    Ursus Arctos Moderatis Grizzly's Avatar
    Join Date
    Sep 2000
    Location
    Providence, RI USA
    Posts
    3,077

    Post

    That's a JavaScript solution right there. Lemme guess, are you trying to create the illusion of an expandable menu? Folders --> subfolders stuff like that? There are better ways to go about doing that so the menu frame doesn't have to reload on everyclick. Those better ways are also done with JavaScript, but it's alot more complicated.

    Get back to us here on that, and I'll see if I can drum up some JavaScript for ya.


  4. #4
    Tiger Shark
    Join Date
    Sep 2000
    Posts
    731

    Post

    If I understand you correctly, you'll want to use a bit of Javascript (OnClick and Window.Self.Location). Go to www.metavista.com (a site I built) and steal my code.


    Originally posted by lil_mary:
    Hi, this is gonna be hard to explain so bare with me...

    I have a webpage with two frames on it.

    Frame 1 has a menu in it.

    Frame 2 has the main body of the page in it.

    I want to be able to click on a button in the menu and have it do the following:

    Frame 1 change to a different menu

    Frame 2 change htm file.

    Is this possible? If so, could someone please help me out with the coding for it.

    Thanks



    ------------------
    www.nweb-design.com <-- Send me a client, I'll send you a 5% finder's fee

    "You have just destroyed one model XQJ-37 nuclear powered pansexual roto-plooker....and you're gonna have to pay for it." -- Frank Zappa
    www.nweb-design.com <-- Send me a client, I'll send you a 5% finder's fee

    "You have just destroyed one model XQJ-37 nuclear powered pansexual roto-plooker....and you're gonna have to pay for it." -- Frank Zappa

Posting Permissions

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